Stream: t-compiler/help

Topic: fatal error: llvm-c/BitReader.h: No such file or directory


Joshua Nelson (Nov 26 2019 at 01:19, on Zulip):

Hi all,
I'm trying to get started contributing to the compile for https://github.com/rust-lang/rust/issues/66758. I ran ./x.py test src/test/ui/consts --stage 1 about an hour ago and that worked fine (although it took a while ^^). However, since then I updated nightly and I'm now getting compile errors when building stage 1:

cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:6:0:
cargo:warning=../rustllvm/rustllvm.h:1:10: fatal error: llvm-c/BitReader.h: No such file or directory
cargo:warning= #include "llvm-c/BitReader.h"
cargo:warning=          ^~~~~~~~~~~~~~~~~~~~

What am I doing wrong?

Full error: https://pastebin.com/pbnpgmK9

centril (Nov 26 2019 at 15:31, on Zulip):

@Joshua Nelson that seems bad... not sure why updating nightly has any effect tho

centril (Nov 26 2019 at 15:31, on Zulip):

try deleting your target and build directories

centril (Nov 26 2019 at 15:31, on Zulip):

(you'll need to rebuild llvm)

Joshua Nelson (Nov 26 2019 at 15:41, on Zulip):

Rebuilding now, I'll let you know how it goes.

Joshua Nelson (Nov 26 2019 at 17:09, on Zulip):

That fixed it :) No idea what went wrong but it's working now, thanks for the help!

centril (Nov 26 2019 at 17:13, on Zulip):

:slight_smile:

Last update: Dec 12 2019 at 00:55UTC