Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » Mingw/GCC 4.4.0 linker warnings
Mingw/GCC 4.4.0 linker warnings [message #22458] Fri, 17 July 2009 11:16 Go to next message
ncompoop is currently offline  ncompoop
Messages: 4
Registered: July 2009
Junior Member
After I upgraded the compiler from 4.2.1 to 4.4.0, I started experience numerous linker warnings on the Windows platform only, Linux platform is fine. So it is probably a GCC and Windows thing, but I would like if anybody could offer me an explanation to why?

Here comes the warnings:

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/RichText/MINGW.Gui\RichText.a(TxtData.o): warnin
g: duplicate section `.rdata$_ZTSN3Upp14DeepCopyOptionINS_7RichTxt4ParaENS_10Empt yClassEEE[typeinfo name for Upp::DeepCopyOption<Upp::
RichTxt::Para, Upp::EmptyClass>]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/RichText/MINGW.Gui\RichText.a(TextData.o): warni
ng: duplicate section `.rdata$_ZTSN3Upp14DeepCopyOptionINS_7RichTxt4ParaENS_10Empt yClassEEE[typeinfo name for Upp::DeepCopyOption<Upp:
:RichTxt::Para, Upp::EmptyClass>]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/RichText/MINGW.Gui\RichText.a(TxtPaint.o): warni
ng: duplicate section `.rdata$_ZTSN3Upp14DeepCopyOptionINS_7RichTxt4ParaENS_10Empt yClassEEE[typeinfo name for Upp::DeepCopyOption<Upp:
:RichTxt::Para, Upp::EmptyClass>]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Convert.o): warning: dupli
cate section `.rdata$_ZTSN3Upp8MoveableINS_6StringENS_7AStringINS_7String 0EEEEE[typeinfo name for Upp::Moveable<Upp::String, Upp::AStr
ing<Upp::String0> >]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Convert.o): warning: dupli
cate section `.rdata$_ZTSN3Upp8MoveableINS_7String0ENS_10EmptyClassEEE[ty peinfo name for Upp::Moveable<Upp::String0, Upp::EmptyClass>]
' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Stream.o): warning: duplic
ate section `.rdata$_ZTVN3Upp7FileOutE[vtable for Upp::FileOut]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Stream.o): warning: duplic
ate section `.rdata$_ZTVN3Upp6FileInE[vtable for Upp::FileIn]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(t.o): warning: duplicate s
ection `.rdata$_ZTSN3Upp8MoveableINS_6StringENS_7AStringINS_7String 0EEEEE[typeinfo name for Upp::Moveable<Upp::String, Upp::AString<Up
p::String0> >]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(t.o): warning: duplicate s
ection `.rdata$_ZTSN3Upp8MoveableINS_7String0ENS_10EmptyClassEEE[ty peinfo name for Upp::Moveable<Upp::String0, Upp::EmptyClass>]' has
different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Value.o): warning: duplica
te section `.rdata$_ZTVN3Upp5Value4VoidE[vtable for Upp::Value::Void]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Gtypes.o): warning: duplic
ate section `.rdata$_ZTVN3Upp5Value4VoidE[vtable for Upp::Value::Void]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Gtypes.o): warning: duplic
ate section `.rdata$_ZTVN3Upp12RichValueRepINS_5Rect_IiEEEE[vtable for Upp::RichValueRep<Upp::Rect_<int> >]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Gtypes.o): warning: duplic
ate section `.rdata$_ZTSN3Upp12RichValueRepINS_5Rect_IiEEEE[typeinfo name for Upp::RichValueRep<Upp::Rect_<int> >]' has different size


c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Gtypes.o): warning: duplic
ate section `.rdata$_ZTSN3Upp11RawValueRepINS_5Rect_IiEEEE[typeinfo name for Upp::RawValueRep<Upp::Rect_<int> >]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Gtypes.o): warning: duplic
ate section `.rdata$_ZTVN3Upp11RawValueRepINS_5Rect_IiEEEE[vtable for Upp::RawValueRep<Upp::Rect_<int> >]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Color.o): warning: duplica
te section `.rdata$_ZTVN3Upp12RichValueRepINS_5ColorEEE[vtable for Upp::RichValueRep<Upp::Color>]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Color.o): warning: duplica
te section `.rdata$_ZTSN3Upp12RichValueRepINS_5ColorEEE[typeinfo name for Upp::RichValueRep<Upp::Color>]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Color.o): warning: duplica
te section `.rdata$_ZTVN3Upp11RawValueRepINS_5ColorEEE[vtable for Upp::RawValueRep<Upp::Color>]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Color.o): warning: duplica
te section `.rdata$_ZTVN3Upp5Value4VoidE[vtable for Upp::Value::Void]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Util.o): warning: duplicat
e section `.rdata$_ZTVN3Upp6FileInE[vtable for Upp::FileIn]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(Uuid.o): warning: duplicat
e section `.rdata$_ZTVN3Upp5Value4VoidE[vtable for Upp::Value::Void]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(parser.o): warning: duplic
ate section `.rdata$_ZTSN3Upp8MoveableINS_6StringENS_7AStringINS_7String 0EEEEE[typeinfo name for Upp::Moveable<Upp::String, Upp::AStri
ng<Upp::String0> >]' has different size

