<DIV> Hi all !</DIV>
<DIV> I'm building arm toolchain for rtems-4.10, when building gcc-4.3.2 I meet a problem .</DIV>
<DIV> My pc is RHEL4 , and my sources is :</DIV>
<DIV> binutils-2.19-rtems4.10-20081023.diff</DIV>
<DIV> binutils-2.19.tar.bz2</DIV>
<DIV> gcc-core-4.3.2-rtems4.10-20081119.diff</DIV>
<DIV> gcc-core-4.3.2.tar.bz2</DIV>
<DIV> newlib-1.16.0.cvs.20081127-rtems4.10-20081127.diff</DIV>
<DIV> newlib-1.16.0.cvs.20081127.tar.gz</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> when make gcc it fails as:</DIV>
<DIV> </DIV>
<DIV>make[1]: Entering directory `/opt/rtems/tools/b-gcc'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/libiberty'<BR>make[3]: Entering directory `/opt/rtems/tools/b-gcc/libiberty/testsuite'<BR>make[3]: Nothing to be done for `all'.<BR>make[3]: Leaving directory `/opt/rtems/tools/b-gcc/libiberty/testsuite'<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/libiberty'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/fixincludes'<BR>make[2]: Nothing to be done for `all'.<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/fixincludes'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/intl'<BR>make[2]: Nothing to be done for `all'.<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/intl'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty'<BR>make[3]: Entering directory `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty/testsuite'<BR>make[3]: Nothing to be done for `all'.<BR>make[3]: Leaving directory `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty/testsuite'<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/fixincludes'<BR>make[2]: Nothing to be done for `all'.<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/fixincludes'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/libcpp'<BR>make[2]: Nothing to be done for `all'.<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/libcpp'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/libdecnumber'<BR>make[2]: Nothing to be done for `all'.<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/libdecnumber'<BR>make[2]: Entering directory `/opt/rtems/tools/b-gcc/gcc'<BR>make[2]: Leaving directory `/opt/rtems/tools/b-gcc/gcc'<BR>Checking multilib configuration for libgcc...<BR>Configuring in arm-rtems4.10/libgcc<BR>configure: loading cache ./config.cache<BR>checking for --enable-version-specific-runtime-libs... no<BR>checking for a BSD-compatible install... /usr/bin/install -c<BR>checking for gawk... gawk<BR>checking build system type... i686-pc-linux-gnu<BR>checking host system type... arm-unknown-rtems4.10<BR>checking for arm-rtems4.10-ar... /opt/rtems/rtems-4.10//arm-rtems4.10/bin/ar<BR>checking for arm-rtems4.10-lipo... arm-rtems4.10-lipo<BR>checking for arm-rtems4.10-nm... /opt/rtems/tools/b-gcc/./gcc/nm<BR>checking for arm-rtems4.10-ranlib... /opt/rtems/rtems-4.10//arm-rtems4.10/bin/ranlib<BR>checking for arm-rtems4.10-strip.. /opt/rtems/rtems-4.10//arm-rtems4.10/bin/strip<BR>checking whether ln -s works... yes<BR>checking for arm-rtems4.10-gcc... /opt/rtems/tools/b-gcc/./gcc/xgcc -B/opt/rtems/tools/b-gcc/./gcc/ -nostdinc -B/opt/rtems/tools/b-gcc/arm-rtems4.10/newlib/ -isystem /opt/rtems/tools/b-gcc/arm-rtems4.10/newlib/targ-include -isystem /opt/rtems/tools/gcc-4.3.2/newlib/libc/include -B/opt/rtems/rtems-4.10//arm-rtems4.10/bin/ -B/opt/rtems/rtems-4.10//arm-rtems4.10/lib/ -isystem /opt/rtems/rtems-4.10//arm-rtems4.10/include -isystem /opt/rtems/rtems-4.10//arm-rtems4.10/sys-include<BR>checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile<BR>See `config.log' for more details.<BR>make[1]: *** [configure-target-libgcc] Error 1<BR>make[1]: Leaving directory `/opt/rtems/tools/b-gcc'<BR>make: *** [all] Error 2</DIV>
<DIV> </DIV>
<DIV>In config.log, I then see:</DIV>
<DIV><BR>configure:4083: g++ -c -g -O2 conftest.cc >&5<BR>conftest.cc: In function `int main()':<BR>conftest.cc:13: error: `exit' undeclared (first use this function)<BR>conftest.cc:13: error: (Each undeclared identifier is reported only once for each function it appears in.)<BR>configure:4089: $? = 1<BR>configure: failed program was:<BR>| /* confdefs.h. */<BR>| <BR>| #define PACKAGE_NAME ""<BR>| #define PACKAGE_TARNAME ""<BR>| #define PACKAGE_VERSION ""<BR>| #define PACKAGE_STRING ""<BR>| #define PACKAGE_BUGREPORT ""<BR>| /* end confdefs.h. */<BR>| <BR>| int<BR>| main ()<BR>| {<BR>| exit (42);<BR>| ;<BR>| return 0;<BR>| }<BR></DIV>
<DIV>Any ideas about what I need to fix?<BR><BR>Thanks,<BR></DIV><br><!-- footer --><br><hr/>
<a href="http://www.yeah.net">网易免费邮,全球最大的中文免费邮箱</a>