From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/swift/
Date: Tue, 11 Feb 2025 11:12:46 +0000 (UTC) [thread overview]
Message-ID: <1739231190.e725aa5030c89bec2b8883784d725568250d19b8.davidroman@gentoo> (raw)
commit: e725aa5030c89bec2b8883784d725568250d19b8
Author: Marco Rebhan <me <AT> dblsaiko <DOT> net>
AuthorDate: Mon Feb 10 19:54:17 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> 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 <me <AT> 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',
next reply other threads:[~2025-02-11 11:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 11:12 David Roman [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-08 11:18 [gentoo-commits] repo/proj/guru:master commit in: dev-lang/swift/ Lucio Sauer
2025-02-11 11:12 David Roman
2025-01-17 9:41 David Roman
2025-01-13 11:38 David Roman
2024-10-13 14:51 David Roman
2024-10-13 14:51 David Roman
2024-10-13 14:51 David Roman
2024-10-13 14:51 David Roman
2024-10-13 14:51 David Roman
2024-10-13 14:51 David Roman
2024-09-14 0:43 David Roman
2024-09-14 0:43 David Roman
2024-08-10 20:34 Lucio Sauer
2024-08-10 20:34 Lucio Sauer
2024-08-10 20:34 Lucio Sauer
2024-08-10 20:34 Lucio Sauer
2024-08-10 20:34 Lucio Sauer
2024-08-10 20:34 Lucio Sauer
2024-07-17 8:40 David Roman
2024-07-17 8:40 David Roman
2024-07-01 13:50 David Roman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1739231190.e725aa5030c89bec2b8883784d725568250d19b8.davidroman@gentoo \
--to=davidroman96@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox