Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue on 20.04 #5

Open
xepost opened this issue Apr 7, 2023 · 2 comments
Open

Compilation issue on 20.04 #5

xepost opened this issue Apr 7, 2023 · 2 comments

Comments

@xepost
Copy link

xepost commented Apr 7, 2023

Hi ,

I go ahead with the recommendation of "-std=c++14" change in the cmakes, and installed dw. All is compiling other than lkh_tsp_solver and lkh_mtsp_solver. I am getting the following error.

usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xa0): multiple definition of PatchingCExtended; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xa0): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xa4): multiple definition of PatchingARestricted; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xa4): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xa8): multiple definition of PatchingAExtended; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xa8): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xac): multiple definition of MoorePartitioning; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xac): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xb0): multiple definition of KMeansPartitioning; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xb0): first defined here

I tried to compile the LKH-3.0.6 and I get the same error. Also checked LKH-3.0.5, which also does not compile on Ubuntu20.04, LKH-3.0.7 and LKH-3.0.8 compiles but there are some changes on the APIs, so not sure how to add that part.

I did take a look at FUEL repo, but did not see much information other than the ones Known Issues part. Any recommendations?

@xepost
Copy link
Author

xepost commented Apr 13, 2023

I solved it by downgrading to gcc/g++9, I was using gcc/g++ 11. Please feel free to close.

@Badrivishal
Copy link

I tried the same but the simulation is crashing after a while
How did you overcome that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants