building GCC 4.0 for arm-elf target on mingw host

E. Weddington ericw@evcohs.com
Sun Mar 27 00:08:00 GMT 2005


Dave Murphy wrote:

>
> After 3 or 4 restarts it finally appears to proceed normally until 
> building libgcc
>
> make[3]: Leaving directory 
> `/c/projects/devkitPro/sources/arm-elf/gcc/gcc'
> /c/projects/devkitPro/sources/arm-elf/gcc/gcc/xgcc 
> -B/c/projects/devkitPro/sources/arm-elf/gcc/gcc/ 
> -Bc:/devkitARM_r12/arm-elf/bin/ -Bc:/devkitARM_r12/arm-elf/lib/ 
> -isystem c:/devkitARM_r12/arm-elf/include -isystem 
> c:/devkitARM_r12/arm-elf/sys-include -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-4.0-20050319-new/gcc 
> -I../../../gcc-4.0-20050319-new/gcc/ 
> -I../../../gcc-4.0-20050319-new/gcc/../include 
> -I../../../gcc-4.0-20050319-new/gcc/../libcpp/include  -DL_muldi3 -c 
> ../../../gcc-4.0-20050319-new/gcc/libgcc2.c -o libgcc/./_muldi3.o
> In file included from ../../../gcc-4.0-20050319-new/gcc/libgcc2.c:43:
> ./tm.h:5:28: error: config/dbxelf.h: No such file or directory
> ./tm.h:6:27: error: config/elfos.h: No such file or directory
> ./tm.h:7:37: error: config/arm/unknown-elf.h: No such file or directory
> ./tm.h:8:29: error: config/arm/elf.h: No such file or directory
> ./tm.h:9:30: error: config/arm/aout.h: No such file or directory
> ./tm.h:10:29: error: config/arm/arm.h: No such file or directory
> ./tm.h:11:23: error: defaults.h: No such file or directory
> In file included from ../../../gcc-4.0-20050319-new/gcc/libgcc2.c:56:
> ../../../gcc-4.0-20050319-new/gcc/libgcc2.h:230:3: error: #error 
> "expand the table"
> ../../../gcc-4.0-20050319-new/gcc/libgcc2.c: In function '__mulhi3':
> ../../../gcc-4.0-20050319-new/gcc/libgcc2.c:527: error: 
> 'BITS_PER_UNIT' undeclared (first use in this function)
> ../../../gcc-4.0-20050319-new/gcc/libgcc2.c:527: error: (Each 
> undeclared identifier is reported only once
> ../../../gcc-4.0-20050319-new/gcc/libgcc2.c:527: error: for each 
> function it appears in.)
> make[2]: *** [libgcc/./_muldi3.o] Error 1
> make[2]: Leaving directory 
> `/c/projects/devkitPro/sources/arm-elf/gcc/gcc'
> make[1]: *** [stmp-multilib] Error 2
> make[1]: Leaving directory 
> `/c/projects/devkitPro/sources/arm-elf/gcc/gcc'
> make: *** [all-gcc] Error 2
>
> copying the compile line and removing the spurious -I and the 
> -I../../../gcc-4.0-20050319-new/gcc/ results in no errors.
>
> I'm having a little trouble finding where this line is built up in the 
> makefiles, can anyone point me in the right direction to solve this 
> problem?
>
Interesting.

I just got a similar error with building an avr cross in  the latest 
MinGW/MSYS for gcc 3.4.3. Reported here:
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20594>

Now I'm wondering whether it's a gcc bug or if it's an MSYS bug. I can 
successfully build gcc for the avr target using cygwin with -mno-cygwin 
and explicitly setting the build and host.

Eric



More information about the Gcc mailing list