Skip to content

Installation script fails to compile serde #1623

@zamoldinov

Description

@zamoldinov

Mac OS version: 13.3.1 (22E261) — Ventura
Are there additional steps that would help to troubleshoot the issue?
Thank you!

Full output is below:

% curl -L https://raw.githubusercontent.com/rust-lang/rustlings/main/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4662  100  4662    0     0  12449      0 --:--:-- --:--:-- --:--:-- 12634
Let's get you set up with Rustlings!
Checking requirements...
SUCCESS: Git is installed
SUCCESS: cc is installed
SUCCESS: rustup is installed
SUCCESS: Rust is installed
SUCCESS: Cargo is installed
SUCCESS: Rust is up to date
Cloning Rustlings at rustlings/...
Checking out version tags/5.5.1...
Installing the 'rustlings' executable...
  Installing rustlings v5.5.1 (/Users/dan/rustlings)
    Updating crates.io index
  Downloaded argh_shared v0.1.12
  Downloaded number_prefix v0.4.0
  Downloaded fsevent-sys v2.0.1
  Downloaded cfg-if v1.0.0
  Downloaded fsevent v0.4.0
  Downloaded same-file v1.0.6
  Downloaded lazy_static v1.4.0
  Downloaded bitflags v1.3.2
  Downloaded unicode-width v0.1.10
  Downloaded home v0.5.5
  Downloaded glob v0.3.1
  Downloaded walkdir v2.3.3
  Downloaded quote v1.0.32
  Downloaded filetime v0.2.22
  Downloaded itoa v1.0.9
  Downloaded argh_derive v0.1.12
  Downloaded argh v0.1.12
  Downloaded console v0.15.7
  Downloaded ryu v1.0.15
  Downloaded unicode-ident v1.0.11
  Downloaded proc-macro2 v1.0.66
  Downloaded toml v0.5.11
  Downloaded indicatif v0.16.2
  Downloaded serde v1.0.183
  Downloaded notify v4.0.17
  Downloaded memchr v2.5.0
  Downloaded serde_json v1.0.104
  Downloaded aho-corasick v1.0.3
  Downloaded regex v1.9.3
  Downloaded syn v2.0.28
  Downloaded regex-syntax v0.7.4
  Downloaded serde_derive v1.0.183
  Downloaded regex-automata v0.3.6
  Downloaded libc v0.2.147
  Downloaded 34 crates (3.5 MB) in 1.56s
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling serde v1.0.183
   Compiling libc v0.2.147
   Compiling memchr v2.5.0
   Compiling regex-syntax v0.7.4
   Compiling unicode-width v0.1.10
   Compiling cfg-if v1.0.0
   Compiling serde_json v1.0.104
   Compiling same-file v1.0.6
   Compiling lazy_static v1.4.0
   Compiling bitflags v1.3.2
   Compiling walkdir v2.3.3
   Compiling ryu v1.0.15
   Compiling number_prefix v0.4.0
   Compiling itoa v1.0.9
   Compiling glob v0.3.1
   Compiling home v0.5.5
   Compiling fsevent-sys v2.0.1
   Compiling filetime v0.2.22
   Compiling fsevent v0.4.0
   Compiling console v0.15.7
   Compiling quote v1.0.32
   Compiling notify v4.0.17
   Compiling syn v2.0.28
   Compiling aho-corasick v1.0.3
   Compiling regex-automata v0.3.6
   Compiling serde_derive v1.0.183
   Compiling regex v1.9.3
   Compiling indicatif v0.16.2
error: could not compile `serde` (lib)

Caused by:
  process didn't exit successfully: `/Users/dan/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name serde --edition=2018 /Users/dan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.183/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=215 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=54270cdfad1173a4 -C extra-filename=-54270cdfad1173a4 --out-dir /Users/dan/rustlings/target/release/deps -L dependency=/Users/dan/rustlings/target/release/deps --extern serde_derive=/Users/dan/rustlings/target/release/deps/libserde_derive-0585860195eb8555.dylib --cap-lints allow` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: could not compile `serde` (lib)

Caused by:
  process didn't exit successfully: `/Users/dan/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name serde --edition=2018 /Users/dan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.183/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=215 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=ae6d854a13a89053 -C extra-filename=-ae6d854a13a89053 --out-dir /Users/dan/rustlings/target/release/deps -L dependency=/Users/dan/rustlings/target/release/deps --extern serde_derive=/Users/dan/rustlings/target/release/deps/libserde_derive-0585860195eb8555.dylib --cap-lints allow` (signal: 9, SIGKILL: kill)
error: failed to compile `rustlings v5.5.1 (/Users/dan/rustlings)`, intermediate artifacts can be found at `/Users/dan/rustlings/target`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions