compile error

daim

New member
Messages
130
Points
0
Hi,

I tried to compile but i got this error:

../common/obj_all/common.a(mempool.o): In function `InterlockedIncrement64':
../common/atomic.h:100: undefined reference to `__sync_add_and_fetch_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedExchange64':
../common/atomic.h:130: undefined reference to `__sync_lock_test_and_set_8'
../common/atomic.h:130: undefined reference to `__sync_lock_test_and_set_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedExchange64':
../common/spinlock.h:89: undefined reference to `__sync_lock_test_and_set_8'
../common/spinlock.h:89: undefined reference to `__sync_lock_test_and_set_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedExchangeAdd64':
../common/atomic.h:90: undefined reference to `__sync_fetch_and_add_8'
../common/atomic.h:100: undefined reference to `__sync_fetch_and_add_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedIncrement64':
../common/atomic.h:100: undefined reference to `__sync_add_and_fetch_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedExchangeAdd64':
../common/atomic.h:90: undefined reference to `__sync_fetch_and_add_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedDecrement64':
../common/atomic.h:110: undefined reference to `__sync_sub_and_fetch_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedExchange64':
../common/atomic.h:130: undefined reference to `__sync_lock_test_and_set_8'
../common/obj_all/common.a(mempool.o): In function `InterlockedIncrement64':
../common/atomic.h:100: undefined reference to `__sync_add_and_fetch_8'
 

box running with Linux debian 2.6.18-6-686 #1 SMP Thu May 8 07:34:27 UTC 2008 i686 GNU/Linux

thanks

 
use your apt-get/aptitude/yum equivalent to update your gcc, most likely outdated.

 
Last edited by a moderator:
thats mean look like i have to upgrade my entire debian..
default_sad.png


 
Back
Top