gcc-4.5.1 make all problem

Joel Sherrill joel.sherrill at OARcorp.com
Mon Nov 1 16:32:37 UTC 2010


  On 11/01/2010 11:25 AM, Gedare Bloom wrote:
> On Mon, Nov 1, 2010 at 11:19 AM, Eugene Shvets<lhj7362 at gmail.com>  wrote:
>>   Hi ,
>> I have problems compiling gcc-4.5.1. I decompressed
>>
>> gcc-4.5.1.tar.gz,  gcc-core-4.5.1.tar.gz,
>> gcc-g++-4.5.1.tar.gz,  gcc-objc-4.5.1.tar.gz
>>
You don't need the objc
>> files, patched with gcc-core-4.5.1-rtems4.11-20100818.diff
>> Then executed
>>
>> ../gcc-4.3.2/configure --target=bfin-rtems4.11 \
>>     --with-gnu-as --with-gnu-ld --with-newlib --verbose \
>>     --enable-threads --enable-languages="c,c++" \
>>     --prefix=/opt/rtems-4.11
>>
4.3.2?  And using the 4.5.1 patch?
>> command.
>>
>> make all failed like this:
>>
>> checking for bfin-rtems4.10-gcc...
>> /home/leednee/rtems/tools/b-gcc/./gcc/xgcc
>> -B/home/leednee/rtems/tools/b-gcc/./gcc/ -nostdinc
>> -B/home/leednee/rtems/tools/b-gcc/bfin-rtems4.10/newlib/ -isystem
>> /home/leednee/rtems/tools/b-gcc/bfin-rtems4.10/newlib/targ-include -isystem
>> /home/leednee/rtems/tools/gcc-4.5.1/newlib/libc/include
>> -B/opt/rtems-4.10/bfin-rtems4.10/bin/ -B/opt/rtems-4.10/bfin-rtems4.10/lib/
>> -isystem /opt/rtems-4.10/bfin-rtems4.10/include -isystem
>> /opt/rtems-4.10/bfin-rtems4.10/sys-include
>> checking for suffix of object files... configure: error: in
>> `/home/leednee/rtems/tools/b-gcc/bfin-rtems4.10/libgcc':
>> 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 `/home/leednee/rtems/tools/b-gcc'
>> make: *** [all] Error 2
>>
> It looks like you are configuring for rtems4.11, but compiling for rtems-4.10.
>
I agree.  Looks like the output is from a 4.10 build not a 4.11 one.

You must have a cross assembler in your PATH ahead of the native one.

You don't mention newlib at all.
>> at config.log there were several errors :
>> conftest.c:16: error: 'choke' undeclared (first use in this function)
>> conftest.c:16: error: (Each undeclared identifier is reported only once
>> conftest.c:16: error: for each function it appears in.)
>> conftest.c:16: error: expected ';' before 'me'
>> conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
>> conftest.c:55:27: error: libelf/libelf.h: No such file or directory
>> conftest.c:55:25: error: libelf/gelf.h: No such file or directory
>>
>> Before running make I installed libelf (apt-file search libelf then install
>> what is searched). I couldn't find anything on ac_nonexistent
>> After some googling I found the problem mey be the absence of MPFR, GMP and
>> MPC  libraries, however I installed them before running make.
>>
>> So what should I do?
>>

>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
>>
>>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users


-- 
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





More information about the users mailing list