<div class="gmail_quote">Hi Everyone<div><br></div>
<div>I'm trying to build the RTEMS tools from source but it does not seem to go through the GCC Download and Build, for every architecture I have tried. When the tool<i> </i>is running for <i>rtems-4.11-powerpc-rtems4.11-gcc-4.7.1-7/doit </i>I get the following error over and over:</div>

<div><br></div><div><i>/Users/cassiobinkowski/workspace/rtems/build/BUILD/rtems-4.11-powerpc-rtems4.11-gcc-4.7.1-7/doit: line 41: cd: gcc-4.7.1: No such file or directory</i></div>
<div><br></div><div>I don't know what I'm doing wrong. I even tried downloading the 4.10 tools. I'm running the following lines inside my <i>$RTEMS/build</i> folder:</div><div>
<br></div><div><div><i>export RTEMS=$HOME/workspace/rtems</i></div><div><i>SB=$RTEMS/specbuilder</i></div><div><i>target=$1</i></div><div><i><br></i></div><div><i>${SB}/sb-setup . --rtems=$RTEMS/rtems-crossrpms</i></div>

<div>
<i>${SB}/sb-crossgcc --url <a href="http://www.rtems.org/ftp/pub/rtems/SOURCES/4.11" target="_blank">http://www.rtems.org/ftp/pub/rtems/SOURCES/4.11</a> --prefix=$RTEMS/rtems-crossrpms/rtems4.11 --log l.txt $target</i></div>

</div><div><br>
</div><div><br></div><div>Am I doing something wrong?</div><div><br></div><div>Best regards</div><span class="HOEnZb"><font color="#888888"><div>Cassio</div></font></span><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">

On Fri, Jul 27, 2012 at 6:45 PM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Please follow the steps in the script I attached.<br>
<br>
1. Clone the rtems-crossprpms.git repo.<br>
  $ git clone git://<a href="http://git.rtems.org/rtems-crossrpms.git" target="_blank">git.rtems.org/rtems-<u></u>crossrpms.git</a><br>
<br>
2. Run the sb-setup script:<br>
  $ sb-setup . --rtems=<path to the crossrpms clone><br>
<br>
3. Run the crossgcc script:<br>
  $ sb-crossgcc \<br>
     --url <a href="http://www.rtems.org/ftp/pub/rtems/SOURCES/4.11" target="_blank">http://www.rtems.org/ftp/pub/<u></u>rtems/SOURCES/4.11</a> \<br>
     --prefix=/rtems/4.11 --log l.txt<br>
<br>
After this you will have a tar files in the TAR directory.<br>
<br>
Again please review the sb-build.sh script I attached to the previous email.<br>
<br>
Chris<div><br>
<br>
On 28/07/12 7:39 AM, Binkowski, Cassio wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Hi Chris<br>
<br>
Thank you very much for the scripts. It will sure help a lot.<br>
<br>
So, please confirm whether I got it right or not:<br>
<br>
1) We need to clone the git repository, with source codes and the spec<br>
files;<br>
2) We need to build the source codes using the spec files using the<br>
script you provided;<br>
3) After step 2, we have TARs, that need will be extracted by the<br>
install script.<br>
<br>
Is this right?<br>
<br>
But, one more question: what about gcc, autoconf and automake?<br>
<br>
Best regards<br>
Cassio<br>
<br>
On Mon, Jul 23, 2012 at 8:13 PM, Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a><br></div><div>
<mailto:<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>>> wrote:<br>
<br>
    On 24/07/12 8:10 AM, Binkowski, Cassio wrote:<br>
<br>
<br>
        I would like a copy very much. It would be highly appreciated.<br>
<br>
<br>
    Follow the details in the link provided. You can find the<br>
    specbuilder source detailed in the following post I made:<br>
<br></div>
    <a href="http://www.rtems.org/__pipermail/rtems-users/2012-__July/010264.html" target="_blank">http://www.rtems.org/__<u></u>pipermail/rtems-users/2012-__<u></u>July/010264.html</a><div><div><br>
    <<a href="http://www.rtems.org/pipermail/rtems-users/2012-July/010264.html" target="_blank">http://www.rtems.org/<u></u>pipermail/rtems-users/2012-<u></u>July/010264.html</a>><br>
<br>
    I have attached a script I use.<br>
<br>
<br>
        Also, it is not very clear to me these things of building the<br>
        tools from<br>
        source and how it would work in MacOS just like it does in Linux.<br>
<br>
<br>
    The source used builds on a number of platforms including MacOS. The<br>
    task is to get that source to build a set of RTEMS tools that match<br>
    the release.<br>
<br>
<br>
        Would you mind giving me a brief overview?<br>
<br>
<br>
    Ralf maintains the tools by creating RPM spec files. You find these<br>
    in the rtems-crossrpms.git repo. A spec file is a detailed script of<br>
    the steps needed to build a tool chain. If rpmbuild was available on<br>
    every computer we could all use rpmbuild how-ever rpmbuild is<br>
    limited to a few Linux distributions. This leave us with a couple of<br>
    alternatives. Create a separate and parallel means to maintain tools<br>
    building on "other" hosts from source or write a tool that can use<br>
    the spec file as a source of steps. About 2 or 3 years ago I decided<br>
    on the spec file path because it is a write once rather than needing<br>
    to track all of Ralf changes. It has proved to be very useful.<br>
<br>
    Take a look at the sb-build.sh script. It runs a set-up phase that<br>
    copies in the spec files from the rtems-crossrpms.git clone you need<br>
    to have. It then build the tools into tar files. There is an<br>
    rt-install.sh script that unpacks the tools into the install path.<br>
<br>
    When Ralf releases new tools you get pull the changes into your git<br>
    repo and rebuild.<br>
<br>
    Chris<br>
<br>
<br>
</div></div></blockquote>
</blockquote></div><br></div>
</div></div></div><br>