Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29347 - [gcc 4.7] undefined references, and "defined in discarded section `.text. (...)"

Attached to Project: Arch Linux
Opened by Łukasz Gromanowski (lgromanowski) - Monday, 09 April 2012, 07:46 GMT
Last edited by Allan McRae (Allan) - Monday, 09 April 2012, 09:06 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hi,
since update to gcc 4.7 I can't link some software i.e. MyGUI (even with ABS makepkg) and OpenMW:


(mygui)

Linking CXX executable ../../bin/Demo_Colour
CMakeFiles/Demo_Colour.dir/ColourPanel.cpp.o: In function `MyGUI::Singleton<MyGUI::LayoutManager>::getInstance()':
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_13LayoutManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_13LayoutManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::LayoutManager>::msInstance'
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_13LayoutManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_13LayoutManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::LayoutManager>::mClassTypeName'
CMakeFiles/Demo_Colour.dir/ColourPanel.cpp.o: In function `MyGUI::Singleton<MyGUI::SkinManager>::getInstance()':
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_11SkinManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_11SkinManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::SkinManager>::msInstance'
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_11SkinManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_11SkinManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::SkinManager>::mClassTypeName'
CMakeFiles/Demo_Colour.dir/ColourPanel.cpp.o: In function `MyGUI::Singleton<MyGUI::Gui>::getInstance()':
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_3GuiEE11getInstanceEv[_ZN5MyGUI9SingletonINS_3GuiEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::Gui>::msInstance'
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_3GuiEE11getInstanceEv[_ZN5MyGUI9SingletonINS_3GuiEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::Gui>::mClassTypeName'
CMakeFiles/Demo_Colour.dir/ColourPanel.cpp.o: In function `MyGUI::Singleton<MyGUI::RenderManager>::getInstance()':
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_13RenderManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_13RenderManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::msInstance'
ColourPanel.cpp:(.text._ZN5MyGUI9SingletonINS_13RenderManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_13RenderManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::mClassTypeName'
CMakeFiles/Demo_Colour.dir/DemoKeeper.cpp.o: In function `MyGUI::Singleton<MyGUI::ResourceManager>::getInstance()':
DemoKeeper.cpp:(.text._ZN5MyGUI9SingletonINS_15ResourceManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_15ResourceManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::ResourceManager>::msInstance'
DemoKeeper.cpp:(.text._ZN5MyGUI9SingletonINS_15ResourceManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_15ResourceManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::ResourceManager>::mClassTypeName'
../../lib/libCommon.a(BaseManager.cpp.o): In function `MyGUI::Singleton<MyGUI::LayerManager>::getInstance()':
BaseManager.cpp:(.text._ZN5MyGUI9SingletonINS_12LayerManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_12LayerManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::LayerManager>::msInstance'
BaseManager.cpp:(.text._ZN5MyGUI9SingletonINS_12LayerManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_12LayerManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::LayerManager>::mClassTypeName'
../../lib/libCommon.a(BaseManager.cpp.o): In function `MyGUI::Singleton<MyGUI::InputManager>::getInstance()':
BaseManager.cpp:(.text._ZN5MyGUI9SingletonINS_12InputManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_12InputManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::InputManager>::msInstance'
BaseManager.cpp:(.text._ZN5MyGUI9SingletonINS_12InputManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_12InputManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::InputManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): In function `MyGUI::OgreDataManager::initialise(std::string const&)':
MyGUI_OgreDataManager.cpp:(.text+0x1db): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): In function `MyGUI::OgreDataManager::shutdown()':
MyGUI_OgreDataManager.cpp:(.text+0x71a): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): In function `MyGUI::Singleton<MyGUI::DataManager>::~Singleton()':
MyGUI_OgreDataManager.cpp:(.text._ZN5MyGUI9SingletonINS_11DataManagerEED2Ev[_ZN5MyGUI9SingletonINS_11DataManagerEED5Ev]+0x11): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::msInstance'
MyGUI_OgreDataManager.cpp:(.text._ZN5MyGUI9SingletonINS_11DataManagerEED2Ev[_ZN5MyGUI9SingletonINS_11DataManagerEED5Ev]+0x3f): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): In function `MyGUI::Singleton<MyGUI::DataManager>::Singleton()':
MyGUI_OgreDataManager.cpp:(.text._ZN5MyGUI9SingletonINS_11DataManagerEEC2Ev[_ZN5MyGUI9SingletonINS_11DataManagerEEC5Ev]+0x11): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::msInstance'
MyGUI_OgreDataManager.cpp:(.text._ZN5MyGUI9SingletonINS_11DataManagerEEC2Ev[_ZN5MyGUI9SingletonINS_11DataManagerEEC5Ev]+0x3b): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::OgreRenderManager::getInstancePtr()':
MyGUI_OgreRenderManager.cpp:(.text+0x453): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::msInstance'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::OgreRenderManager::renderQueueStarted(unsigned char, std::string const&, bool&)':
MyGUI_OgreRenderManager.cpp:(.text+0x813): undefined reference to `MyGUI::Singleton<MyGUI::Gui>::msInstance'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::OgreRenderManager::initialise(Ogre::RenderWindow*, Ogre::SceneManager*)':
MyGUI_OgreRenderManager.cpp:(.text+0xa1e): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::OgreRenderManager::shutdown()':
MyGUI_OgreRenderManager.cpp:(.text+0x13ce): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::OgreRenderManager::createTexture(std::string const&)':
MyGUI_OgreRenderManager.cpp:(.text+0x1e4f): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::msInstance'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::Singleton<MyGUI::RenderManager>::~Singleton()':
MyGUI_OgreRenderManager.cpp:(.text._ZN5MyGUI9SingletonINS_13RenderManagerEED2Ev[_ZN5MyGUI9SingletonINS_13RenderManagerEED5Ev]+0x11): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::msInstance'
MyGUI_OgreRenderManager.cpp:(.text._ZN5MyGUI9SingletonINS_13RenderManagerEED2Ev[_ZN5MyGUI9SingletonINS_13RenderManagerEED5Ev]+0x3f): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.cpp.o): In function `MyGUI::Singleton<MyGUI::RenderManager>::Singleton()':
MyGUI_OgreRenderManager.cpp:(.text._ZN5MyGUI9SingletonINS_13RenderManagerEEC2Ev[_ZN5MyGUI9SingletonINS_13RenderManagerEEC5Ev]+0x11): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::msInstance'
MyGUI_OgreRenderManager.cpp:(.text._ZN5MyGUI9SingletonINS_13RenderManagerEEC2Ev[_ZN5MyGUI9SingletonINS_13RenderManagerEEC5Ev]+0x3b): undefined reference to `MyGUI::Singleton<MyGUI::RenderManager>::mClassTypeName'
../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreTexture.cpp.o): In function `MyGUI::Singleton<MyGUI::DataManager>::getInstance()':
MyGUI_OgreTexture.cpp:(.text._ZN5MyGUI9SingletonINS_11DataManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_11DataManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::msInstance'
MyGUI_OgreTexture.cpp:(.text._ZN5MyGUI9SingletonINS_11DataManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_11DataManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::DataManager>::mClassTypeName'
../../lib/libCommon.a(PointerManager.cpp.o): In function `MyGUI::Singleton<MyGUI::PointerManager>::getInstance()':
PointerManager.cpp:(.text._ZN5MyGUI9SingletonINS_14PointerManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_14PointerManagerEE11getInstanceEv]+0x3): undefined reference to `MyGUI::Singleton<MyGUI::PointerManager>::msInstance'
PointerManager.cpp:(.text._ZN5MyGUI9SingletonINS_14PointerManagerEE11getInstanceEv[_ZN5MyGUI9SingletonINS_14PointerManagerEE11getInstanceEv]+0x2a): undefined reference to `MyGUI::Singleton<MyGUI::PointerManager>::mClassTypeName'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/Demo_Colour] Błąd 1
make[1]: *** [Demos/Demo_Colour/CMakeFiles/Demo_Colour.dir/all] Błąd 2
make: *** [all] Błąd 2


