This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: problem compiling newlib
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Dave Murphy'" <wintermute2k4 at ntlworld dot com>, "'Oliver Kania'" <oliver-kania at t-online dot de>
- Cc: <newlib at sourceware dot org>
- Date: Mon, 13 Feb 2006 10:21:52 -0000
- Subject: RE: problem compiling newlib
On 13 February 2006 03:36, Dave Murphy wrote:
> Oliver Kania wrote:
>> Hello Dave!!
>>
>> Thanks.
>>
>> I tried using the bash files you provide.
>> Binutils compile fine.
>> With gcc I run into problems ::
>>
>> =============================================
>> ./xgcc -B./ -B/usr/local/arm-elf/bin/ -isystem /usr/local/arm-elf/include
>> -isystem /usr/local/arm-elf/sys-include
>> -L/root/arm-elf/arm-elf/gcc/gcc/../ld
>> -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
>> -Wstrict-prototypes
>> -Wmissing-prototypes -Wold-style-definition -isystem ./include
>> -Dinhibit_libc -fno-inline -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
>> -Dinhibit_libc -I. -I. -I../../../gcc-3.4.5/gcc -I../../../gcc-3.4.5/gcc/.
>> -I../../../gcc-3.4.5/gcc/../include -DL_udivsi3 -xassembler-with-cpp
>> -c ../../../gcc-3.4.5/gcc/config/arm/lib1funcs.asm -o libgcc/./_udivsi3.o
>> as: unrecognized option `-mcpu=arm7tdmi'
>> make[1]: *** [libgcc/./_udivsi3.o] Error 1
>> make[1]: Leaving directory `/root/arm-elf/arm-elf/gcc/gcc'
>> make: *** [stmp-multilib] Error 2
>> ==================================================
>> A make -k results in multiple unrecognized mcpu-arm7tdmi
>> This is strange because it is listed as an option in the info.
>>
> This looks like you haven't added the arm-elf binutils tools to the path
> before configuring and building gcc so it's using the native assembler
> instead of the arm-elf assembler.
>
> Dave
That was my first thought too, but note:
>> ./xgcc -B./ -B/usr/local/arm-elf/bin/ -isystem /usr/local/arm-elf/include
I would expect it to have been found. Oliver, some other things to check
are:
- did "make install" for binutils run correctly and to completion?
- did you use the exact same prefix for configuring binutils and gcc/newlib?
cheers,
DaveK
--
Can't think of a witty .sigline today....