From owner-freebsd-current@freebsd.org Tue Aug 18 12:13:23 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B57573B9D97 for ; Tue, 18 Aug 2020 12:13:23 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BW8vQ46Xdz3yBT; Tue, 18 Aug 2020 12:13:22 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermann.fritz.box ([77.183.29.206]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5mKP-1kiQxI2e9z-017EVL; Tue, 18 Aug 2020 14:13:19 +0200 Date: Tue, 18 Aug 2020 14:13:11 +0200 From: "Hartmann, O." To: Dimitry Andric Cc: "O. Hartmann" , freebsd-current Subject: Re: ld: error: duplicate symbol: Message-ID: <20200818141311.557eff8b@hermann.fritz.box> In-Reply-To: References: <20200817154208.42d25b89@freyja> Organization: walstatt.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/V+KXbExAILuTz3WJu219sIv"; protocol="application/pgp-signature" X-Provags-ID: V03:K1:U+0hmJ2fgMJ2V5fRW5NGLDG8dd5ytW0Evba8LiNWoutoF3D0l/6 SUAlQ9r0r4udLE9zu6RWXQUtdYVzbuaExWfM+9/hafzi7b0eDPYj/3eHZqY0uAkAZxDnw/c IPZJOlJL2Rd0Xj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bnn6HpDvgHQt5n2tT8s79MI9vk+lRE7llvwRG/Vd/hINPITh 5siWQMCHMrplL8hp3cCgdiGow8TXBSl6U0nQLx7ECBsTbiiQqqiQX98/pPqUy4xupPrwYGpaV QYesJfBMpGJWbkKC8WSAiXGxv0JFdS2c/eCEPH0b5Y0VUyZzNKUQgXoDJfSAakRZTG1/UHjEv Ehj/SBISHRWIMuQFLO4Ua36mQm8Cr+Y1NWj4NZJksQTo2JXRoB1oYiVJH9MVyYAKud2UKltbx Oj2kGRLTQjEdsMsp8HM01IxtNjsDzNTbtKpAMB4xtqTq1S8f4ZtEttVrrwGqrJhyy/IQ8Ocrc 6LVSbyfiPBQ7IropLNMjLQvO809L/BfnYoCE15Q== X-Rspamd-Queue-Id: 4BW8vQ46Xdz3yBT X-Spamd-Bar: / X-Spamd-Result: default: False [-0.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.15:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[walstatt.org]; HAS_ORG_HEADER(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.15:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; RECEIVED_SPAMHAUS_PBL(0.00)[77.183.29.206:received]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 12:13:23 -0000 --Sig_/V+KXbExAILuTz3WJu219sIv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 17 Aug 2020 21:49:52 +0200 Dimitry Andric wrote: > On 17 Aug 2020, at 15:42, O. Hartmann wrote: > >=20 > > On CURRENT 9not necessarily most recent with LLVM11, but since noon > > of today it is FreeBSD 13.0-CURRENT #15 r364297: Mon Aug 17 > > 14:39:06 CEST 2020 amd64) I'm faced with some very sticky and nasty > > micompilations in several essential ports, for instance > >=20 > > ports-mgmt/pkg > > devel/libunwind > > devel/binutils > >=20 > > In most cases somewhere in the (parallel) build the process fails > > with the error > >=20 > > ld: error: duplicate symbol: xxxxxxxx =20 >=20 > This is because clang 11 (and gcc 10) now default to -fno-common. The > rationale is explained pretty well in > : >=20 > "GCC currently defaults to -fcommon. As discussed in the PR, this is > an ancient C feature which is not conforming with the latest C > standards. On many targets this means global variable accesses have > a codesize and performance penalty. This applies to C code only, C++ > code is not affected by -fcommon. It is about time to change the > default." >=20 > A quick fix is to add CFLAGS+=3D-fcommon to your make.conf, but that is > rather a big hammer. It is better to add it to just the ports that > show problems due to duplicated symbols. And ideally, those duplicated > symbols should be patched out of the ports. >=20 > For example, ports-mgmt/pkg already has such a patch: > https://github.com/freebsd/pkg/commit/7fbde60c4af4a1a07db7c5c36efbb2a495f= 7b1a4 > but I have no idea why it is not yet in the ports tree. >=20 > -Dimitry >=20 Thank you for the fast response and thorough explanation. oh --Sig_/V+KXbExAILuTz3WJu219sIv Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXzvF1wAKCRA4N1ZZPba5 R/fvAQDdYX8jrecBjnld3L7/Tb9oeEGkkQtahR+YFLqGiq5IoQD/fgWDuzPNKaY1 OZA+Lo2D5wcs3D6WEgJbKpotXr0zYAo= =65HO -----END PGP SIGNATURE----- --Sig_/V+KXbExAILuTz3WJu219sIv--