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

---------- 转发邮件信息 ----------
发件人:""Joel Sherrill" <joel.sherrill@oarcorp.com>" 
发送日期:2008-12-31 00:29:12
收件人:chenyulongrtems <chenyulongrtems@163.com>"RTEMS Users" <rtems-users@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@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@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@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


</PRE><br><!-- footer --><br>
<span class="neteasefooter">
<hr/>
<a href="http://www.yeah.net">网易免费邮,全球最大的中文免费邮箱</a>
</span>