[1.34.0] mingw and vtables

A bunch of mingw tests fail with something like: variable 'vtable for boost::XXX' can't be auto-imported Googling around gives me: http://cygwin.com/ml/cygwin-patches/2002-q3/msg00051.html which suggests that --enable-runtime-pseudo-reloc should be added to compiler options to work this around. Before I go about hacking gcc.jam with that guess, can anybody running mingw test try to add <cxxflags>--enable-runtime-pseudo-reloc to options in "using" that configures mingw gcc? Thanks, Volodya

Vladimir Prus <ghost@cs.msu.su> writes:
A bunch of mingw tests fail with something like:
variable 'vtable for boost::XXX' can't be auto-imported
Googling around gives me:
http://cygwin.com/ml/cygwin-patches/2002-q3/msg00051.html
which suggests that
--enable-runtime-pseudo-reloc
should be added to compiler options to work this around. Before I go about hacking gcc.jam with that guess, can anybody running mingw test try to add
<cxxflags>--enable-runtime-pseudo-reloc
to options in "using" that configures mingw gcc?
I needed to add <linkflags>-Wl,--enable-runtime-pseudo-reloc to user-config.jam, rather than <cxxflags>, but with that option program_options/cmdline_test_dll passes, which didn't before. I'll run a full test with that option tonight. Anthony -- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Anthony Williams wrote:
Vladimir Prus <ghost@cs.msu.su> writes:
A bunch of mingw tests fail with something like:
variable 'vtable for boost::XXX' can't be auto-imported
Googling around gives me:
http://cygwin.com/ml/cygwin-patches/2002-q3/msg00051.html
which suggests that
--enable-runtime-pseudo-reloc
should be added to compiler options to work this around. Before I go about hacking gcc.jam with that guess, can anybody running mingw test try to add
<cxxflags>--enable-runtime-pseudo-reloc
to options in "using" that configures mingw gcc?
I needed to add
<linkflags>-Wl,--enable-runtime-pseudo-reloc
to user-config.jam, rather than <cxxflags>, but with that option program_options/cmdline_test_dll passes, which didn't before.
I'll run a full test with that option tonight.
Sorry for confusing compiler and linker, thanks a lot of trying, and hopefully we'll have better mingw results tomorrow. If so, I'll change gcc.jam accordingly. - Volodya
participants (2)
-
Anthony Williams
-
Vladimir Prus