-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Linker error with LLVM 18.1.8: std::exception_ptr::__from_native_exception_pointer(void*) #178435
Comments
Can you try adding
to |
With those flags added to
|
Good to know, thanks. Do you consider this issue resolved? The solution isn't ideal, but making it better could prove a little painful for some other users... |
Do you expect this to be a temporary or permanent workaround? Previous versions of homebrew LLVM worked fine out of the box and there's now a few other issues elsewhere pointing to this one. |
Just noting that similar issues could have (and did) happen with previous LLVM versions depending on how old the version of Xcode's LLVM was. The root cause is mixing of different LLVM headers and libraries is not officially supported. LLVM 18 specifically introduced changes to A prior situation was LLVM 15/16 introducing verbose abort feature (which impacted Monterey and older), e.g. llvm/llvm-project#87590 |
Yes, the issue seems to be that LLVM prioritises use of its included C++ headers when it has no guarantee that it will be linking with a compatible |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I am trying to build the boost 1.86 beta release candidate. The tar ball can be found: https://archives.boost.io/beta/1.86.0.beta1/source/. I am trying to build it since I am a boost maintainer, and am testing the build as part of the upcoming release cycle.
What happened (include all command output)?
I received a linker error for std::exception pointer:
Searching LLVMs logs lead me to:
llvm/llvm-project#86077
which is linked to:
llvm/llvm-project#77653
A homebrew maintainer states here there is a patch already applied to homebrew:
llvm/llvm-project#77653 (comment)
Full output:
What did you expect to happen?
I expected the libraries to build fine without the linker error. Building using homebrew GCC14 (toolset=gcc-14) or Xcode provided clang (toolset=darwin) successfully builds the libraries.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: