From nobody Wed Aug 14 22:11:13 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wkj9q1dtyz5SwL7; Wed, 14 Aug 2024 22:10:23 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X448 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wkj9p6RjVz4QGM; Wed, 14 Aug 2024 22:10:22 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Authentication-Results: mx1.freebsd.org; none Received: from anongoth.pl (unknown [192.168.1.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id AAEF99AFA7; Thu, 15 Aug 2024 00:10:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=anongoth.pl; s=ANONGOTH; t=1723673411; bh=/wN3HrzhAMgiBVs6cXOld0TtxAp/20Nv/7jM8jvbQoA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=JnvrMawZD95PMPfq5DvLzBGxWv+y25vuKfQjXq9Ljz92SN1li7hmo4t9Ud1WlfVyJ JWebi4pRCEiwVk6dkwAck6S9z6O3kr2DxXbNAJ0AOXnppqaakE21aLIbpwfbNABs5u wLddo9ShNK54Q7oS17FGYzSAqPiMqB0gddL4VnmTf7A62+p4XkAcOYLQdl0wvjSBrm emIihlBLS938bE4ZTWxD7/wdAkNeluTA4iVWMRgoc+dyzf9WJp2q8M1kmLlvBemJc1 SQ76o+YqAnnfy26cgSyDf4NbWOnmbIIbKA0Bqt7ogHqmpTumG8THdhuCKWNYcbSf2t cfqoNk+GQHKPw== Date: Thu, 15 Aug 2024 00:11:13 +0200 From: Piotr Kubaj To: Gerald Pfeifer 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: References: <202408041201.474C1AsI012533@gitrepo.freebsd.org> <580464cf-aaeb-d949-bddc-227bcaceb7d1@pfeifer.com> List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mzX6t+xNwpEX1d1b" Content-Disposition: inline In-Reply-To: <580464cf-aaeb-d949-bddc-227bcaceb7d1@pfeifer.com> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:47544, ipnet:46.248.160.0/19, country:PL] X-Rspamd-Queue-Id: 4Wkj9p6RjVz4QGM --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 >> + >> +.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--