Fw:Re: gcc build fails "cannot compute suffix of object files"

chenyulongrtems chenyulongrtems at 163.com
Wed Dec 31 02:55:18 UTC 2008


This is my steps ,is there anything wrong?	/opt/rtems-cross/archive		binutils-2.19-rtems4.10-20081023.diff		binutils-2.19.tar.bz2		gcc-core-4.3.2-rtems4.10-20081205.diff		gcc-core-4.3.2.tar.bz2		newlib-1.16.0.cvs.20081216-rtems4.10-20081216.diff		newlib-1.16.0.cvs20081216.tar.gz	cd /opt/rtems-cross	mkdir tools	cd tools	tar xvfj ../archive/gcc-core-4.3.2.tar.bz2	tar xvfj ../archive/binutils-2.19.tar.bz2	tar xvfz ../archive/newlib-1.16.0.cvs20081216.tar.gz	now in /opt/rtems-cross/tools/ there are		gcc-4.3.2		binutils-2.19		newlib-1.16.0	cd gcc-4.3.2	cat ../../archive/gcc-core-4.3.2-rtems4.10-20081205.diff | patch -p1	cd ..	cd binutils-2.19	cat ../../archive/binutils-2.19-rtems4.10-20081023.diff | patch -p1	cd ..	cd newlib-1.16.0/	cat ../../archive/newlib-1.16.0.cvs.20081216-rtems4.10-20081216.diff | patch -p1	there's no .rej files.	cd /opt/rtems-cross/tools	mkdir b-binutils	cd b-binutils	../binutils-2.19/configure --target=arm-rtems --prefix=/opt/rtems	make all	make info	make install	now in /opt/rtems/bin there are	arm-rtems-addr2line arm-rtems-gprof 	arm-rtems-objdump	arm-rtems-strings	arm-rtems-ar	  arm-rtems-ld	 arm-rtems-ranlib  arm-rtems-strip	arm-rtems-as	   arm-rtems-nm	 arm-rtems-readelf	arm-rtems-c++filt	   arm-rtems-objcopy  arm-rtems-size	export PATH=/opt/rtems/bin:$PATH	cd /opt/rtems-cross/tools	cd gcc-4.3.2	ln -s ../newlib-1.16.0/newlib .	cd ..	mkdir b-gcc	cd b-gcc	../gcc-4.3.2/configure --target=arm-rtems --with-gnu-as --with-gnu-ld --with-newlib --with-mpfr-include=/usr/local/include/ --with-mpfr-lib=/usr/local/lib (my mpfr is old) --verbose  --enable-threads --enable-languages="c" --prefix=/opt/rtems	make all	then failed . Is there anything wrong?	thank you !	

---------- 转发邮件信息 ----------
发件人:""Joel Sherrill" <joel.sherrill at oarcorp.com>" 
发送日期:2008-12-31 00:29:12
收件人:chenyulongrtems <chenyulongrtems at 163.com>"RTEMS Users" <rtems-users at rtems.org>
主题: Re: gcc build fails "cannot compute suffix of object files"
This should have stayed on the list.


It still looks to me that you are using the tools from the build tree
and not the install point.

--joel

