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

Building log as a dependency doesn't work on arm64 #542

Closed
lirannl opened this issue Dec 25, 2022 · 5 comments
Closed

Building log as a dependency doesn't work on arm64 #542

lirannl opened this issue Dec 25, 2022 · 5 comments

Comments

@lirannl
Copy link

lirannl commented Dec 25, 2022

I have an arm64 machine, and I'm trying to build a package that requires log.

Version: 0.4.17

error: failed to run custom build command for 'log v0.4.17'

Caused by:
  could not execute process '/tmp/cargo-installvKtAeG/release/build/log-b353450b8bd9d1bd/build-script-build' (never executed)

Caused by:
  Permission denied (os error 13)

(I assume this is an x86_64 executable that's being run, which obviously won't work on my machine)

@NobodyXu
Copy link

Looking at the error message, it seems like the executable of build script does not have its executable bit set.

This is probably a bug of rustc, not a bug of log, since it does not distribute any pre-compiled binaries.

I think upgrading to the latest rustc might fix the problem.

@lirannl
Copy link
Author

lirannl commented Dec 25, 2022

I just installed rust nightly on this machine a few minutes ago. Is that not new enough?

As for it not being log, why would it fail (consistently) while building log?

@NobodyXu
Copy link

I just installed rust nightly on this machine a few minutes ago. Is that not new enough?

You need to runn "cargo +nightly build" in order to use the nightly compiler.

As for it not being log, why would it fail (consistently) while building log?

That's probably because of the caching.
Try removing target, it might give different result.

@Thomasdezeeuw
Copy link
Collaborator

@JohnTitor
Copy link
Member

Triage: Closing as duplicate, feel free to re-open if the issue still exists after running cargo clean. Thanks for reporting!

@JohnTitor JohnTitor closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2023
EFanZh pushed a commit to EFanZh/log that referenced this issue Jul 23, 2023
)

Switch binstalk-downloader license to Apache-2.0 OR MIT




Signed-off-by: ryan kurte ryan+gh@kurte.nz

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Félix Saparelli <felix@passcod.name>
Signed-off-by: Ryo Yamashita <qryxip@gmail.com>
Signed-off-by: ryan kurte ryan+gh@kurte.nz
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

4 participants