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.

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