This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem compiling newlib


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.

PLEASE HELP!!!

regards, Oliver

On Tuesday 07 February 2006 05:31 pm, you wrote:
> Oliver Kania wrote:
> > Hello
> >
> > I did configure --target=arm-elf --prefix=$DIR
>
> I put together some instructions for building an arm-elf newlib based
> toolchain for the MinGW wiki which you might find useful
>
> http://www.mingw.org/MinGWiki/index.php/mingw%20hosted%20cross%20compiler
>
> If you're building on linux you can ignore the references to msys,
> msysdtk and the windows paths.
>
> I'm also maintaining an arm-elf cross compiler used for gameboy advance,
> Nintendo DS and GP32 which could potentially be modified for any other
> arm-elf target. This can be found at http://www.devkitpro.org while most
> of the binaries are hosted on the sourceforge site at
> http://sourceforge.net/project/showfiles.php?group_id=114505 .
>
> Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]