Jump to content

[Solved] Compilation error, Debian Bookworm, SVN rev. 27784, 27785.


zyli
 Share

Recommended Posts

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.

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

  • zyli changed the title to [Solved] Compilation error, Debian Bookworm, SVN rev. 27784, 27785.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...