Date: Sat, 28 Dec 2019 13:59:17 -0800 From: Mark Millard <marklmi@yahoo.com> To: FreeBSD ports <freebsd-ports@freebsd.org> Subject: 32-bit powerpc graphics/mesa-libs build failed: u_atomic.c:38:1: error: cannot redeclare builtin function '__sync_add_and_fetch_8' (and others) Message-ID: <0EB31A0C-6D93-40CD-90A3-A90540D96F38@yahoo.com> References: <0EB31A0C-6D93-40CD-90A3-A90540D96F38.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I attempted to build some ports in a 32-bit powerpc context (via poudriere) and graphics/mesa-libs ended up being included. The mesa-libs build failed with: u_atomic.c:38:1: error: cannot redeclare builtin function = '__sync_add_and_fetch_8' __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val) ^ u_atomic.c:38:1: note: '__sync_add_and_fetch_8' is a builtin with type = 'long long (volatile long long *, long long, ...)' u_atomic.c:38:1: error: definition of builtin function = '__sync_add_and_fetch_8' __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val) ^ u_atomic.c:51:1: error: cannot redeclare builtin function = '__sync_sub_and_fetch_8' __sync_sub_and_fetch_8(uint64_t *ptr, uint64_t val) ^ u_atomic.c:51:1: note: '__sync_sub_and_fetch_8' is a builtin with type = 'long long (volatile long long *, long long, ...)' u_atomic.c:51:1: error: definition of builtin function = '__sync_sub_and_fetch_8' __sync_sub_and_fetch_8(uint64_t *ptr, uint64_t val) ^ u_atomic.c:64:1: error: cannot redeclare builtin function = '__sync_val_compare_and_swap_8' __sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t = newval) ^ u_atomic.c:64:1: note: '__sync_val_compare_and_swap_8' is a builtin with = type 'long long (volatile long long *, long long, long long, ...)' u_atomic.c:64:1: error: definition of builtin function = '__sync_val_compare_and_swap_8' __sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t = newval) ^ 6 errors generated. gmake[3]: *** [Makefile:1305: libmesautil_la-u_atomic.lo] Error 1 . . . gmake[3]: Leaving directory = '/wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-18.3.2/src/util' gmake[2]: *** [Makefile:1402: all-recursive] Error 1 gmake[2]: Leaving directory = '/wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-18.3.2/src/util' gmake[1]: *** [Makefile:996: all] Error 2 The is a clang-based FreeBSD context. The ports are at -r520539 . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0EB31A0C-6D93-40CD-90A3-A90540D96F38>