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

Rustup 1.27.0 incompatible with older macOS #3708

Closed
andersm opened this issue Mar 12, 2024 · 19 comments · Fixed by #3710
Closed

Rustup 1.27.0 incompatible with older macOS #3708

andersm opened this issue Mar 12, 2024 · 19 comments · Fixed by #3710
Labels
Milestone

Comments

@andersm
Copy link

andersm commented Mar 12, 2024

Problem

Trying to run rustup self update on macOS 10.14 fails with the error dyld: cannot load 'rustup-init' (load command 0x80000034 is unknown).

Full output:

$ rustup self update
info: checking for self-update
info: downloading self-update
  rustup updated - (unknown) (from 1.26.0)

dyld: cannot load 'rustup-init' (load command 0x80000034 is unknown)
error: self-updated failed to replace rustup executable

$ uname -a
Darwin Caligari.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64 x86_64

Steps

  1. Run rustup self update
  2. There is no step 2.

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.26.0 (5af9b9484 2023-04-05)

Installed toolchains

Default host: x86_64-apple-darwin
rustup home:  /Users/anders/.rustup

stable-x86_64-apple-darwin (default)
rustc 1.76.0 (07dca489a 2024-02-04)
@andersm andersm added the bug label Mar 12, 2024
@ehuss
Copy link
Contributor

ehuss commented Mar 12, 2024

Thanks for the report!

I believe rustup needs to be built with the environment variable MACOSX_DEPLOYMENT_TARGET: 10.12. See rust-lang/rust#104570 for the details. Newer versions of Xcode technically don't support such an old version of macos, but I believe in this case it shouldn't be necessary to downgrade.

@djc
Copy link
Contributor

djc commented Mar 12, 2024

@ehuss are you suggesting we/the project should build/release a different binary release for macOS, or that the OP builds their own?

@ehuss
Copy link
Contributor

ehuss commented Mar 12, 2024

Yea, rustup itself needs to be built with that set, presumably in https://github.com/rust-lang/rustup/blob/master/ci/actions-templates/macos-builds-template.yaml.

You might also consider this for a point release since it is a tier-1 platform.

@rami3l

This comment was marked as outdated.

@andersm

This comment was marked as outdated.

@rami3l

This comment was marked as outdated.

@djc djc closed this as completed Mar 13, 2024
@rami3l

This comment was marked as resolved.

@rami3l rami3l reopened this Mar 13, 2024
@djc

This comment was marked as resolved.

@djc djc pinned this issue Mar 28, 2024
@djc djc changed the title Rustup 1.27.0 incompatible with macOS 10.14? Rustup 1.27.0 incompatible with older macOS Mar 28, 2024
@dlight

This comment has been minimized.

@rami3l

This comment has been minimized.

@correabuscar

This comment has been minimized.

@rami3l

This comment has been minimized.

@rami3l
Copy link
Member

rami3l commented Apr 28, 2024

@andersm @correabuscar @dlight A new beta release is available, would you mind trying it out?

@andersm
Copy link
Author

andersm commented Apr 28, 2024

@rami3l It seems to work.

$ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.77.2 (25ef9e3d8 2024-04-09)`

@rami3l rami3l unpinned this issue Apr 30, 2024
@WhiteMac

This comment was marked as outdated.

@rami3l

This comment was marked as outdated.

@XionWin

This comment was marked as outdated.

@rami3l

This comment was marked as outdated.

@rami3l
Copy link
Member

rami3l commented May 6, 2024

@WhiteMac @XionWin The stable release is now available, so I'm marking our previous discussions as outdated.

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

Successfully merging a pull request may close this issue.

8 participants