-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
macos BigSur: ld: library not found for -lSystem #104
Comments
Same here. Have you found a relevant and reproducible way to get corrosion add the SDK root to the include directories ? This bug is especially problematic in the context of cross platform builds, using e.g. iOS toolchains. |
Adding That said, normal CMake libraries don't have this problem normally. Where is |
Is this still a problem with CMake >= 3.19? |
Note I am still seeing this, now on clang 13 and Monterey.
If I run
Alsmost the same result:
If this is a different problem, I am happy to create a new issue. |
What cmake version are you using? I only fixed this with the experimental generator, which requires cmake 3.19. |
Sorry that was with old version of cmake I have pinned due to day job.
With 3.23.0 I seem similar
I was on rust 1.58.1 ; updating to 1.59.0 - same result. |
No the CMake version you were using was recent enough. Maybe my fix only fixed macOS 11, but not 12? Unfortunately macOS 12 does not seem to be availble in github actions, so I can't really test this myself. Do you know if the location of the |
Using
|
I investigated this, and I think I should have a fix, but I'll leave my findings here for documentation purposes in case someone has a similar problem in the future: For Rust targets, Rust will invoke the linker and add (among others) the
@jayvdb Could you checkout #167 and check if this PR also fixes the problem on macos-12? |
That PR wfm on macos 12.3.1 / clang 13.1.6 / CommandLineTools 13.3 |
Following the installation instructions, I get the following error.
If I add
-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
to the command, it links.The text was updated successfully, but these errors were encountered: