/usr/bin/ld: /tmp/ccqmPvUe.o:(.bss+0x20): multiple definition of `bs_ones'; /tmp/ccK3OYTd.o:(.bss+0x4b160): first defined here
/usr/bin/ld: /tmp/ccqmPvUe.o:(.bss+0x0): multiple definition of `bs_zeroes'; /tmp/ccK3OYTd.o:(.bss+0x4b140): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x0): multiple definition of `bitsliced_rollback_byte'; /tmp/ccK3OYTd.o:(.bss+0x20): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b110): multiple definition of `keys_found'; /tmp/ccK3OYTd.o:(.bss+0x4b130): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b140): multiple definition of `bs_ones'; /tmp/ccK3OYTd.o:(.bss+0x4b160): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b108): multiple definition of `total_states_tested'; /tmp/ccK3OYTd.o:(.bss+0x4b128): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x25900): multiple definition of `bitsliced_encrypted_nonces'; /tmp/ccK3OYTd.o:(.bss+0x25920): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b120): multiple definition of `bs_zeroes'; /tmp/ccK3OYTd.o:(.bss+0x4b140): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x100): multiple definition of `bitsliced_encrypted_parity_bits'; /tmp/ccK3OYTd.o:(.bss+0x120): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b100): multiple definition of `total_states'; /tmp/ccK3OYTd.o:(.bss+0x4b120): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:20: solve_bs] Error 1
The fix (not sure if it's correct) is to add a -Wl,--allow-multiple-definition linker option
Hello, The compilation fails on a GCC10 system.
The fix (not sure if it's correct) is to add a -Wl,--allow-multiple-definition linker option