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

failed to run custom build command for log v0.4.1 #424

Closed
johnpangalos opened this issue Nov 30, 2020 · 3 comments
Closed

failed to run custom build command for log v0.4.1 #424

johnpangalos opened this issue Nov 30, 2020 · 3 comments

Comments

@johnpangalos
Copy link

Hey I recently bought an M1 Mac and decided to try the rust beta and have run into a problem when build this repo (I was trying to compile something else and this was the first error I received). When building on the current rust beta (cargo 1.49.0-beta (b9216831a 2020-11-24)) I receive the following error message:

cargo build --verbose
    Updating crates.io index
  Downloaded cfg-if v1.0.0
  Downloaded 1 crate (7.9 KB) in 0.43s
   Compiling log v0.4.11 (/Users/johnpangalos/repos/log)
   Compiling cfg-if v1.0.0
     Running `rustc --crate-name build_script_build build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=aa33ebf73a613007 -C extra-filename=-aa33ebf73a613007 --out-dir /Users/johnpangalos/repos/log/target/debug/build/log-aa33ebf73a613007 -C incremental=/Users/johnpangalos/repos/log/target/debug/incremental -L dependency=/Users/johnpangalos/repos/log/target/debug/deps`
     Running `rustc --crate-name cfg_if --edition=2018 /Users/johnpangalos/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=51b7bb36365783be -C extra-filename=-51b7bb36365783be --out-dir /Users/johnpangalos/repos/log/target/debug/deps -L dependency=/Users/johnpangalos/repos/log/target/debug/deps --cap-lints allow`
     Running `/Users/johnpangalos/repos/log/target/debug/build/log-aa33ebf73a613007/build-script-build`
error: failed to run custom build command for `log v0.4.11 (/Users/johnpangalos/repos/log)`

Caused by:
  process didn't exit successfully: `/Users/johnpangalos/repos/log/target/debug/build/log-aa33ebf73a613007/build-script-build` (signal: 9, SIGKILL: kill)

I would love to help out in anyway I can but honestly I am not a experienced rust developer. Let me know if there is anything else you need to know from me. Thanks!

@johnpangalos
Copy link
Author

I tried running it again just now and it seems to have compiled... Here is the output

cargo build --verbose
       Fresh cfg-if v1.0.0
   Compiling log v0.4.11 (/Users/johnpangalos/repos/log)
     Running `rustc --crate-name log src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=5cf34cb8864094ad -C extra-filename=-5cf34cb8864094ad --out-dir /Users/johnpangalos/repos/log/target/debug/deps -C incremental=/Users/johnpangalos/repos/log/target/debug/incremental -L dependency=/Users/johnpangalos/repos/log/target/debug/deps --extern cfg_if=/Users/johnpangalos/repos/log/target/debug/deps/libcfg_if-51b7bb36365783be.rmeta --cfg atomic_cas --cfg has_atomics`
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s

I'll close for now.

@Thomasdezeeuw
Copy link
Collaborator

@Johnny88 for reference, it means that running the build script failed (located here: https://github.com/rust-lang/log/blob/078e68fa1e27d3dd66ee524e0ef646cfb434c6f9/build.rs). That said, I'm not sure what could have failed.

@sfackler
Copy link
Member

There's something funky with macOS's handling of untrusted executables on ARM: rust-lang/cargo#8913

EFanZh pushed a commit to EFanZh/log that referenced this issue Jul 23, 2023
Bumps [url](https://github.com/servo/rust-url) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](servo/rust-url@v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: url
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants