From nobody Wed Sep 20 07:26:17 2023 X-Original-To: ports-bugs@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 4Rr97Z33Rmz4tDWL for ; Wed, 20 Sep 2023 07:26:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rr97Y6T5Fz3bJx for ; Wed, 20 Sep 2023 07:26:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695194777; a=rsa-sha256; cv=none; b=MDrEyY3EqlUctJVAzv9R5EbNtfrbpI7ZLo8Iz8lBR6W4Rx+IcvEcLQNqWcFyfquRQZk8AB 1d7/isMvXBB7JfVg9S8kI2bKIHnhzUWKpAd5FxHMv8dL7RTAbDfVSniCxgRb7HK7Ra1E8Z lOR1ecdRd0Vj4iOMs4pFpOupdzm3VA0sSbJWtv37y8o5a9aBIYnvOMD05JvEAgKPA6qjSq LO8PrXPLhc8SC+z0iuxvX7U9z+metXwwLo7sbXo6ZeqVIpp+5vLe9WSzRPtelFzGHcHfGl ytX1LPerAXSdJA4wCxSO5TVCGBOVIQBTiWcG7xlJ0f1La6fgpYLt+5z0eLVv5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695194777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oEU2S7lw/RYKuQOxb5Tsm40/tRx8YFISJ3YFVnnxCjk=; b=Cg9I32uNq0g0mG6gm6MAgLeTe7NwFg0UbVu4nSS2TEbazc9PlhvtyogAzR6eXgzflIrUPj iT65d+3bNJbSwhL3VnBsJyobFwLKWcsYO7Fhq+5q/qBdad3Uwks3da0elJFI7hs1nyz07d rbGHEwvcROQivYOh3ld6ffmpDQ0zhEtKrs1Fm/tSvY+PjkB8UMOXQ62R2NnE6+S/o5/jHx MNw5ezujpClKjZhDFBgIs2EHIsi2vvzDMkXbX57p15ZC0Etl6KxZRCP8ol+70y8xqI35aI oQFO9nEBQSImdr0V1C5bQi1PjXoymm4eZYKVWJy3G67Gh91a04SKEIuvrlgnsA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rr97Y5R57zmcr for ; Wed, 20 Sep 2023 07:26:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38K7QHUe049675 for ; Wed, 20 Sep 2023 07:26:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38K7QHOn049674 for ports-bugs@FreeBSD.org; Wed, 20 Sep 2023 07:26:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 273959] devel/llvm10 devel/llvm11 devel/llvm12 devel/llvm13 devel/llvm14 devel/llvm15: fix build with lld 17 Date: Wed, 20 Sep 2023 07:26:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: brooks@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273959 Bug ID: 273959 Summary: devel/llvm10 devel/llvm11 devel/llvm12 devel/llvm13 devel/llvm14 devel/llvm15: fix build with lld 17 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: brooks@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: brooks@FreeBSD.org Flags: maintainer-feedback?(brooks@FreeBSD.org) After lld 17 made undefined symbols or versions in linker version scripts an error, several of the older llvm ports get such errors, when the base system linker is lld 17. For example, devel/llvm15 fails with: ... linking libomp.so ... ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.= o: symbol ompc_set_affinity_format@@VERSION has undefined version VERSION ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.= o: symbol omp_set_affinity_format@OMP_5.0 has undefined version OMP_5.0 ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.= o: symbol ompc_get_affinity_format@@VERSION has undefined version VERSION ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.= o: symbol omp_get_affinity_format@OMP_5.0 has undefined version OMP_5.0 ... many more of these... And there are a few other of these issues. To fix them all, I had to backpo= rt the following upstream changes: https://github.com/llvm/llvm-project/commit/e801e8f3e703 [Libomptarget] Rem= ove undefined 'omp_get_interop_rc_desc' symbol from exports list https://github.com/llvm/llvm-project/commit/619dced0fc5d [Libomptarget] Don= 't use full names for exported plugin symbols https://github.com/llvm/llvm-project/commit/1af754174142 [Libomptarget] Fix missing semicolon in exports https://github.com/llvm/llvm-project/commit/432a7e284440 [libomp] Add -Wl,--undefined-version workaround https://github.com/llvm/llvm-project/commit/cae1942297ef [CMake][OpenMP] Re= move -Wl,--warn-shared-textrel https://github.com/llvm/llvm-project/commit/fef73b81e9a7 [OpenMP][libomp] Cleanup version script and exported symbols https://github.com/llvm/llvm-project/commit/c6e6231e2f46 [OpenMP][libomp] F= ix version scripts after undefined version script changes https://github.com/llvm/llvm-project/commit/61311f3c9363 Use different expo= rt file when linking with dylib https://github.com/llvm/llvm-project/commit/263962545dae [OpenMP] Solve potential VERSION script error w/ OMPT symbols https://github.com/llvm/llvm-project/commit/c294bdd64768 libLTO.{so,dylib}: remove unused non-LTO symbols For llvm15 these changes apply without fuzz, but as you get to 14, 13 and l= ower versions, they need some hand-tweaking, so I added them as a patch-backport-version-fixes file. In case of llvm11 and llvm10, those files have been split up in llvm-specif= ic and openmp-specific parts, as the ports still make use of the split source tarballs. --=20 You are receiving this mail because: You are the assignee for the bug.=