chenyulongrtems wrote:
> Hi Joel!
> First thank you for your back.
> I just follows the steps in the documents in www.rtems.com
> <http://www.rtems.com> carefully. And I typed this : export
> PATH=/opt/rtems/bin:$PATH after maked binutils and installed .
> /opt/rtems is the prefix dir when configure binutils .
> arm-rtems-ranlib is in /opt/rtems/bin . But I don't know why it finds
> /opt/rtems/arm-rtems/bin/ranlib when checking for arm-rtems-ranlib.
>
>
> 在2008-12-12,"Joel Sherrill" <joel.sherrill at oarcorp.com> 写道:
> >Hi,
> >
> >First if you updated to RHEL5, you could just use the prebuilt RPMs.
> >
> >
> >Second, dou are using binutils from the wrong place.
> >After it is installed, you should have /opt/rtems/bin in your PATH
> >based upon what I see in the log. The directory configure
> >found ranlib is in NOT for public use.
> >
> >checking for arm-rtems4.10-ranlib...
> >/opt/rtems/rtems-4.10//arm-rtems4.10/bin/ranlib
> >
> >Since these tools don't have the target in front of the tool
> >base name, gcc is probably confusing native and cross in horrible
> >ways.
> >
> >chenyulongrtems wrote:
> >> Hi all !
> >> I'm building arm toolchain for rtems-4.10, when building gcc-4.3.2 I
> >> meet a problem .
> >> My pc is RHEL4 , and my sources is :
> >> binutils-2.19-rtems4.10-20081023.diff
> >> binutils-2.19.tar.bz2
> >> gcc-core-4.3.2-rtems4.10-20081119.diff
> >> gcc-core-4.3.2.tar.bz2
> >> newlib-1.16.0.cvs.20081127-rtems4.10-20081127.diff
> >> newlib-1.16.0.cvs.20081127.tar.gz
> >> when make gcc it fails as:
> >> make[1]: Entering directory `/opt/rtems/tools/b-gcc'
> >> make[2]: Entering directory `/opt/rtems/tools/b-gcc/libiberty'
> >> make[3]: Entering directory `/opt/rtems/tools/b-gcc/libiberty/testsuite'
> >> make[3]: Nothing to be done for `all'.
> >> make[3]: Leaving directory `/opt/rtems/tools/b-gcc/libiberty/testsuite'
> >> make[2]: Leaving directory `/opt/rtems/tools/b-gcc/libiberty'
> >> make[2]: Entering directory `/opt/rtems/tools/b-gcc/fixincludes'
> >> make[2]: Nothing to be done for `all'.
> >> make[2]: Leaving directory `/opt/rtems/tools/b-gcc/fixincludes'
> >> make[2]: Entering directory `/opt/rtems/tools/b-gcc/intl'
> >> make[2]: Nothing to be done for `all'.
> >> make[2]: Leaving directory `/opt/rtems/tools/b-gcc/intl'
> >> make[2]: Entering directory
> >> `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty'
> >> make[3]: Entering directory
> >> `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty/testsuite'
> >> make[3]: Nothing to be done for `all'.
> >> make[3]: Leaving directory
> >> `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty/testsuite'
> >> make[2]: Leaving directory
> >> `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/libiberty'
> >> make[2]: Entering directory
> >> `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/fixincludes'
> >> make[2]: Nothing to be done for `all'.
> >> make[2]: Leaving directory
> >> `/opt/rtems/tools/b-gcc/build-i686-pc-linux-gnu/fixincludes'
> >> make[2]: Entering directory `/opt/rtems/tools/b-gcc/libcpp'
> >> make[2]: Nothing to be done for `all'.
> >> make[2]: Leaving directory `/opt/rtems/tools/b-gcc/libcpp'
> >> make[2]: Entering directory `/opt/rtems/tools/b-gcc/libdecnumber'
> >> make[2]: Nothing to be done for `all'.
> >> make[2]: Leaving directory `/opt/rtems/tools/b-gcc/libdecnumber'
> >> make[2]: Entering directory `/opt/rtems/tools/b-gcc/gcc'
> >> make[2]: Leaving directory `/opt/rtems/tools/b-gcc/gcc'
> >> Checking multilib configuration for libgcc...
> >> Configuring in arm-rtems4.10/libgcc
> >> configure: loading cache ./config.cache
> >> checking for --enable-version-specific-runtime-libs... no
> >> checking for a BSD-compatible install... /usr/bin/install -c
> >> checking for gawk... gawk
> >> checking build system type... i686-pc-linux-gnu
> >> checking host system type... arm-unknown-rtems4.10
> >> checking for arm-rtems4.10-ar...
> >> /opt/rtems/rtems-4.10//arm-rtems4.10/bin/ar
> >> checking for arm-rtems4.10-lipo... arm-rtems4.10-lipo
> >> checking for arm-rtems4.10-nm... /opt/rtems/tools/b-gcc/./gcc/nm
> >> checking for arm-rtems4.10-ranlib...
> >> /opt/rtems/rtems-4.10//arm-rtems4.10/bin/ranlib
> >> checking for arm-rtems4.10-strip..
> >> /opt/rtems/rtems-4.10//arm-rtems4.10/bin/strip
> >> checking whether ln -s works... yes
> >> 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
> >> checking for suffix of object files... configure: error: cannot
> >> compute suffix of object files: cannot compile
> >> See `config.log' for more details.
> >> make[1]: *** [configure-target-libgcc] Error 1
> >> make[1]: Leaving directory `/opt/rtems/tools/b-gcc'
> >> make: *** [all] Error 2
> >> In config.log, I then see:
> >>
> >> configure:4083: g++ -c -g -O2 conftest.cc >&5
> >> conftest.cc: In function `int main()':
> >> conftest.cc:13: error: `exit' undeclared (first use this function)
> >> conftest.cc:13: error: (Each undeclared identifier is reported only
> >> once for each function it appears in.)
> >> configure:4089: $? = 1
> >> configure: failed program was:
> >> | /* confdefs.h. */
> >> |
> >> | #define PACKAGE_NAME ""
> >> | #define PACKAGE_TARNAME ""
> >> | #define PACKAGE_VERSION ""
> >> | #define PACKAGE_STRING ""
> >> | #define PACKAGE_BUGREPORT ""
> >> | /* end confdefs.h. */
> >> |
> >> | int
> >> | main ()
> >> | {
> >> | exit (42);
> >> | ;
> >> | return 0;
> >> | }
> >> Any ideas about what I need to fix?
> >>
> >> Thanks,
> >>
> >>
> >> ------------------------------------------------------------------------
> >> 网易免费邮,全球最大的中文免费邮箱 <http://www.yeah.net> 
> >
> >
> >-- 
> >Joel Sherrill, Ph.D.             Director of Research & Development
> >joel.sherrill at OARcorp.com        On-Line Applications Research
> >Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> >   Support Available             (256) 722-9985
> >
> >
>   
>
>
> ------------------------------------------------------------------------
> [广告] 2008年最受关注楼盘
> <http://popme.163.com/link/003985_1010_7027.html> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20081231/df87770f/attachment.html>


More information about the users mailing list