1

Topic: duplicate section ' XXX ' has different size

Greetings! I try to collect some code and usage boost/Qt5, and received the such: C:\boost-1.65.0-mingw53\lib/libboost_system.a (error_code.o): duplicate section `.rdata$_ZTIN5boost6system14error_category12std_categoryE [__ZTIN5boost6system14error_category12std_categoryE] ' has different size C:\boost-1.65.0-mingw53\lib/libboost_system.a (error_code.o): duplicate section `.rdata$_ZTVN5boost6system14error_category12std_categoryE [__ZTVN5boost6system14error_category12std_categoryE] ' has different size if I correctly understand, here it is a question what in one file (error_code.o) two identical sections? How generally the such can happen, and what with it to do? Thanks.

2

Re: duplicate section ' XXX ' has different size

Hello, niXman, you wrote: X> greetings! X> I try to collect some code and usage boost/Qt5, and received the such: X> X> C:\boost-1.65.0-mingw53\lib/libboost_system.a (error_code.o): duplicate section `.rdata$_ZTIN5boost6system14error_category12std_categoryE [__ZTIN5boost6system14error_category12std_categoryE] ' has different size X> C:\boost-1.65.0-mingw53\lib/libboost_system.a (error_code.o): duplicate section `.rdata$_ZTVN5boost6system14error_category12std_categoryE [__ZTVN5boost6system14error_category12std_categoryE] ' has different size X> X> if I correctly understand, here it is a question what in one file (error_code.o) two identical sections? It you can check up directly through objdump, readelf... But I think that means that at it other size, than in other file. And why the message forks - so  works. X> as generally the such can happen, and what with it to do?  templates can happen in any source code, and  by certain rules selects, what of results to use in a total assembled file. Result  - as for any function - a code segment mandatory, and probably segment of the data (rdata - the constant data). Judging by this message, - the size - is considered one of a quality monitoring that results of all oscillations should be identical. As it is the data, instead of the code, I am inclined to agree is there should be very much a hard error. Means, somewhere the same template  in modes when data sizes differ - for example, one in 32, another in 64 bits is compiled, or there were different modes of package/alignment for structures.

3

Re: duplicate section ' XXX ' has different size

Hello, netch80, you wrote: so it is the same file.

4

Re: duplicate section ' XXX ' has different size

5

Re: duplicate section ' XXX ' has different size

6

Re: duplicate section ' XXX ' has different size

Hello, niXman, you wrote: X> greetings! X> I try to collect some code and usage boost/Qt5, and received the such: X> C:\boost-1.65.0-mingw53\lib/libboost_system.a (error_code.o): duplicate section `.rdata$typeinfo for boost::system::error_category::std_category [_typeinfo for boost::system::error_category::std_category] ' has different size X> C:\boost-1.65.0-mingw53\lib/libboost_system.a (error_code.o): duplicate section `.rdata$vtable for boost::system::error_category::std_category [_vtable for boost::system::error_category::std_category] ' has different size X> if I correctly understand, here it is a question what in one file (error_code.o) two identical sections? No. Most likely with different keys of the compiler you collect. Or the brothel include X> as generally the such can happen to directories, and what with it to do? To collect correctly

7

Re: duplicate section ' XXX ' has different size

Hello, niXman, you wrote: X> I try to collect some code and usage boost/Qt5, and received the such: X> that with it to do? Google and  for example: https://stackoverflow.com/questions/141 … optimizati source codes gathered with different adjustments. Here  and . It could be a discrepancy in Debug/Release including

8

Re: duplicate section ' XXX ' has different size

Well ... While it was explained nothing...

9

Re: duplicate section ' XXX ' has different size

Hello, niXman, you wrote: X> well ... While it was explained nothing... Glance in  a file, find the declaration of the same class under different . Draw outputs here a comment therefrom://to maintain ABI compatibility between 03 and 11,//define a class with the same layout it is possible, just and you try  two different determinations for the same class a file: boost_1_65_0\boost\system\error_code.hpp a class: class std_category : BOOST_NO_CXX11_HDR_SYSTEM_ERROR

10

Re: duplicate section ' XXX ' has different size

Hello, uzhas, you wrote: U> a file: boost_1_65_0\boost\system\error_code.hpp U> a class: class std_category U> : BOOST_NO_CXX11_HDR_SYSTEM_ERROR all is true! Here just it turned out to collect. The project gathers with usage-std=c ++ 11, and boost gathered without this flag. All thanks, the question is closed.

11

Re: duplicate section ' XXX ' has different size

Hello, niXman, you wrote: X> the project gathers with usage-std=c ++ 11, and boost gathered without this flag. Simeon Semyonych!