Re: git: ab52d5af3b6f - main - dns/doh-proxy: fix build on powerpc
- In reply to: Gerald Pfeifer : "Re: git: ab52d5af3b6f - main - dns/doh-proxy: fix build on powerpc"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Aug 2024 22:11:13 UTC
On 24-08-14 23:14:15, Gerald Pfeifer wrote: >On Sun, 4 Aug 2024, Piotr Kubaj wrote: >> URL: https://cgit.FreeBSD.org/ports/commit/?id=ab52d5af3b6fa295d2b9fb45d89e1cd23b15330f >: >> dns/doh-proxy: fix build on powerpc >> >> = note: ld: error: undefined symbol: __atomic_load_8 >> >>> referenced by static.c >> >>> 98cfcaec7182b1d8-static.o:(mi_arena_schedule_purge) in archive /wrkdirs/usr/ports/dns/doh-proxy/work/rustc4xSzx7/liblibmimalloc_sys-4a9c093f9f8149a2.rlib >> >>> referenced by static.c >> >>> 98cfcaec7182b1d8-static.o:(mi_arenas_try_purge) in archive /wrkdirs/usr/ports/dns/doh-proxy/work/rustc4xSzx7/liblibmimalloc_sys-4a9c093f9f8149a2.rlib >> >>> referenced by static.c >> >>> 98cfcaec7182b1d8-static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/dns/doh-proxy/work/rustc4xSzx7/liblibmimalloc_sys-4a9c093f9f8149a2.rlib >> >>> referenced 2 more times > >> +.include <bsd.port.options.mk> >> + >> +.if ${ARCH} == powerpc >> +LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT} >> +LDFLAGS+= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic >> +.endif > >This looks ... interesting: pulling in GCC for a single library which is >more an interal aspect on one platform only? > >Isn't rather something broken or missing on powerpc and this is more of a >crude hack leading to a Frankenbuild? > >Gerald It's not the first port that does it, lang/rust itself also needs it. The reason is missing 64-bit atomic functions in LLVM for powerpc.