User forums > General (but related to Code::Blocks)
TDM-GCC 4.5 series (Latest: 4.5.2 - 2011-03-27)
sankarbose:
Hi reckless
the programs, i am trying to run is from the sample dir of xerces and i am using windows xp sp2.
the message i received in msys is
--- Quote --- auto-importing has been activated without --enable-auto-import specified on the
command line.
This should work unless it involves constant data structures referencing symbols
from auto-imported DLLs.
--- End quote ---
i have also tried the files from mingw.org but it still gives the same error.
TDragon:
sankarbose, I will upgrade the TDM-GCC installer to the latest binutils release soon, which should fix your problem. In the meantime, try adding '-Wl,--enable-runtime-pseudo-reloc-v2' to the link command line.
reckless:
might explain why it works here my binutils where patched to allways use runtime-pseudo-reloc-v2 as default.
xerces examples work with that.
billyonthemountain:
Ok here some results of me trying to build wxWidgets on Windows 7 x64 (cmd line) :
--- Code: ---mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
--- End code ---
* wx 2.9-svn, mingw64-TDM, 64bit mode : Ok
* wx 2.8.10, mingw64-TDM, 32bit mode : Fails at link-time
* wx 2.8.10, mingw32-TDM, 32bit mode : Ok
The flags used were (here part of the config.gcc for the failed 2nd try):
--- Code: ---# Standard flags for CC
CFLAGS ?= -pipe -march=core2 -m32 -floop-interchange -floop-strip-mine -floop-block
# Standard flags for C++
CXXFLAGS ?= -pipe -march=core2 -m32 -floop-interchange -floop-strip-mine -floop-block
# Standard preprocessor flags (common for CC and CXX)
CPPFLAGS ?=
# Standard linker flags
LDFLAGS ?= -Wl,--as-needed -m32
--- End code ---
the -m32 switch was replaced by -m64 in the 1st try and by nothing in the 3rd.
Here the error message for the 2nd try:
--- Code: ---[...]
g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll gcc_mswudll\monod
ll_dummy.o gcc_mswudll\monodll_version_rc.o gcc_mswudll\monodll_appbase.o gcc_ms
wudll\monodll_arcall.o gcc_mswudll\monodll_arcfind.o gcc_mswudll\monodll_archive.o [many more *.o files...]
Creating library file: ..\..\lib\gcc_dll\libwxmsw28u.a
c:/mingw64-tdm/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mi
ngw32/bin/ld.exe: i386:x86-64 architecture of input file `gcc_mswudll\monodll_ve
rsion_rc.o' is incompatible with i386 output
collect2: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll] Error 1
--- End code ---
Any hints at what I might have missed there or why Mingw64 can't build correctly wxWidgets in 32 bit mode ?
edit: I tried again with only minimal flags (ie. no graphite, no march, no as-needed, no pipe) but it still fails in the same way...
billyonthemountain:
The same happens when building the src target of codeblocks :
--- Code: ---x86_64-w64-mingw32-g++.exe -Lbase\tinyxml -LD:\lib\wxWidgets-2.8.10\lib\gcc_dll -Ldevel -o devel\codeblocks.exe .objs\src\app.o .objs\src\appglobals.o .objs\src\associations.o .objs\src\compilersettingsdlg.o .objs\src\crashhandler.o .objs\src\dlgabout.o .objs\src\dlgaboutplugin.o .objs\src\environmentsettingsdlg.o .objs\src\infopane.o .objs\src\main.o .objs\src\notebookstyles.o .objs\src\printdlg.o .objs\src\scriptconsole.o .objs\src\scriptingsettingsdlg.o .objs\src\splashscreen.o .objs\src\startherepage.o .objs\src\switcherdlg.o .objs\src\resources\resources.res -Wl,--enable-auto-import -mthreads -Wl,--as-needed -m32 -lcodeblocks -lwxscintilla -lwxpropgrid -lshfolder -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw28u -mwindows
c:/mingw64-tdm/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `.objs\src\resources\resources.res' is incompatible with i386 output
collect2: ld returned 1 exit status
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version