This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
linux-to-mingw32 GCC 3.1 weird problem
- From: Pieter Thysebaert <pieter dot thysebaert at intec dot rug dot ac dot be>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 17 Jul 2002 10:20:18 +0200
- Subject: linux-to-mingw32 GCC 3.1 weird problem
Hi,
last weekend I thought I had successfully built gcc 3.1 and binutils 2.12.90
as a linux (Debian 2.2) to mingw32 cross compiler (using w32api 1.5 and mingw
runtime 2.0)
I had to patch binutils/ld/pe-dll.c to get it working, though, and
interestingly, while trying to cross-compile the wxWindows library (from
CVS), the build fails when linking the dll:
i686-pc-mingw32-c++ -shared
-Wl,--out-implib,lib/libwx_msw-2.3-i686-pc-mingw32.dll.a -o
lib/libwx_msw-2.3-i686-pc-mingw32.dll accel.o app.o bitmap.o bmpbuttn.o
brush.o button.o caret.o checkbox.o checklst.o choice.o clipbrd.o colordlg.o
colour.o combobox.o control.o curico.o cursor.o data.o dc.o dcclient.o
dcmemory.o dcprint.o dcscreen.o dde.o dialog.o dialup.o dib.o dibutils.o
...many more objectfiles here...
pngrutil.o pngset.o pngtrans.o pngvcrd.o pngwio.o pngwrite.o pngwtran.o
pngwutil.o regcomp.o regexec.o regerror.o regfree.o adler32.o compress.o
crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o
inftrees.o infcodes.o infutil.o inffast.o automtn.o dataobj.o dropsrc.o
droptgt.o oleutils.o uuid.o -Wl,--subsystem,windows -mwindows -lm -lrpcrt4
-loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32
-ladvapi32 -lwsock32
Creating library file: lib/libwx_msw-2.3-i686-pc-mingw32.dll.a
i686-pc-mingw32-c++: Internal error: Segmentation fault (program ld)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [lib/libwx_msw-2.3-i686-pc-mingw32.dll] Error 1
The partition I'm doing the build on has 600 MB free space (just before the
dll is being built) and 384 MB of physical memory.
So I guess the primary question is: is this what you'll get when ld runs out
of diskspace or memory, or is this another problem (misbuilt binutils?)
(the patch to pe-dll.c consisted of replacing stricmp() by strcasecmp())
since I don't have stricmp on my system.)
Pieter