c:/p/mingw4/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32 /bin/ld.exe: C:/p/upp2009/out/Core/MINGW.Gui\Core.a(parser.o): warning: duplic
ate section `.rdata$_ZTSN3Upp8MoveableINS_7String0ENS_10EmptyClassEEE[ty peinfo name for Upp::Moveable<Upp::String0, Upp::EmptyClass>]'
has different size

Re: Mingw/GCC 4.4.0 linker warnings [message #22460 is a reply to message #22458] Fri, 17 July 2009 13:20 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3396
Registered: August 2008
Senior Veteran
Hello ncompoop

I have just downloaded MinGW gcc-4.4.0 from SourceForge and the last Upp available (upp-x11-src-1422.tar.gz), and I have compiled TheIde with MinGW-Speed.

I have not found any warning.

I enclose the compiler output.

Best regards
Koldo

PD. I have chosen TheIde as it is a big program. In fact TheIde compiled with MinGW is not usable.


Best regards
Iñaki
Re: Mingw/GCC 4.4.0 linker warnings [message #22470 is a reply to message #22458] Fri, 17 July 2009 20:14 Go to previous messageGo to next message
ncompoop is currently offline  ncompoop
Messages: 4
Registered: July 2009
Junior Member
That is because you used Optimize for speed. I used Optimal (sounded nice). After your message I have also tried Optimize for size and it also generates many warnings, so it is probably an alignment thing, where something i UPP relies on a 32bit boundry?


Re: Mingw/GCC 4.4.0 linker warnings [message #22471 is a reply to message #22470] Fri, 17 July 2009 20:22 Go to previous messageGo to next message
ncompoop is currently offline  ncompoop
Messages: 4
Registered: July 2009
Junior Member
Oh, yes I almost forgot.

You say that TheIde compiled with Mingw is not usable. Not true.
It works very well, thank you very much. Under compiler version 4.2 the -O3 option did not work correctly, and I must admit that I still use "-O2 -ffunction-sections" only for optimize for speed i my build method, and it generates a nice and very usable TheIde.



Re: Mingw/GCC 4.4.0 linker warnings [message #22472 is a reply to message #22471] Fri, 17 July 2009 21:54 Go to previous message
koldo is currently offline  koldo
Messages: 3396
Registered: August 2008
Senior Veteran
Hello ncompoop

Well, really TheIde compiled with MinGW works well with MinGW but not with MSC.

The reason is in post http://www.ultimatepp.org/forum/index.php?t=msg&goto=219 57&. You get an "Error invoking gdb !", when compiling with MSC.

To be concise, in Debug.cpp there is:

void Ide::BuildAndDebug(bool runto)
{
...
#ifdef COMPILER_MSC
	debugger = builder == "GCC" ? GdbCreate(host, target, runarg) : PdbCreate(host, target, runarg);
#else
	debugger = GdbCreate(host, target, runarg);
#endif


So it seems TheIde compiled with MinGW uses Gdb always although you have chosen to compile your project with MSC.

Best regards
Koldo


Best regards
Iñaki
Previous Topic: Problems with making in Ubuntu9.04
Next Topic: About the automated build svn U++ 1469 on WinXP of Chinese version
Goto Forum:
  


Current Time: Sun Oct 13 03:09:39 CEST 2024

Total time taken to generate the page: 0.02982 seconds