Giter Club home page Giter Club logo

Comments (13)

Wilfred avatar Wilfred commented on June 16, 2024

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.

Ning1253 avatar Ning1253 commented on June 16, 2024

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.

log.txt

from bfc.

Wilfred avatar Wilfred commented on June 16, 2024

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.

Ning1253 avatar Ning1253 commented on June 16, 2024

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.

folder

from bfc.

Lxixnxuxs avatar Lxixnxuxs commented on June 16, 2024

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.

Ning1253 avatar Ning1253 commented on June 16, 2024

from bfc.

Ning1253 avatar Ning1253 commented on June 16, 2024

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.

Lxixnxuxs avatar Lxixnxuxs commented on June 16, 2024

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:

  1. Install Ubuntu 18.04 LTS Subsystem from Windows Store
  2. 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
  3. Extract it(with tar -xf <pathtotarget>.tar.xz) and add thebinfolder, inside the extracted directory, permanently to your Path enviroment variable (https://opensource.com/article/17/6/set-path-linux)
  4. Install Rust on your Linux Subsystem with curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  5. Restart the Ubuntu-Shell and check if you've done all right by executing cargo and llvm-config. Both commands should produce an output different to command not found
  6. Run sudo apt-get update && sudo apt install build-essential zlib1g-dev libtinfo-dev libxml2-dev
  7. Clone this repo and compile it as described in Readme (cargo build --release)

from bfc.

Ning1253 avatar Ning1253 commented on June 16, 2024

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.

Ning1253 avatar Ning1253 commented on June 16, 2024

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.

Ning1253 avatar Ning1253 commented on June 16, 2024

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.

Lxixnxuxs avatar Lxixnxuxs commented on June 16, 2024

You're welcome.
@Wilfred I think this issue can be closed now.

from bfc.

Wilfred avatar Wilfred commented on June 16, 2024

@Lxixnxuxs I've pushed 93f58fe which adds support for LLVM 10 :)

from bfc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.