Jump to content

Linking error current a24 dev svn tree r23060


Recommended Posts

Ubuntu 19.10. All went well till linking.

a23b r21947 compiled well.

 

svn log -l1
------------------------------------------------------------------------
r23060 | Alexandermb | 2019-10-05 17:25:07 +0200 (Sa, 05. Okt 2019) | 1 Zeile

Fix "Didn't find any objects in the scene" in elephant_asian_armored_03.dae
------------------------------------------------------------------------


 

gcc --version
gcc (Ubuntu 9.2.1-8ubuntu1) 9.2.1 20190909
Copyright (C) 2019 Free Software Foundation, Inc.


./update-workspaces.sh -j5

[went well]

 

0ad/build/workspaces/gcc$ make -j4
==== Building mocks_real (release) ====
==== Building network (release) ====
==== Building tinygettext (release) ====
==== Building lobby (release) ====
==== Building glooxwrapper (release) ====
==== Building simulation2 (release) ====
==== Building scriptinterface (release) ====
==== Building engine (release) ====
==== Building graphics (release) ====
==== Building atlas (release) ====
==== Building gui (release) ====
==== Building lowlevel (release) ====
==== Building mongoose (release) ====
==== Building Collada (release) ====
==== Building pyrogenesis (release) ====
Linking pyrogenesis
/usr/bin/ld: ../../../binaries/system/libgui.a(CGUIString.o): in function `std::vector<GUIRenderer::SDrawCall, std::allocator<GUIRenderer::SDrawCall> >::~vector()':
/.au0/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/SettingTypes/CGUIString.cpp:43: multiple definition of `CGUIString::SFeedback::Reset()'; ../../../binaries
/system/libgui.a(GUItext.o):/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUItext.cpp:41: first defined here
/usr/bin/ld: ../../../binaries/system/libgui.a(CGUIString.o): in function `CGUIString::TextChunk::Tag::SetTagType(CStrW const&)':
/.au0/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/SettingTypes/CGUIString.cpp:238: multiple definition of `CGUIString::TextChunk::Tag::SetTagType(CStrW cons
t&)'; ../../../binaries/system/libgui.a(GUItext.o):/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUItext.cpp:236: first defined here
/usr/bin/ld: ../../../binaries/system/libgui.a(CGUIString.o): in function `CGUIString::TextChunk::Tag::GetTagType(CStrW const&) const':
/.au0/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/SettingTypes/CGUIString.cpp:248: multiple definition of `CGUIString::TextChunk::Tag::GetTagType(CStrW cons
t&) const'; ../../../binaries/system/libgui.a(GUItext.o):/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUItext.cpp:246: first defined here
/usr/bin/ld: ../../../binaries/system/libgui.a(CGUIString.o): in function `CGUIString::SetValue(CStrW const&)':
/.au0/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/SettingTypes/CGUIString.cpp:264: multiple definition of `CGUIString::SetValue(CStrW const&)'; ../../../bin
aries/system/libgui.a(GUItext.o):/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUItext.cpp:262: first defined here
/usr/bin/ld: ../../../binaries/system/libgui.a(GUItext.o): in function `CGUIString::GenerateTextCall(CGUI const*, CGUIString::SFeedback&, CStrIntern, int const&, int cons
t&, bool, IGUIObject const*) const':
/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUItext.cpp:158: undefined reference to `CGUISpriteInstance::operator=(CStr8 const&)'
/usr/bin/ld: ../../../binaries/system/libgui.a(GUItext.o): in function `SGUIText::SSpriteCall::SSpriteCall(SGUIText::SSpriteCall const&)':
/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUItext.h:60: undefined reference to `CGUISpriteInstance::CGUISpriteInstance(CGUISpriteInstance
const&)'
/usr/bin/ld: ../../../binaries/system/libgui.a(GUIutil.o): in function `GUI<int>::ParseColor(CStrW const&, CColor&, int)':
/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUIutil.cpp:110: undefined reference to `CGUIManager::GetPreDefinedColor(CStr8 const&, CColor&)
const'
/usr/bin/ld: ../../../binaries/system/libgui.a(GUIutil.o): in function `bool __ParseString<CColor>(CStrW const&, CColor&)':
/media/fs/u1804/home/fs/Code/0ad/build/workspaces/gcc/../../../source/gui/GUIutil.cpp:122: undefined reference to `CGUIManager::GetPreDefinedColor(CStr8 const&, CColor&)
const'
collect2: error: ld returned 1 exit status
make[1]: *** [pyrogenesis.make:81: ../../../binaries/system/pyrogenesis] Fehler 1
make: *** [Makefile:69: pyrogenesis] Fehler 2

 

last change of the file /ps/trunk/source/gui/CGUIString.cpp was here:

r23028 | elexis | 2019-10-02 11:44:00 +0200 (Mi, 02. Okt 2019) | 7 Zeilen

[...]
D /ps/trunk/source/gui/CGUIString.cpp
[...]


Greets F.

Edited by ffffffff
Link to comment
Share on other sites

jea i did clean-workspace.sh after that failure and recompiled again. but i guess it directs in that directions. maybe my compile cacher seems corrupted somehow. i will recompile just thought its something wrong in code. ok i check. (btw i use ccache for compile caching). Greets F.

 

Ah that can help https://ccache.dev/manual/latest.html#_corrupt_object_files.

I try delete the file and recompile.

Edited by ffffffff
Link to comment
Share on other sites

37 minutes ago, ffffffff said:

jea i did clean-workspace.sh after that failure and recompiled again. but i guess it directs in that directions. maybe my compile cacher seems corrupted somehow. i will recompile just thought its something wrong in code. ok i check. (btw i use ccache for compile caching). Greets F.

 

Ah that can help https://ccache.dev/manual/latest.html#_corrupt_object_files.

I try delete the file and recompile.

Clean doesn't apparently have all the needed commands. You need to run make clean

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...