This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Cross-compiling for mingw32
- From: François-Xavier Coudert <Francois-Xavier dot Coudert at ens dot fr>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Feb 2005 14:36:20 +0100
- Subject: Cross-compiling for mingw32
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