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 . === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"