Menu

#1407 gcc 4.5.0 build gmp 5.0.1 cxx test get 0xc0000005 error

OTHER
closed
nobody
gcc (462)
Bug
out-of-date
Unknown
False
2013-02-07
2010-03-14
SquallATF
No

gmp configed whith --prefix=/mingw --enable-shared --disable-static --enable-cxx
make check failed in cxx check,get 0xc0000005 error.
but if i add -Wl,--enable-auto-import to CXXFLAGS can pass all test.

Discussion

  • SquallATF

    SquallATF - 2010-03-14

    with out -Wl,--enable-auto-impor the auto-import info
    Info: resolving vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> > by linking to __imp___ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE (auto-import)
    Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
    Info: resolving VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> > by linking to __imp___ZTTSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE (auto-import)
    Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
    Info: resolving vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> > by linking to __imp___ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE (auto-importe:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: 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.)

     
  • Earnie Boyd

    Earnie Boyd - 2010-03-14

    Frankly, I've never liked the automagic pass to ld of --enable-auto-import. Maybe a gcc switch to --auto-import or some such added to the specs file that would pass the correct flags to ld might be in order.

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-07
    • status: open --> closed
    • milestone: --> OTHER
    • type: --> Bug
    • resolution: --> out-of-date
    • category: --> Unknown
    • patch_attached: --> False