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

Linux not supported #77

Open
jafioti opened this issue Jul 16, 2022 · 3 comments
Open

Linux not supported #77

jafioti opened this issue Jul 16, 2022 · 3 comments

Comments

@jafioti
Copy link

jafioti commented Jul 16, 2022

I was trying to build the add example, and since the guide makes no mention that linux isn't supported I assumed it was. When I ran the build script, I get Unsupported target with no matching prebuilt LLVM: x86_64-unknown-linux-gnu, install LLVM and set LLVM_CONFIG.

I went through the build script and saw this:

fn target_to_llvm_prebuilt(target: &str) -> String {
    println!("Target: {}", target);
    let base = match target {
        "x86_64-pc-windows-msvc" => "windows-x86_64",
        // NOTE(RDambrosio016): currently disabled because of weird issues with segfaults and building the C++ shim
        //"x86_64-unknown-linux-gnu" => "linux-x86_64",
        _ => panic!("Unsupported target with no matching prebuilt LLVM: `{}`, install LLVM and set LLVM_CONFIG", target)
    };
    format!("{}.tar.xz", base)
}

So is there a plan to re-support linux?

@nhemsley
Copy link

This is only downloading the prebuilt version of LLVM, set LLVM_CONFIG to where your llvm-config binary is. Note that this should be an absolute path, not relative (like ../../path/to/llvm)

@Jerryy959
Copy link
Contributor

Checkout this pr: #143

@gastrodon
Copy link

I'm getting this issue to. When I export LLVM_CONFIG=/usr/bin/llvm-config I get the same issue.

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