<html>
<head>
</head>
<body>
I have also tried the latest patch <br>
newlib-1.11.0-rtems-20030203.diff<br>
<br>
Angelo Fraietta wrote:<br>
<blockquote type="cite" cite="mid:3E5BF0AA.6060604@bigpond.com"> I commenced
building the tools, however, I have come into an error<br>
<br>
I first had to make a soft link to binutils and gcc before moving to the
build, otherwise the configure did not work EG with gcc<br>
<br>
<blockquote>
<h2><a name="SECTION00335000000000000000"> Configure, build and install
the cross-compiler and libraries</a>
</h2>
<ol>
<li>Create a directory in which the tools will be built and change
to that directory.
<pre>rm -rf build<br>mkdir build<br>ln -s <tt>gcc-3.2.1</tt> gcc<br> cd build<br></pre>
</li>
<li>Configure the compiler and libraries.
<pre>../\gcc/configure --target=i386-rtems --prefix=/opt/rtems \<br> --with-gnu-as --with-gnu-ld --with-newlib --verbose \<br> --with-system-zlib --disable-nls \<br> --enable-version-specific-runtime-libs \<br> --enable-threads=rtems \<br> --enable-languages=c,c++<br></pre>
</li>
</ol>
</blockquote>
<br>
<br>
The binutils worked fine, however, this was not the case with gcc.<br>
<br>
During the build I got the following error<br>
<br>
i386-rtems-ar rc ./libgcc.a libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o
libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o
libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o
libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o
libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o
libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o
libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o
libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o
libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o
libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o
libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o
libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o libgcc/./_unpack_sf.o
libgcc/./_addsub_sf.o libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o
libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o
libgcc/./_ge_sf.o libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o
libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o libgcc/./_make_sf.o
libgcc/./_sf_to_df.o libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o
libgcc/./_pack_df.o libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o
libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o libgcc/./_eq_df.o
libgcc/./_ne_df.o libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o
libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o libgcc/./_negate_df.o
libgcc/./_make_df.o libgcc/./_df_to_sf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o
libgcc/./_usi_to_df.o libgcc/./xp-bit.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
libgcc/./unwind-sjlj.o libgcc/./_eprintf.o libgcc/./_bb.o libgcc/./__gcc_bcmp.o<br>
make[2]: i386-rtems-ar: Command not found<br>
make[2]: *** [libgcc.a] Error 127<br>
make[2]: Leaving directory `/opt/rtems/tools/build/gcc'<br>
make[1]: *** [stmp-multilib] Error 2<br>
make[1]: Leaving directory `/opt/rtems/tools/build/gcc'<br>
make: *** [all-gcc] Error 2<br>
<br>
I had a look through the previous configure and got this -- however I don't
know whether it is relevant:<br>
<br>
checking what nm to use... i386-rtems-nm<br>
checking what objdump to use... i386-rtems-objdump<br>
checking assembler alignment features... .p2align including maximum skip<br>
checking assembler subsection support... ../../gcc/gcc/configure: i386-rtems-nm:
command not found<br>
../../gcc/gcc/configure: i386-rtems-nm: command not found<br>
.subsection<br>
<br>
I have attached my config script (I also tried it with removing the first
\. i.e ../gcc instead of ../\gcc)<br>
<br>
Any suggestions as to what I may be doing wrong<br>
<pre class="moz-signature" cols="$mailwrapcol">-- <br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><br><a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a><br><br>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY<br>There are those who seek knowledge to be known by others - that is VANITY<br>There are those who seek knowledge in order to serve - that is LOVE<br> Bernard of Clairvaux (1090 - 1153)</pre>
<br>
<pre wrap=""><br><hr width="90%" size="4"><br>../\gcc/configure --target=i386-rtems --prefix=/opt/rtems --with-gnu-as --with-gnu-ld --with-newlib --verbose --with-system-zlib --disable-nls --enable-version-specific-runtime-libs --enable-threads=rtems --enable-languages=c,c++<br></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
<a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a>
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)</pre>
<br>
</body>
</html>