<div dir="ltr"><div><div>RTEMS Source Builder for Tools<br>--------------------------------------<br>*Terminal:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
cd<br>mkdir -p GCIdevelopment/rtems/src<br>cd GCIdevelopment/rtems/src<br>git clone git://<a href="http://git.rtems.org/rtems-source-builder.git" target="_blank">git.rtems.org/rtems-source-builder.git</a><br>cd rtems-source-builder<br>
</blockquote>
<br>--Environment checking<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:courier new,monospace">source-builder/sb-check<br>
</span></blockquote><br>This turned up for me some<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">warning: exe: absolute exe found in path: (__bzip2) /usr/bin/bzip2<br>
warning: exe: absolute exe found in path: (__chgrp) /usr/bin/chgrp<br>warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown<br>warning: exe: absolute exe found in path: (__grep) /usr/bin/grep<br>warning: exe: absolute exe found in path: (__sed) /usr/bin/sed<br>
</blockquote><br>These programs were installed. For example, I could run
grep in terminal. However I had to find the programs from the other
locations on the disk (/usr/bin or /bin or /lib) and copy them over for
the next step to work.<br>
<br>Then it says my environment is ok.<br><br>*Terminal:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">cd rtems<br>../source-builder/sb-set-builder --log=l-sparc.txt --prefix=$HOME/GCIdevelopment/rtems/4.11 4.11/rtems-sparc<br>
</blockquote><br>This step takes a long time; it took me 46 minutes with
downloading. Then it ended with an error. It said it could not find
python 2.7, but I had it installed. After googling, it turned out I had
to have python2.7-dev installed. <br>
Finally it built in around 27 minutes.<br><br>*Terminal:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">ls $HOME/GCIdevelopment/rtems/4.11<br>ls $HOME/GCIdevelopment/rtems/4.11/bin<br>
</blockquote><br>Both turned up nice results.<br><br>After reading your comments, I realized I had somehow skipped over this step in a newbie mistake :P<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
../source-builder/sb-set-builder --log=l-sparc.txt --prefix=$HOME/GCIdevelopment/rtems/4.11 --bset-tar-file 4.11/rtems-sparc<br></blockquote><br>Built in 29 minutes.<br><br>Now, Typing "sparc-rtems4.11-gcc" doesn't work :(<br>
<br></div>If I go to <span style="font-family:courier new,monospace">$HOME/GCIdevelopment/rtems/4.11/bin</span> and do <span style="font-family:courier new,monospace">./sparc-rtems4.11-gcc joel.c</span>, it gives me an error.<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">/home/kevin/GCIdevelopment/rtems/4.11/lib/gcc/sparc-rtems4.11/4.8.1/../../../../sparc-rtems4.11/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010074<br>
</blockquote><br>I think I might've copied over a bunch of the built tools from the 4.11/bin to the /opt/rtems-4.11/bin folder at one point.<br><br></div>Maybe I should just start this thing over sometime :P<br><br>Kevin Fei</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 10:11 PM, Kev Fei <span dir="ltr"><<a href="mailto:kev1fei@gmail.com" target="_blank">kev1fei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>RTEMS Source Builder for Tools<br>--------------------------------------<br>*Terminal:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
cd<br>mkdir -p GCIdevelopment/rtems/src<br>cd GCIdevelopment/rtems/src<br>git clone git://<a href="http://git.rtems.org/rtems-source-builder.git" target="_blank">git.rtems.org/rtems-source-builder.git</a><br>cd rtems-source-builder<br>
</blockquote>
<br>--Environment checking<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:courier new,monospace">source-builder/sb-check<br>
</span></blockquote><br>This turned up for me some<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">warning: exe: absolute exe found in path: (__bzip2) /usr/bin/bzip2<br>
warning: exe: absolute exe found in path: (__chgrp) /usr/bin/chgrp<br>warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown<br>warning: exe: absolute exe found in path: (__grep) /usr/bin/grep<br>warning: exe: absolute exe found in path: (__sed) /usr/bin/sed<br>
</blockquote><br>These programs were installed. For example, I could run grep in terminal. However I had to find the programs from the other locations on the disk (/usr/bin or /bin or /lib) and copy them over for the next step to work.<br>
<br>Then it says my environment is ok.<br><br>*Terminal:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">cd rtems<br>../source-builder/sb-set-builder --log=l-sparc.txt --prefix=$HOME/GCIdevelopment/rtems/4.11 4.11/rtems-sparc<br>
</blockquote><br>This step takes a long time; it took me 46 minutes with downloading. Then it ended with an error. It said it could not find python 2.7, but I had it installed. After googling, it turned out I had to have python2.7-dev installed. <br>
Finally it built in around 27 minutes.<br><br>*Terminal:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">ls $HOME/GCIdevelopment/rtems/4.11<br>ls $HOME/GCIdevelopment/rtems/4.11/bin<br>
</blockquote><br>Both turned up nice results.<br><br>After reading your comments, I realized I had somehow skipped over this step in a newbie mistake :P<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
../source-builder/sb-set-builder --log=l-sparc.txt --prefix=$HOME/GCIdevelopment/rtems/4.11 --bset-tar-file 4.11/rtems-sparc<br></blockquote><br>Built in 29 minutes.<br><br>Now, Typing "sparc-rtems4.11-gcc" doesn't work :(<br>
<br></div>If I go to <span style="font-family:courier new,monospace">$HOME/GCIdevelopment/rtems/4.11/bin</span> and do <span style="font-family:courier new,monospace">./sparc-rtems4.11-gcc joel.c</span>, it gives me an error.<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">/home/kevin/GCIdevelopment/rtems/4.11/lib/gcc/sparc-rtems4.11/4.8.1/../../../../sparc-rtems4.11/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010074<br>
</blockquote><br>I think I might've copied over a bunch of the built tools from the 4.11/bin to the /opt/rtems-4.11/bin folder at one point.<br><br></div>Maybe I should just start this thing over sometime :P<br><br>Kevin Fei<br>
</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 8:33 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 11/22/2013 6:33 PM, Kev Fei wrote:<br>
> Hello,<br>
><br>
> I am trying to build rtems 4.11 on Linux Mint 13 LTS 64-bit for sparc as<br>
> part of Google Code-In.<br>
<br>
</div>Thanks for posting this to the users list. :)<br>
<div><br>
> I used the RTEMS Source Builder to build these tools and I think I have<br>
> them installed correctly:<br>
<br>
</div>What command did you use with the RSB? I would have expected<br>
to see the right autoconf and automake versions in this<br>
directory.<br>
<br>
More below.<br>
<div><br>
> ls /opt/rtems-4.11/bin<br>
> cklength sparc-rtems4.11-gcov<br>
> eolstrip sparc-rtems4.11-gdb<br>
> install-if-change sparc-rtems4.11-gprof<br>
> packhex sparc-rtems4.11-ld<br>
> rtems-bin2c sparc-rtems4.11-ld.bfd<br>
> sparc-rtems4.11-addr2line sparc-rtems4.11-nm<br>
> sparc-rtems4.11-ar sparc-rtems4.11-objcopy<br>
> sparc-rtems4.11-as sparc-rtems4.11-objdump<br>
> sparc-rtems4.11-c++ sparc-rtems4.11-ranlib<br>
> sparc-rtems4.11-c++filt sparc-rtems4.11-readelf<br>
> sparc-rtems4.11-cpp sparc-rtems4.11-run<br>
> sparc-rtems4.11-difftest sparc-rtems4.11-sis<br>
> sparc-rtems4.11-elfedit sparc-rtems4.11-size<br>
> sparc-rtems4.11-g++ sparc-rtems4.11-sorttimes<br>
> sparc-rtems4.11-gcc-4.8.1 sparc-rtems4.11-strings<br>
> sparc-rtems4.11-gcc-ar sparc-rtems4.11-strip<br>
> sparc-rtems4.11-gcc-nm unhex<br>
> sparc-rtems4.11-gcc-ranlib xmlwf<br>
><br>
> Now I'm trying to build rtems, following the Quick Start.<br>
><br>
> In $HOME/GCIdevelopment/rtems,<br>
> *Terminal:<br>
><br>
> git clone git://<a href="http://git.rtems.org/rtems.git" target="_blank">git.rtems.org/rtems.git</a><br>
</div>> <<a href="http://git.rtems.org/rtems.git" target="_blank">http://git.rtems.org/rtems.git</a>> rtems<br>
<div>> cd rtems<br>
> export PATH=/opt/rtems-4.11/bin:$PATH<br>
> ./bootstrap<br>
<br>
</div>Try these steps and let's see what we get.<br>
<br>
type sparc-rtems4.11-gcc<br>
<br>
Then compile this program ..put it in joel.c<br>
<br>
==============<br>
int main() {return 0;}<br>
==============<br>
<br>
sparc-rtems4.11-gcc joel.c<br>
<br>
What's the output? It should compile just fine.<br>
<div><br>
><br>
> First I had to update automake and autoconf. rtems required versions<br>
> higher than what the repositories had, so I had to google them and<br>
> install them from source, which was easy enough.<br>
<br>
</div>The RSB handles autoconf/automake as part of the RTEMS tools<br>
if invoked correctly so I am a bit confused. We need the command<br>
as shown above but if you did this much right, they should be<br>
in your PATH.. so<br>
<br>
autoconf --version<br>
automake --version<br>
<div><br>
> ../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=sis<br>
> --enable-tests=samples --disable-posix<br>
> make<br>
><br>
><br>
> And I get:<br>
><br>
> configure: error: no acceptable cc found in $PATH<br>
><br>
><br>
> Although sparc-rtems4.11-gcc-4.8.1 is already in<br>
> rtems/b-sis/sparc-rtems4.11, I copy the other tools gcc-ar, gcc-nm, and<br>
> gcc-ranlib too.<br>
<br>
</div>This doesn't sound like something you should have done.<br>
<div><div><br>
> I try the above two commands again and it still doesn't work.<br>
> Output:<br>
><br>
> Making all in tools/build<br>
> make[1]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'<br>
> make all-am<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'<br>
> make[1]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'<br>
> Making all in tools/cpu<br>
> make[1]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'<br>
> Making all in generic<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu/generic'<br>
> make[2]: Nothing to be done for `all'.<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu/generic'<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'<br>
> make[2]: Nothing to be done for `all-am'.<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'<br>
> make[1]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'<br>
> Making all in testsuites/tools<br>
> make[1]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'<br>
> Making all in generic<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools/generic'<br>
> make[2]: Nothing to be done for `all'.<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools/generic'<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'<br>
> make[2]: Nothing to be done for `all-am'.<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'<br>
> make[1]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'<br>
> Making all in sparc-rtems4.11/c<br>
> make[1]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'<br>
> Making all in .<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'<br>
> make[2]: Nothing to be done for `all-am'.<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'<br>
> Making all in sis<br>
> make[2]: Entering directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c/sis'<br>
> make[2]: *** No rule to make target `all'. Stop.<br>
> make[2]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c/sis'<br>
> make[1]: *** [all-recursive] Error 1<br>
> make[1]: Leaving directory<br>
> `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'<br>
> make: *** [all-recursive] Error 1<br>
><br>
><br>
> I have tried --enable-posix instead as well as removing the posix tag<br>
> altogether. Google searches for ***No rule to make target 'all'. errors<br>
> have not been very helpful.<br>
><br>
> Does anybody have any ideas on what's going on? Thank you!<br>
<br>
</div></div>Try the above and post the results. I think RSB was invoked<br>
with something minor wrong.<br>
<br>
> Kevin Fei<br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Joel Sherrill, Ph.D. Director of Research & Development<br>
joel.sherrill@OARcorp.com On-Line Applications Research<br>
Ask me about RTEMS: a free RTOS Huntsville AL 35805<br>
Support Available <a href="tel:%28256%29%20722-9985" value="+12567229985" target="_blank">(256) 722-9985</a><br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><div>Physics!</div><div>Layton!</div><div>Nintendo!</div><div>Wikipedia!</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Physics!</div><div>Layton!</div><div>Nintendo!</div><div>Wikipedia!</div></div>
</div>