View Issue Details

IDProjectCategoryView StatusLast Update
0005091Spring engineGeneralpublic2016-02-14 21:45
Reportersuper mario Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version100.0+git 
Summary0005091: duplicate section warnings when compling spring with mingw64 on windows
DescriptionC:/spring/mingwlibs64/lib/libboost_thread-mt.a C:/spring/mingwlibs64/lib/libboost_system-mt.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail19error_info_injectorISt13runtime_errorEE[_ZTSN5boost16exception_detail19error_info_injectorISt13runtime_errorEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE[_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail19error_info_injectorINS_9gregorian16bad_day_of_monthEEE[_ZTSN5boost16exception_detail19error_info_injectorINS_9gregorian16bad_day_of_monthEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail19error_info_injectorINS_9gregorian8bad_yearEEE[_ZTSN5boost16exception_detail19error_info_injectorINS_9gregorian8bad_yearEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian8bad_yearEEEEE[_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian8bad_yearEEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail19error_info_injectorINS_9gregorian9bad_monthEEE[_ZTSN5boost16exception_detail19error_info_injectorINS_9gregorian9bad_monthEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian9bad_monthEEEEE[_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian9bad_monthEEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost6detail17sp_counted_impl_pINS_16exception_detail10clone_implINS2_10bad_alloc_EEEEE[_ZTSN5boost6detail17sp_counted_impl_pINS_16exception_detail10clone_implINS2_10bad_alloc_EEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTSN5boost6detail17sp_counted_impl_pINS_16exception_detail10clone_implINS2_14bad_exception_EEEEE[_ZTSN5boost6detail17sp_counted_impl_pINS_16exception_detail10clone_implINS2_14bad_exception_EEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_baseE[_ZTVN5boost16exception_detail10clone_baseE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost9gregorian16bad_day_of_monthE[_ZTVN5boost9gregorian16bad_day_of_monthE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost9gregorian8bad_yearE[_ZTVN5boost9gregorian8bad_yearE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost9gregorian9bad_monthE[_ZTVN5boost9gregorian9bad_monthE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost6system12system_errorE[_ZTVN5boost6system12system_errorE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10bad_alloc_E[_ZTVN5boost16exception_detail10bad_alloc_E]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail14bad_exception_E[_ZTVN5boost16exception_detail14bad_exception_E]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail19error_info_injectorISt13runtime_errorEE[_ZTVN5boost16exception_detail19error_info_injectorISt13runtime_errorEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail19error_info_injectorINS_9gregorian16bad_day_of_monthEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_9gregorian16bad_day_of_monthEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian16bad_day_of_monthEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian16bad_day_of_monthEEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_10bad_alloc_EEE[_ZTVN5boost16exception_detail10clone_implINS0_10bad_alloc_EEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_14bad_exception_EEE[_ZTVN5boost16exception_detail10clone_implINS0_14bad_exception_EEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail19error_info_injectorINS_9gregorian8bad_yearEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_9gregorian8bad_yearEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian8bad_yearEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian8bad_yearEEEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail19error_info_injectorINS_9gregorian9bad_monthEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_9gregorian9bad_monthEEE]' has different size
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian9bad_monthEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_9gregorian9bad_monthEEEEE]' has different size
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0\libstdc++.a(cow-stdexcept.o):cow-stdexcept.cc:(.text$_ZNSt11logic_errorC2ERKS_+0x0): multiple definition of `std::logic_error::logic_error(std::logic_error const&)'
C:/spring/mingwlibs64/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZNSt11logic_errorC2ERKS_[_ZNSt11logic_errorC2ERKS_]+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Process terminated with status 1 (9 minute(s), 33 second(s))
1 error(s), 1145 warning(s) (9 minute(s), 33 second(s))
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2016-02-14 14:42

administrator   ~0015769

which compiler version are you using?


very likely you must use the same version which was used when boost was compiled:

4.9.3:
https://github.com/spring/mingwlibs64/commit/1d07907c953e4ed5654806b927d8295b8c9e0af2

hokomoko

2016-02-14 15:37

developer   ~0015772

make sure it's 4.9.3 with seh type exceptions

super mario

2016-02-14 18:24

reporter   ~0015777

Would it easier for cmake to download the boost libraries and compile them, for different versions of compiler? I'm using 5.1 version currently.

hokomoko

2016-02-14 19:11

developer   ~0015778

no, it won't be easier.

super mario

2016-02-14 19:18

reporter   ~0015779

Why not? Isn't shouldn't be that hard at all. For what reasons are we stuck with 4.9 for?

hokomoko

2016-02-14 19:19

developer   ~0015780

you can try 5.1 with seh exceptions if you really want.
it may work

abma

2016-02-14 20:58

administrator   ~0015781

Last edited: 2016-02-14 20:58

@super mario:

please don't waste our time with feature requests. help is welcome but comments like:

"... it shouldn't be hard..." etcetc aren't useful. when its not hard, then please just do it!

an other compiler seems to be incompatbile, thats a limitation of boost or gcc, idk, so just use 4.9.3.

abma

2016-02-14 21:43

administrator   ~0015783

note:

the error here is not "duplicate section ...."

it is:

C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0\libstdc++.a(cow-stdexcept.o):cow-stdexcept.cc:(.text$_ZNSt11logic_errorC2ERKS_+0x0): multiple definition of `std::logic_error::logic_error(std::logic_error const&)'

Issue History

Date Modified Username Field Change
2016-02-14 02:52 super mario New Issue
2016-02-14 14:42 abma Note Added: 0015769
2016-02-14 14:42 abma Assigned To => abma
2016-02-14 14:42 abma Status new => feedback
2016-02-14 14:45 abma Severity block => major
2016-02-14 15:37 hokomoko Note Added: 0015772
2016-02-14 18:24 super mario Note Added: 0015777
2016-02-14 18:24 super mario Status feedback => assigned
2016-02-14 19:11 hokomoko Note Added: 0015778
2016-02-14 19:18 super mario Note Added: 0015779
2016-02-14 19:19 hokomoko Note Added: 0015780
2016-02-14 20:55 abma Status assigned => closed
2016-02-14 20:55 abma Resolution open => no change required
2016-02-14 20:58 abma Note Added: 0015781
2016-02-14 20:58 abma Note Edited: 0015781
2016-02-14 21:43 abma Note Added: 0015783
2016-02-14 21:45 abma Summary duplicate section error when compling spring with mingw64 on windows => duplicate section warnings when compling spring with mingw64 on windows