Cross-compiling for mingw32

François-Xavier Coudert Francois-Xavier.Coudert@ens.fr
Fri Feb 25 10:30:00 GMT 2005


Hi all,

I'm working on cross-compiling gcc (in fact, gfortran especially) for
build=i386-linux, target=host=i386-mingw32. This works fairly well until
it tries to compile libgcc/./_muldi3.o:

i386-mingw32-gcc -O2 -I../../gcc/gcc/../winsup/w32api/include -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl
-I../../gcc/gcc/../libcpp/include  -DL_muldi3 -c ../../gcc/gcc/libgcc2.c
-o libgcc/./_muldi3.o

Error message is:
../../gcc/gcc/libgcc2.h:34: warning: ignoring #pragma GCC visibility
../../gcc/gcc/libgcc2.h:97: error: no data type for mode `SC'
../../gcc/gcc/libgcc2.h:102: error: no data type for mode `DC'
../../gcc/gcc/libgcc2.h:107: error: no data type for mode `XC'

I looked at these headers but I can't understand why this is failing. May
this be something I missed when configuring (I just use
--prefix=/cosmic/coudert/cross-irun --enable-languages=c,f95
--target=i386-mingw32 --host=i386-mingw32 --build=i686-pc-linux)? Does
someone have any idea about how I can figure this out?

Thanks,
FX

PS: please Cc me all answers as I'm no subscriber of this list



More information about the Gcc-help mailing list