Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
undefined reference to `__sync_val_compare_and_swap_8'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
thekingofravens
n00b
n00b


Joined: 10 Dec 2019
Posts: 7
Location: United States

PostPosted: Tue Jun 23, 2020 5:25 pm    Post subject: undefined reference to `__sync_val_compare_and_swap_8' Reply with quote

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
View user's profile Send private message
GDH-gentoo
Guru
Guru


Joined: 20 Jul 2019
Posts: 460
Location: South America

PostPosted: Wed Jun 24, 2020 1:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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