For the last few days I have been battling with a compiler problem which I cannot resolve.
I am trying to compile wxWidgets SVN using MinGW64 (gcc version 4.7.0 to 4.8.1) together with MSYS 1.0.18 however the compiler crashes with the message:
Code: Select all
cc1plus.exe has stopped working.
However, when I type make (msys build) the source starts to compile until it gets to src/common/any.cpp at which point the compiler crashes with the above mentioned error message. The last few lines from the build console are as follows
Code: Select all
/home/wx/wxWidgets/lib/libwxscintilla-3.0-x86_64-w64-mingw32.a
/home/wx/wxWidgets/bk-make-pch ./.pch/wxprec_baselib/wx/wxprec.h.gch wx/wxprec.h x86_64-w64-mingw32-g++ -I./.pch/wxprec_
baselib -D__WXMSW__ -DWXBUILDING -I/home/wx/wxWidgets/src/tiff/libtiff -I./src/tiff/libtiff -I./src/jpeg -I./src/pn
g -I./src/zlib -I./src/regex -I./src/expat/lib -DwxUSE_GUI=0 -DwxUSE_BASE=1 -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privac
y -Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -I/home/wx/wxWidgets/lib/wx/include/x86_64-w64-mingw32-msw-unicode-static-
3.0 -I./include -DWX_PRECOMP -g -O0 -fpermissive
/home/wx/wxWidgets/bk-deps x86_64-w64-mingw32-g++ -c -o baselib_any.o -I./.pch/wxprec_baselib -D__WXMSW__ -DWXBUILD
ING -I/home/wx/wxWidgets/src/tiff/libtiff -I./src/tiff/libtiff -I./src/jpeg -I./src/png -I./src/zlib -I./src/regex -I./s
rc/expat/lib -DwxUSE_GUI=0 -DwxUSE_BASE=1 -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFF
SET_BITS=64 -I/home/wx/wxWidgets/lib/wx/include/x86_64-w64-mingw32-msw-unicode-static-3.0 -I./include -DWX_PRECOMP -g -O
0 -fpermissive ./src/common/any.cpp
make: *** [baselib_any.o] Error 1
Code: Select all
$ ./configure --host=x86_64-w64-mingw32 --disable-shared --enable-debug --with-zlib=sys --with-libjpeg=sys --with-libtiff=sys --with-libpng=sys --enable-compat26 --enable-compat28 --without-subdirs
Code: Select all
Configured wxWidgets 3.0.0 for `x86_64-w64-mingw32'
Which GUI toolkit should wxWidgets use? msw
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? no
Should wxWidgets support Unicode? yes (using wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.6 yes
wxWidgets 2.8 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff sys
zlib sys
expat builtin
libmspack no
sdl no
I have also tried compiling wx using the standard builtin libraries using the following configure script however I get exactly the same error.
Code: Select all
$ ./configure --host=x86_64-w64-mingw32 --disable-shared --enable-debug --with-zlib=builtin --with-libjpeg=builtin --with-libtiff=builtin --with-libpng=builtin --enable-compat26 --enable-compat28 --without-subdirs
Strangely, I successfully compiled wx using the above configure script (external image libraries) using gcc-4.5.0. It built beautifully. Sadly, gcc-4.5 is not good enough because I need to build 64bit libraries.
Anyway, this has become a long post so hope somebody can help me.