zyli Posted July 27, 2023 Report Share Posted July 27, 2023 Compilation error, Debian Bookworm, SVN rev. 27784, 27785. After the command: 'make', an error occurs: ==== Building pyrogenesis (release) ==== Creating obj/pyrogenesis_Release main.cpp Linking pyrogenesis /usr/bin/ld: ../../../binaries/system/libnetwork.a(FSM.o): in function `std::enable_if<std::__is_bitwise_relocatable<CFsmTransition*, void>::value, CFsmTransition**>::type std::__relocate_a_1<CFsmTransition*, CFsmTransition*>(CFsmTransition**, CFsmTransition**, CFsmTransition**, std::allocator<CFsmTransition*>&)': [...I shortened...] /usr/bin/ld: ../../../binaries/system/libnetwork.a(FSM.o): in function `CFsm::IsValidEvent(unsigned int) const': /home/domowy/svn/0ad/build/workspaces/gcc/../../../source/network/FSM.cpp:247: multiple definition of `CFsm::IsValidEvent(unsigned int) const'; ../../../binaries/system/libnetwork.a(fsm.o):/home/domowy/svn/0ad/build/workspaces/gcc/../../../source/network/fsm.cpp:465: first defined here /usr/bin/ld: ../../../binaries/system/libnetwork.a(FSM.o): in function `CFsm::AddEvent(unsigned int)': /home/domowy/svn/0ad/build/workspaces/gcc/../../../source/network/FSM.cpp:104: multiple definition of `CFsm::AddEvent(unsigned int)'; ../../../binaries/system/libnetwork.a(fsm.o):/home/domowy/svn/0ad/build/workspaces/gcc/../../../source/network/fsm.cpp:247: first defined here collect2: error: ld returned 1 exit status make[1]: *** [pyrogenesis.make:81: ../../../binaries/system/pyrogenesis] Błąd 1 make: *** [Makefile:73: pyrogenesis] Błąd 2 In Polish, 'Błąd' is 'Error'. No. 81 line file: 'svn/0ad/build/workspaces/gcc/pyrogenesis.make': 80 @echo Linking pyrogenesis 81 $(SILENT) $(LINKCMD) 82 $(POSTBUILDCMDS) No. 73 line file: 'svn/0ad/build/workspaces/gcc/Makefile': 71 ifneq (,$(pyrogenesis_config)) 72 @echo "==== Building pyrogenesis ($(pyrogenesis_config)) ====" 73 @${MAKE} --no-print-directory -C . -f pyrogenesis.make config=$(pyrogenesis_config) 74 endif Unfortunately, I do not know how to correct it. Rev. 27779 (and earlier) compiled correctly. Regards. Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted July 27, 2023 Report Share Posted July 27, 2023 Could you run make clean and compile again to make sure that there's no outdated files? (It'll take some time to recompile the game) Quote Link to comment Share on other sites More sharing options...
zyli Posted July 27, 2023 Author Report Share Posted July 27, 2023 @vladislavbelov Thank you! A simple command solved the issue: make clean make -j20 Everything works as it should. binaries/system/test Running cxxtest tests (400 tests)......[...I cut off...]......OK! I wish I had come up with it myself. Sorry for the confusion. Quote Link to comment Share on other sites More sharing options...
zyli Posted July 27, 2023 Author Report Share Posted July 27, 2023 How do I change the title by adding "Solved"? Quote Link to comment Share on other sites More sharing options...
Gurken Khan Posted July 27, 2023 Report Share Posted July 27, 2023 Just click on it then you can edit it. Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted July 27, 2023 Report Share Posted July 27, 2023 6 hours ago, zyli said: I wish I had come up with it myself. Sorry for the confusion. No problem 6 hours ago, zyli said: Thank you! You're welcome! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.