buildworld failure on arm/armv6 using gcc

Peter Jeremy peter at rulingia.com
Sat Jul 6 01:34:04 UTC 2013


I'm getting the following error trying to build either r252698
(natively) or r252781 (cross) for my RPi with gcc (ie
WITHOUT_CLANG=yes).

/usr/obj/usr/src/usr.bin/svn/svn/../lib/libsvn_subr/libsvn_subr.a(named_atomic.o): In function `svn_named_atomic__cmpxchg':
named_atomic.c:(.text+0xf0): undefined reference to `__sync_val_compare_and_swap_8'
/usr/obj/usr/src/usr.bin/svn/svn/../lib/libsvn_subr/libsvn_subr.a(named_atomic.o): In function `svn_named_atomic__add':
named_atomic.c:(.text+0x174): undefined reference to `__sync_add_and_fetch_8'
/usr/obj/usr/src/usr.bin/svn/svn/../lib/libsvn_subr/libsvn_subr.a(named_atomic.o): In function `svn_named_atomic__write':
named_atomic.c:(.text+0x1c0): undefined reference to `__sync_lock_test_and_set_8'
/usr/obj/usr/src/usr.bin/svn/svn/../lib/libapr/libapr.a(builtins.o): In function `apr_atomic_dec32':
builtins.c:(.text+0x90): undefined reference to `__sync_sub_and_fetch_4'
*** Error code 1

Tinberbox build are succeeding but I gather they are using clang.
I've looked back through the archives and there were similar build
issues on both ARM & MIPS in mid April and MIPS in mid June but I
can't find what the fix was.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130706/bc78492f/attachment.sig>


More information about the freebsd-arm mailing list