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 · 7 comments
Open

rust 1.74+ needs a newer macos SDK #88

mleduque opened this issue Feb 6, 2024 · 7 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
Contributor

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

cehlts pushed a commit to cehlts/snek that referenced this issue May 16, 2024
This can be removed as soon as
rust-build/rust-build.action#88 is resolved or
someone bakes normal releases into the release.yml
@vianneybacoup
Copy link

Any news on this ?

@Douile
Copy link
Member

Douile commented Jun 25, 2024

The long term fix for this is building using cross or github actions macos runner. Which is a complete rewrite of the action. I haven't had time to do this yet.

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

6 participants