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

Compiling on GCC10 #44

Closed
vd-rd opened this issue Jul 24, 2020 · 3 comments
Closed

Compiling on GCC10 #44

vd-rd opened this issue Jul 24, 2020 · 3 comments

Comments

@vd-rd
Copy link
Contributor

vd-rd commented Jul 24, 2020

Hello,
The compilation fails on a GCC10 system.

/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

@javix64
Copy link

javix64 commented Aug 12, 2020

yep it's working right. i was stuck in this step like 1hour. thanks so much! <3

@aczid
Copy link
Owner

aczid commented Oct 8, 2021

Thank you for the fix, sorry it took me so long to merge it.

@aczid aczid closed this as completed Oct 8, 2021
@vd-rd
Copy link
Contributor Author

vd-rd commented Oct 8, 2021

No worries, thank you for your amazing work 👍🏻

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

3 participants