Date: Thu, 15 Aug 2024 00:11:13 +0200 From: Piotr Kubaj <pkubaj@anongoth.pl> To: Gerald Pfeifer <gerald@pfeifer.com> Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: ab52d5af3b6f - main - dns/doh-proxy: fix build on powerpc Message-ID: <Zr0rgZtvfGPRXRjB@KGPE-D16> In-Reply-To: <580464cf-aaeb-d949-bddc-227bcaceb7d1@pfeifer.com> References: <202408041201.474C1AsI012533@gitrepo.freebsd.org> <580464cf-aaeb-d949-bddc-227bcaceb7d1@pfeifer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--mzX6t+xNwpEX1d1b Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline 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. --mzX6t+xNwpEX1d1b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJkBAABCgBOFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAma9K4EwFIAAAAAAFQAS cGthLWFkZHJlc3NAZ251cGcub3JncGt1YmFqQGFub25nb3RoLnBsAAoJEHpZm4Ug g5ydcZAP/0+fVg44iO0mkxLr2Ll7Sn9q7G+x8Vd7FkACn6dshErmYHnyirH5uuFN 943rVMvT/HCVTWZ8S7qSxHiNk6zDkTB28KdPOK2RMxKg63VOozxekMYUUVk7tL4A sHGGoSt6EhhHhGbv/QvXbAHCD/9toOHLYbndo6eqGDRgL1HMWHxYHDV7lxoWybNc psOZPa9/YD/zIJ5szoBf4238UVmuC8LDKOt/rZ1b9RCyqUEOe7cs0BOJIG6srHB6 2FdbcqpxVtct8svm/ojhHCiaFy/8uJUfJcMHCDub3/X5KTft7+hoyskIyCpz5dY0 eO4Kaa6Cq2+VmtBqsAbQ1bwZZB9i1M+q+f1tPJTPfOfdY1AetZqFuPs0MhTO6sX6 /GbSTRPGhE8yTXIf91ms3PxBp4X1xUMCuoMsCZnX3v94OXIqnq9+LFN3nYMcyo/x BuR7rIXHQE6Mp0i/tUSKPKEkn8vAooz1kRQh2I9n9xlRMY9irtR+krDe1kfn14se AA8Akrorjnd3aAGEZL+Gk0db7IxUyDKVeguuNdjmWNnMh80IWYBr9we3hXAri4fi ADjbIl/HjGJx/Q795XOMjyyTij9bDnws8nUa4O1xOdYSepDxydn3fDfJGugSxJJP HgItcxUd8fpU28rb0UyEUYXdrQd3+qatLGzY4h+HlTE/5Wdt3c+O =C98M -----END PGP SIGNATURE----- --mzX6t+xNwpEX1d1b--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Zr0rgZtvfGPRXRjB>