View previous topic :: View next topic |
Author |
Message |
thekingofravens n00b
Joined: 10 Dec 2019 Posts: 7 Location: United States
|
Posted: Tue Jun 23, 2020 5:25 pm Post subject: undefined reference to `__sync_val_compare_and_swap_8' |
|
|
I don't really know where to put this, it is powerpc related. I am trying to see if there is a way to get sysbench compiled on 32bit powerpc.
I managed to get concurrencykit compiled, and the configure gives an option to use system-ck and system-luajit.
However, when compiling, it throws an error due to undefined reference to `__sync_val_compare_and_swap_8'.
I read this is related to GCC atomic builtins, and that it inlines new code in place of that.
I was wondering if anyone knew if these worked on powerpc and I just have some broken USE flags, or if I am just out of luck? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1777 Location: South America
|
Posted: Wed Jun 24, 2020 1:21 am Post subject: |
|
|
For amd64:
Code: | $ gcc -E -dM - < /dev/null | grep COMPARE_AND_SWAP
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 |
You could try seeing what's the ouput for the PowerPC host. If __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 does not appear in the output, I'd strongly suspect you're out of luck.
In Gentoo's repository, both app-benchmarks/sysbench and dev-libs/concurrencykit are keyworded only for x86 and amd64... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|