Dear Sir,
I am a PhD scholar currently working in the field of metaheuristic techniques for solving NP-hard problems. I had previously installed irace package on my system; however, due to a crash on my Linux setup, the installation files were lost. I recently reinstalled irace on my system running the following version (Latest version):
OS: Ubuntu 24.04.1 LTS (Noble Numbat)
Version ID: 24.04
R Version: 4.3.3 (2024-02-29)
Codename: "Angel Food Cake"
Platform: x86_64-pc-linux-gnu (64-bit)
irace Version: 4.1
I have followed the steps for setting up the ACOTSP example, including extracting and compiling the required files. Additionally, I referred to Appendix B of the user guide for troubleshooting, but unfortunately, the problem remains unresolved for executing your ACOTSP example.
For your reference, I have attached a file detailing the steps I followed and the corresponding error logs.
I kindly request you to help me in this direction.
Best regards,
Jyoti Nainani
PhD Research Scholar
./ACOTSP-1.03/acotsp: not found or not executable (pwd: /home/jyoti/tuning/acotsp-arena)
Dear Sir,
I attempted to compile ACOTSP-1.03 using make, but encountered multiple definition errors during linking. The errors indicate that the variables n and distance are defined in multiple object files (acotsp.o, TSP.o, utilities.o, ants.o, InOut.o, ls.o).
jyoti@jyoti:~/tuning/ACOTSP-1.03$ cd
jyoti@jyoti:~$ cd ./tuning/ACOTSP-1.03
jyoti@jyoti:~/tuning/ACOTSP-1.03$ make
cc acotsp.o TSP.o utilities.o ants.o InOut.o dos_timer.o ls.o parse.o -lm -o acotsp
/usr/bin/ld: TSP.o:(.bss+0x238): multiple definition of `n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: TSP.o:(.bss+0x230): multiple definition of `distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: utilities.o:(.bss+0x0): multiple definition of `distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: utilities.o:(.bss+0x8): multiple definition of `n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: ants.o:(.bss+0xc8): multiple definition of `n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: ants.o:(.bss+0xc0): multiple definition of `distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: InOut.o:(.bss+0x200): multiple definition of `n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: InOut.o:(.bss+0x1f8): multiple definition of `distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: ls.o:(.bss+0x18): multiple definition of `n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: ls.o:(.bss+0x10): multiple definition of `distance'; acotsp.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [<builtin>: acotsp] Error 1
since make fails, the acotsp executable is not generated, preventing me from running it.
Looking forward to your suggestions.