(openmw)

Linking CXX executable ../../openmw
`.text._ZN5boost16exception_detail19error_info_injectorINS_10lock_errorEED2Ev' referenced in section `.text._ZN5boost16exception_detail19error_info_injectorINS_10lock_errorEED1Ev[_ZN5boost16exception_detail19error_info_injectorINS_10lock_errorEED1Ev]' of /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): defined in discarded section `.text._ZN5boost16exception_detail19error_info_injectorINS_10lock_errorEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_10lock_errorEED5Ev]' of /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o)
`.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED2Ev' referenced in section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED1Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED1Ev]' of /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): defined in discarded section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED2Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED5Ev]' of /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o)
`.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED2Ev' referenced in section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED1Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED1Ev]' of /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o): defined in discarded section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED2Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10lock_errorEEEED5Ev]' of /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.cpp.o)
CMakeFiles/openmw.dir/mwrender/terrain.cpp.o: In function `Ogre::Singleton<Ogre::TerrainGlobalOptions>::~Singleton()':
terrain.cpp:(.text._ZN4Ogre9SingletonINS_20TerrainGlobalOptionsEED2Ev[_ZN4Ogre9SingletonINS_20TerrainGlobalOptionsEED5Ev]+0xf): undefined reference to `Ogre::Singleton<Ogre::TerrainGlobalOptions>::msSingleton'
terrain.cpp:(.text._ZN4Ogre9SingletonINS_20TerrainGlobalOptionsEED2Ev[_ZN4Ogre9SingletonINS_20TerrainGlobalOptionsEED5Ev]+0x34): undefined reference to `Ogre::Singleton<Ogre::TerrainGlobalOptions>::msSingleton'
collect2: error: ld returned 1 exit status
make[2]: *** [openmw] Błąd 1
make[1]: *** [apps/openmw/CMakeFiles/openmw.dir/all] Błąd 2
make: *** [all] Błąd 2


Steps to reproduce:

Try to compile MyGUI with ABS.

This task depends upon

Closed by  Allan McRae (Allan)
Monday, 09 April 2012, 09:06 GMT
Reason for closing:  Duplicate

Loading...