Comments (13)
I can't reproduce this with 1.46.0 or nightly "rustc 1.48.0-nightly (623fb90b5 2020-09-26)". What version did you build with?
from bfc.
Ok so you talking about version made me think about trying to update cargo, since I had briefly seen the command somewhere whilst trying to search up how to fix the error. I did so, and to my surprise, the error went away!
However now it shows another error, which this time I could not fix: "error: failed to run custom build command for llvm-sys v100.2.0
", llvm-sys v100.2.0 being the new version after it was updated.
PS - The versions I am using: Rust 1.46.0, cargo is up to date, LLVM 8.0.0 .
PPS - Damn it's really cool that you actually replied!! Solid commitment to a project!
PPPS - I attatched the output from the command, since I can't make heads or tails of it - the llvm-config file which it says is missing IS actually missing, but I couldn't find online anywhere to download this file.
from bfc.
llvm-config is a command that's part of LLVM itself. llvm-sys is just a wrapper around the LLVM version installed on your system.
Do you have LLVM installed? What is the contents of C:\Program Files\LLVM\bin\
?
from bfc.
Well it has a bunch of files, starting with "api-ms-win-core..." and going to the .exe s. However there is no llvm-config in that folder, nor in any other folder in that directory -
it has a bunch of others, but not that one.
from bfc.
Hi @Ning1253,
regarding your question, I assume that you are using Windows and tried to install LLVM-8 via the Installer Executable. In Fact, this is the problem, because it wont install llvm-config.exe
(as explained here: https://stackoverflow.com/questions/17096804/where-is-llvm-config-in-windows). You now have two options:
-
Try to build LLVM 8 from source, which is an incredible mess (I tried it on two different systems and recieved tons of compilation errors, as described here: Playermet/codegoogle.tart#35. I experienced that this only affects LLVM version 8, whereby version > 8 compiled with no errors. @Wilfred: It would be great to make the bfc run with llvm-version > 8, in order to bypass this problem)
-
Install a Ubuntu Subsystem on Windows and follow the LLVM build guide in the Readme (as I did)
from bfc.
from bfc.
Update: I've installed the ubuntu subsystem, and installed rustup and llvm, as well as llvmenv, but now I get an error which I seem to remember having gotten before, saying that "LLVM_SYS_100_PREFIX" does not point to a valid installation, or something along those lines. I seem to remember fixing this, but I can't remember how...
from bfc.
This Error-Message basically says that either your LLVM installation failed or that you haven't set up your enviroment variables properly.
This is a detailed instruction on how to compile the bfc on a Linux Subsystem:
- Install Ubuntu 18.04 LTS Subsystem from Windows Store
- Download the LLVM Prebuilt binary for Ubuntu 18.04 (https://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz) and copy this file to your Ubuntu Filesystem
- Extract it(with
tar -xf <pathtotarget>.tar.xz
) and add thebin
folder, inside the extracted directory, permanently to your Path enviroment variable (https://opensource.com/article/17/6/set-path-linux) - Install Rust on your Linux Subsystem with
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Restart the Ubuntu-Shell and check if you've done all right by executing
cargo
andllvm-config
. Both commands should produce an output different tocommand not found
- Run
sudo apt-get update && sudo apt install build-essential zlib1g-dev libtinfo-dev libxml2-dev
- Clone this repo and compile it as described in Readme (
cargo build --release
)
from bfc.
omg thank you so much for this!!! I should be free to compile it this afternoon, thank you so much! This is so much clearer than anything else I could find online, thanks a lot!!
from bfc.
Update: sorry to cause you so much trouble, but now I am getting the error error: could not compile 'llvm-sys'.
. The problem is that once again, I can't find any solution to this online - it seems to be a problem with the path again since error: No suitable version of LLVM was found system-wide or pointed to by LLVM_SYS_100_PREFIX.
is once again showing. However, just in case I even locally set path as well as set it permamently - llvm-config works when I type it in, giving me the command options, so that works. Cargo also works, and llvm-config --version return LLVM 8.0.0 .
So once again I'm not really sure what to do from here.
from bfc.
Nevermind, I got it to work, time to have fun!! Thank you so much for the help, it's really nice of you to put in so much effort for this!
from bfc.
You're welcome.
@Wilfred I think this issue can be closed now.
from bfc.
@Lxixnxuxs I've pushed 93f58fe which adds support for LLVM 10 :)
from bfc.
Related Issues (20)
- Beautiful Project! HOT 1
- Add REPL
- Max cell index HOT 1
- Missing License HOT 1
- Warnings sent to stdout
- Can this become a library on crates.io? HOT 3
- strip behave different for linux and mac
- Possible additions HOT 1
- Linker fails HOT 3
- Compilation time is exponential wrt. source size HOT 3
- "Pass is not initialized" on LLVM 8 HOT 10
- bfc hangs due to compile-time evaluation HOT 4
- cannot use `state` because it was mutably borrowed
- error: linking with `cc` failed: exit code: 1 HOT 5
- Take in inputs on multiple lines
- Add license
- Core dump in LLVMBuildCall HOT 2
- Soundness issue in annotate_known_zero
- Mangled output of ANSI escape sequences in v1.11.0 and master branch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bfc.