From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D52721582EF for ; Tue, 11 Feb 2025 11:12:59 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BECC7343158 for ; Tue, 11 Feb 2025 11:12:59 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 42557110476; Tue, 11 Feb 2025 11:12:49 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 35EC1110476 for ; Tue, 11 Feb 2025 11:12:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E4D6934311A for ; Tue, 11 Feb 2025 11:12:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3823E27FB for ; Tue, 11 Feb 2025 11:12:46 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1739231190.e725aa5030c89bec2b8883784d725568250d19b8.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/swift/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-lang/swift/swift-5.10.1-r3.ebuild X-VCS-Directories: dev-lang/swift/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: e725aa5030c89bec2b8883784d725568250d19b8 X-VCS-Branch: master Date: Tue, 11 Feb 2025 11:12:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f429b15d-5867-4da4-bb5e-683a3410fb93 X-Archives-Hash: 26b5e084c93f80fefdf475315109eb53 commit: e725aa5030c89bec2b8883784d725568250d19b8 Author: Marco Rebhan dblsaiko net> AuthorDate: Mon Feb 10 19:54:17 2025 +0000 Commit: David Roman gmail com> CommitDate: Mon Feb 10 23:46:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e725aa50 dev-lang/swift: Always use libstdc++ when building Swift 5 Closes: https://bugs.gentoo.org/949266 Signed-off-by: Marco Rebhan dblsaiko.net> dev-lang/swift/swift-5.10.1-r3.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-lang/swift/swift-5.10.1-r3.ebuild b/dev-lang/swift/swift-5.10.1-r3.ebuild index 09858bfb7..9bf1f8049 100644 --- a/dev-lang/swift/swift-5.10.1-r3.ebuild +++ b/dev-lang/swift/swift-5.10.1-r3.ebuild @@ -196,6 +196,15 @@ src_compile() { '-DSWIFT_USE_LINKER=lld', '-DLLVM_USE_LINKER=lld', + # Bug 949266 + # Building Swift with llvm-core/clang-common[default-libcxx] fails + # with missing symbol errors due to some libraries getting linked + # against libc++ and some against libstdc++, and when the Swift llvm is + # told to link against libc++ (via -DCLANG_DEFAULT_CXX_STDLIB=libc++), + # Swift fails to load the c++ symbols later in the build. Therefore, + # unconditionally force libstdc++. + '-DCMAKE_CXX_FLAGS=-stdlib=libstdc++', + # We don't need to build any test code or test executables, which Swift # (and some components) does by default. '-DBUILD_TESTING:BOOL=NO',