-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys-libs/libcxx-9.0.0: fix error when compiling with clang+compiler-rt #13748
Conversation
afccf39
to
1f4a93a
Compare
1f4a93a
to
ca95c79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, we aren't going to go all around the place adding flags for compiler-rt support. The ebuilds already have checks for compiler-rt being used, so just fix their results.
bc1222a
to
285593f
Compare
Addressed the comment, please take a look. |
According to https://clang.llvm.org/docs/Toolchain.html#compiler-rt-llvm, `-DLIBCXXABI_USE_COMPILER_RT=YES` is needed to linked against compiler-rt if compiled with clang+compiler-rt. Signed-off-by: Yang Yang <geraint0923@gmail.com>
According to https://clang.llvm.org/docs/Toolchain.html#compiler-rt-llvm, `-DLIBCXX_USE_COMPILER_RT=YES` is needed to linked to compiler-rt. Otherwise building libcxx using clang+compiler-rt will fail. Signed-off-by: Yang Yang <geraint0923@gmail.com>
285593f
to
687236a
Compare
Pull Request assignmentSubmitter: @geraint0923 sys-libs/libcxx: Linked bugsNo bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment. If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers. In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
According to https://clang.llvm.org/docs/Toolchain.html#compiler-rt-llvm,
-DLIBCXX_USE_COMPILER_RT=YES
and-DLIBCXXABI_USE_COMPILER_RT=YES
are explicitly needed to compile with clang+compiler-rt.Otherwise libcxx will fail to build due to error like:
undefined reference to '__udivdi3'