This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

building GCC 4.0 for arm-elf target on mingw host


Hi,

I've been attempting to build the gcc-4.0 20050319 snapshot under mingw/msys for arm-elf target with a few problems.

the mingw32 gcc is 3.4.2

Configuring seems to work fine.

../../$GCC_SRCDIR/configure \
--enable-languages=c,c++ \
--enable-interwork --enable-multilib\
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
--disable-shared --disable-threads --disable-win32-registry --disable-nls\
--target=arm-elf \
--with-newlib \
--prefix=c:/devkitARM_r12



proceeding with make all-gcc results in a number of weird errors configuring in subdirectories


Configuring in intl
make[1]: Entering directory `/c/projects/devkitPro/sources/arm-elf/gcc/intl'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/c/projects/devkitPro/sources/arm-elf/gcc/intl'
make: *** [all-intl] Error 2


The build process doesn't stop but carries on with configuring (in some cases displaying the command prompt as if the build had stopped). Removing the files from the subdirectory in the build directory & restarting make all-gcc allows me to continue but results in the same error in a number of subdirectories.

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?

Dave



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