Closed as not planned
Description
Problem
dynamic library loading fails, similar to #2290
Steps
- switch to nightly
- check rustc version
(see below)
Possible Solution(s)
the error messages talk about a load command being unknown, perhaps there's something to do with the executable in my version of macOS (10.14.6)
Notes
$ rustup default nightly
info: using existing install for 'nightly-x86_64-apple-darwin'
info: default toolchain set to 'nightly-x86_64-apple-darwin'
nightly-x86_64-apple-darwin unchanged - (error reading rustc version)
$ rustc --version
dyld: Library not loaded: @rpath/librustc_driver-582242ced547d33f.dylib
Referenced from: /Users/goose/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/rustc
Reason: no suitable image found. Did find:
/Users/goose/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/../lib/librustc_driver-582242ced547d33f.dylib: cannot load 'librustc_driver-582242ced547d33f.dylib' (load command 0x80000034 is unknown)
/Users/goose/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/../lib/librustc_driver-582242ced547d33f.dylib: stat() failed with errno=1
/Users/goose/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/librustc_driver-582242ced547d33f.dylib: cannot load 'librustc_driver-582242ced547d33f.dylib' (load command 0x80000034 is unknown)
/Users/goose/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/librustc_driver-582242ced547d33f.dylib: cannot load 'librustc_driver-582242ced547d33f.dylib' (load command 0x80000034 is unknown)
Abort trap: 6
my stable is at 1.65.0 (897e37553 2022-11-02)
Rustup version
$ rustup --version
rustup 1.25.1 (bb60b1e89 2022-07-12)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `(error reading rustc version)`
Installed toolchains
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/goose/.rustup
installed toolchains
--------------------
stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)
active toolchain
----------------
nightly-x86_64-apple-darwin (default)
(error reading rustc version)