Skip to content
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

rust 1.74+ needs a newer macos SDK #88

Open
mleduque opened this issue Feb 6, 2024 · 5 comments
Open

rust 1.74+ needs a newer macos SDK #88

mleduque opened this issue Feb 6, 2024 · 5 comments

Comments

@mleduque
Copy link

mleduque commented Feb 6, 2024

It seems from 1.74 the minimum SDK version for macos is v10.12.

rust-lang/rust#104385
https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html

The current version of rust-build uses 10.10 (AFAIK)

@lcmgh
Copy link

lcmgh commented Feb 9, 2024

Is that related to errors such as

 = note: ld: warning: object file (/tmp/rustcZt9O7X/symbols.o) was built for newer macOS version (10.12) than being linked (10.8)

?

@mleduque
Copy link
Author

mleduque commented Feb 9, 2024

I think it is.
In my case, I had those warnings but I also had a build failure because I had getrandom as transitive dep and https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md#0212---2024-01-09 states

Raise minimum supported Apple OS versions to macOS 10.12 and iOS 10 rust-random/getrandom#388

@Odonno
Copy link

Odonno commented Feb 23, 2024

I can confirm that it works with Rust 1.74 but it won't with a later version. Hope we will not be locked on this version for a long period of time.

@jorgecarleitao
Copy link

Unfortunately we do not have the tarballs for 10.12 in https://s3.dockerproject.org/ yet (which we use in

RUN curl -Lo /opt/osxcross/tarballs/MacOSX10.10.sdk.tar.xz "https://s3.dockerproject.org/darwin/v2/MacOSX10.10.sdk.tar.xz"

@Douile , do you know how these tarballs are created and uploaded to s3.dockerproject.org?

@Douile
Copy link
Member

Douile commented Feb 29, 2024

I believe it was found in a blog post (unlikely to get updated). New ones could possibly be sourced from https://github.com/joseluisq/macosx-sdks?tab=readme-ov-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants