Comments (6)
Previous versions of homebrew LLVM worked fine out of the box
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 std::make_exception_ptr
so any code that uses it hits the failure when linking to Xcode's libc++
.
A prior situation was LLVM 15/16 introducing verbose abort feature (which impacted Monterey and older), e.g. llvm/llvm-project#87590
from homebrew-core.
Can you try adding
-L"$(brew --prefix llvm)/lib/c++" -L"$(brew --prefix llvm)/lib" -lunwind
to cxxflags
when building to see if it helps?
from homebrew-core.
Can you try adding
-L"$(brew --prefix llvm)/lib/c++" -L"$(brew --prefix llvm)/lib" -lunwind
to
cxxflags
when building to see if it helps?
With those flags added to linkflags
the libraries successfully build. Full command is now:
./b2 cxxstd=20 toolset=clang --stage linkflags="-L"$(brew --prefix llvm)/lib/c++" -L"$(brew --prefix llvm)/lib" -lunwind"
from homebrew-core.
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...
from homebrew-core.
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.
from homebrew-core.
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 libc++
. For a long time this didn't cause anyone problems. I'm not sure if this was by chance, or if there's been a policy change upstream.
from homebrew-core.
Related Issues (20)
- Settings schema 'io.github.lxi-tools.lxi-gui' is not installed HOT 8
- Keg-only PostgreSQL is incompatible with extensions like PostGIS HOT 6
- glibtoolize is broken after reinstalling libtool HOT 5
- Homebrew MySQL `brew upgrade` broke mysql - MacOS Sonoma 14.5 HOT 39
- Branches for autobump PR's should be deleted if the PR is closed HOT 1
- Golang 1.22.6 has been released, but I can only update to version 1.22.5 using brew HOT 1
- Formula for `bitwarden-cli` is not being updated via autobump bot. HOT 3
- `mysql-client` 9.0 does not include `mysql_native_password` plugin HOT 11
- easy-rsa does not show real version, date, and git commit hash HOT 1
- Docker-compose conflict with docker-buildx HOT 10
- Formula/s/sevenzip.rb can be simplified, not an issue, just a suggestion HOT 1
- Golang 1.23.0 has been released, but I can only update to version 1.22.6 using brew HOT 2
- Watchman socket path too long HOT 9
- Numpy should use Apple Accelerate instead of OpenBLAS on Apple Silicon HOT 3
- SHA256 mismatch when trying to install 'wireguard-go' HOT 2
- mysql broken after brew upgrade HOT 2
- sourceforge url audit failures HOT 4
- Unable to submit a version bump for mariadb HOT 7
- Bump postgresql@16 to 16.4 (was released 05-Aug-2024) HOT 2
- odin: vendor libraries are not available on Linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-core.