build wxwidgets 2.9.4 with mingw64(rubenvb) return error

43 views
Skip to first unread message

zhangxinghai

unread,
May 17, 2013, 4:44:18 AM5/17/13
to wx-u...@googlegroups.com
Hi
I also download wxwidgets2.9.4 from https://sourceforge.net/projects/wxwindows/files/2.9.4/wxWidgets-2.9.4.7z,unpack it to a directory
My OS:Microsoft Windows XP Professional (32-bit) version 5.01.2600 Service Pack 3

I cd the wx\build\msw directory and invoke command 
mingw32-make -f makefile.gcc -j4 LDFLAGS="-Wl,--gc-sections,--strip-all" BUILD=release SHARED=1 MONOLITHIC=0 UNICODE=1 CXXFLAGS="-m32 -pipe -fno-keep-inline-dllexport   -Os  -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Wno-attributes -DNDEBUG" USE_EXCEPTION=0 USE_RTTI=0  1>1.txt 2>2.txt

The command returns error when it comes to 
g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw294u_core_gcc_custom.dll ....

I check the 2.txt and find it returns error as following

gcc_mswudll\coredll_textentry.o:textentry.cpp:(.text$_ZN20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_EclEP12wxEvtHandlerR7wxEvent[__ZN20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_EclEP12wxEvtHandlerR7wxEvent]+0xfe1dc0318d74f364): Cannot get section contents - auto-import exception
gcc_mswudll\coredll_textentry.o:textentry.cpp:(.text$_ZN11wxTextEntry23DoAutoCompleteFileNamesEi+0x3cbfb505472509dc): Cannot get section contents - auto-import exception
d:/mingw32win32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: gcc_mswudll\coredll_textentry.o: bad reloc address 0x2 in section `.text$_ZNK20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_E11GetWxTypeIdEv[__ZNK20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_E11GetWxTypeIdEv]'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw294u_core_gcc_custom.dll] Error 1

What's wrong
Thanks




Vadim Zeitlin

unread,
May 17, 2013, 7:39:25 AM5/17/13
to wx-u...@googlegroups.com
On Fri, 17 May 2013 16:44:18 +0800 (CST) zhangxinghai wrote:

z> I download i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z from
z> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.8-release/,unpack
...
z> gcc_mswudll\coredll_textentry.o:textentry.cpp:(.text$_ZN20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_EclEP12wxEvtHandlerR7wxEvent[__ZN20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_EclEP12wxEvtHandlerR7wxEvent]+0xfe1dc0318d74f364): Cannot get section contents - auto-import exception
z> gcc_mswudll\coredll_textentry.o:textentry.cpp:(.text$_ZN11wxTextEntry23DoAutoCompleteFileNamesEi+0x3cbfb505472509dc): Cannot get section contents - auto-import exception
z> d:/mingw32win32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: gcc_mswudll\coredll_textentry.o: bad reloc address 0x2 in section `.text$_ZNK20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_E11GetWxTypeIdEv[__ZNK20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_E11GetWxTypeIdEv]'
z> collect2.exe: error: ld returned 1 exit status
z> mingw32-make: *** [..\..\lib\gcc_dll\wxmsw294u_core_gcc_custom.dll] Error 1
z>
z> What's wrong

Sorry, no idea, I've never seen this error before. I'd recommend asking
MinGW-W64 people, perhaps they know where does this auto-import exception
come from. FWIW wxWidgets does build successfully with earlier versions of
the same compiler.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages