Regarding queries on irace tool

35 views
Skip to first unread message

Jyoti Nainani Ph.D Student

unread,
Jan 27, 2025, 8:59:10 AMJan 27
to irace-...@googlegroups.com

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):

System Details

  • OS: Ubuntu 24.04.1 LTS (Noble Numbat)

  • Version ID: 24.04

Installed R Version

  • R Version: 4.3.3 (2024-02-29)

  • Codename: "Angel Food Cake"

  • Platform: x86_64-pc-linux-gnu (64-bit)

Installed irace Version

  • 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


document.odt

Manuel López-Ibáñez

unread,
Jan 27, 2025, 10:59:44 AMJan 27
to The irace package: Iterated Racing for Automatic Configuration
Hi Jyoty,

The error message says:

./ACOTSP-1.03/acotsp: not found or not executable (pwd: /home/jyoti/tuning/acotsp-arena)


which means that the 'acotsp' executable is not available. You need to go into ACOTSP-1.03 and execute:

make

to compile the ACOTSP code. Please make sure that there are no errors when doing `make` and that it creates a file `acotsp`.

Cheers,

Manuel.

Jyoti Nainani Ph.D Student

unread,
Feb 4, 2025, 8:25:30 AMFeb 4
to The irace package: Iterated Racing for Automatic Configuration

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.

Manuel López-Ibáñez

unread,
Feb 4, 2025, 8:29:22 AMFeb 4
to The irace package: Iterated Racing for Automatic Configuration
Hi Jyoti,

Could you open an issue here: https://github.com/MLopez-Ibanez/irace/issues

and copy the information that you gave here?

In the meantime, you can find more examples here: https://lopez-ibanez.eu/2024-redheur/

Best wishes,

Manuel.
Reply all
Reply to author
Forward
0 new messages