Closed ManuelMourato25 closed 5 years ago
You need LLVM 6.0.
try the following:
$ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - $ sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main" $ sudo apt update && sudo apt install clang-6.0 $ sudo ln -s /usr/bin/llvm-config-6.0 /usr/local/bin/llvm-config $ sudo apt-get install -y zlib1g-dev
It was indeed the llvm version. Thank you.
When I try to run cargo build --release in my Ubuntu 18.04 (bionic) machine, it fails with the following error:
I tried adding
-C relocation-model=pic
to the command above, but it did not work.Here are some specifications:
I am missing something, or is this a bug? Thank you.