Displaying 4 results from an estimated 4 matches for "__sync_add_and_fetch_4".
Did you mean:
__sync_add_and_fetch
2009 Mar 18
0
[LLVMdev] Status of LLVM's atomic intrinsics
...least not on x86). A mutex-based programs works fine (but is
> substantially slower than gcc) but my wait-free alternative fails with:
>
> $ llvm-g++ -O3 -lpthread waitfree.c -o waitfree
> /tmp/cc6t7jaO.o: In function `inc_count(void*)':
> (.text+0x2ee): undefined reference to `__sync_add_and_fetch_4'
> collect2: ld returned 1 exit status
This probably means that you're target triple starts with i386, where
__sync instructions aren't supported, possibly reconfiguring llvm-g++
explicitly with i686 (if that's what you have) will fix your problem.
This should prevent the bui...
2009 Mar 18
3
[LLVMdev] Status of LLVM's atomic intrinsics
...work as I had hoped
(at least not on x86). A mutex-based programs works fine (but is
substantially slower than gcc) but my wait-free alternative fails with:
$ llvm-g++ -O3 -lpthread waitfree.c -o waitfree
/tmp/cc6t7jaO.o: In function `inc_count(void*)':
(.text+0x2ee): undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
The source is:
#include <pthread.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#define NUM_THREADS 9
#define TCOUNT (1 << 23)
#define COUNT_LIMIT (1 << 25)
volatile int count = 0;
pthread_mutex_t count...
2014 Dec 02
1
Building QT on CentOS 5
I am building QT 4.8.6 on CentOS 5 and it is failing on building
the webkit module with __sync_add_and_fetch_4 not being defined.
My build is for Embedded Linux, which allows me to use the framebuffer.
Posts report this error when trying to cross-compile for ARM,
but I am building for X86. Several posts also indicate that this
is due to the old GCC used by CentOS 5.
Does anyone have any suggestions?
Th...
2009 Feb 05
0
[LLVMdev] Linking with OpenMP support
...unction `gomp_barrier_wait_end':
(.text+0x2e): undefined reference to `__sync_lock_test_and_set_4'
/afs/
cs.wisc.edu/p/vertical/tools/llvm-gcc-4.2/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../../../libgomp.a(bar.o):
In function `gomp_barrier_wait_end':
(.text+0x6c): undefined reference to `__sync_add_and_fetch_4'
/afs/
cs.wisc.edu/p/vertical/tools/llvm-gcc-4.2/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../../../libgomp.a(bar.o):
In function `gomp_barrier_wait_end':
(.text+0x83): undefined reference to `__sync_lock_test_and_set_4'
/afs/
cs.wisc.edu/p/vertical/tools/llvm-gcc-4.2/bin/../lib/gcc/i686-p...