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

Prebuilt LLVM folder not existing anymore #102

Open
locadani opened this issue Feb 16, 2023 · 2 comments
Open

Prebuilt LLVM folder not existing anymore #102

locadani opened this issue Feb 16, 2023 · 2 comments

Comments

@locadani
Copy link

locadani commented Feb 16, 2023

I am experiencing some problems running the example program and after some time I think I figured out why. I also saw similar issues that might be solved after solving this problem. The folder pointed to by this variable doesn't exists.

static PREBUILT_LLVM_URL: &str =

Any ideas on how to fix this?

@3togo
Copy link

3togo commented Apr 2, 2023

Did you solve the problem?
I get the following error

  --- stderr
  thread 'main' panicked at 'Unsupported target with no matching prebuilt LLVM: `x86_64-unknown-linux-gnu`, install LLVM and set LLVM_CONFIG', crates/rustc_codegen_nvvm/build.rs:58:14
  stack backtrace:

@locadani
Copy link
Author

locadani commented Apr 6, 2023

No unfortunately, but I did some steps forward. You need to download the prebuilt llvm from here (link), then navigate to downloaded file and make it executable, finally set that as env variable LLVM_CONFIG. Doing this i get some linking problems:
/usr/bin/ld: cannot find -lz: No such file or directory
/usr/bin/ld: cannot find -ltinfo: No such file or directory
collect2: error: ld returned 1 exit status

I solved them running
sudo apt-get install libtinfo-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libxml2-dev
But now I have other errors from the cuda/cpu/add crate, that I am trying to solve

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

2 participants