-
Notifications
You must be signed in to change notification settings - Fork 409
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
HVM Install issue, erroring on Linux #291
Comments
What version of nvcc do you have installed? You can check with |
oops i forgot those sorry |
you may close this issue, i compiled from source and then compiled normally and it worked, i still have no clue what was up but its there now... i hope at least |
This might be because of the |
ahh ok, ill try that again if needed like if they do an update |
Could you describe your exact steps please :D |
I'm experiencing this as well. To install Unfortunately, this is a git package - I have to compile |
the fix seems to be |
the solution for us was to make sure
so that nvcc and gcc from this folder are used by default.
This resolves the issue for me
|
Please be very careful about this. It will delete whatever file you have at |
Judging from my outputs, it was a symlink to /usr/bin/gcc anyway 😅 But ty! |
I think it should work if you set the environment variable
or
but I don't have cuda to try it out |
On my fresh Arch install, it is not; I recommend users check before trying this... |
This worked! Thank you, sir! |
Oh oh 💦 But ye, I updated my comment with a warning. Thank you and @developedby for pointing this out. |
It does work for my case if I do the export in .bashrc, thank you! |
If you don't want to bork your gcc 14: |
Closing this issue since it was solved. Basically, changing your host compiler to gcc with either |
For me, 'cargo install hvm' installation required gcc 12 version rather than v.13 on my ubuntu version 24.04. then, it worked. |
Describe the bug
I get an Error when install hvm using cargo +nightly, im unsure of much else or the reason as to why, i have everything i know of to install it, but i might have missed something obvious.
logs.txt
logs.txt
To Reproduce
Steps to reproduce the behavior:
cargo +nightly install hvm
``3. error occurred: Command "nvcc" "-ccbin=c++" "-Xcompiler" "-O3" "-Xcompiler" "-ffunction-sections" "-Xcompiler" "-fdata-sections" "-Xcompiler" "-fPIC" "-m64" "-Xcompiler" "-Wall" "-Xcompiler" "-Wextra" "-o" "/tmp/cargo-installLGALqh/release/build/hvm-d9bb437251039338/out/2e40c9e35e9506f4-hvm.o" "-c" "src/hvm.cu" with args nvcc did not execute successfully (status code exit status: 2).
warning: build failed, waiting for other jobs to finish...
error: failed to compile
hvm v2.0.8
, intermediate artifacts can be found at/tmp/cargo-installLGALqh
.To reuse those artifacts with a future compilation, set the environment variable
CARGO_TARGET_DIR
to that path.``Expected behavior
Installation of hvm.
Desktop (please complete the following information):
Additional context
i have no clue what im doing, first time messing with rust and cargo, im sorry if this is a bit of a hassle
(i accidently sent two of the same logs, idk how to remove one sorry)
The text was updated successfully, but these errors were encountered: