Unable to build from fresh clone
jkbbwr opened this issue · 4 comments
Using the suggested compiler and a prebuilt LLVM from the README I am unable to get the project to build on arch linux.
jakob@devtank~> rustc --version
rustc 1.45.0-nightly (769d12eec 2020-05-12)
jakob@devtank~> cmake --version
cmake version 3.18.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
jakob@devtank~> ninja --version
1.10.1
clang+llvm-10.0.0-x86_64-linux-gnu.tar.gz
jakob@devtank~/t/lumen (develop)> git log
commit bf01ff4cd89c063970f7d79d6ff02b06b898b1d2 (HEAD -> develop, origin/develop, origin/HEAD)
Author: Luke Imhoff <Kronic.Deth@gmail.com>
Date: Wed Sep 16 08:38:58 2020 -0500
Integration tests for band/2
Fails with the following error
error: failed to run custom build command for `liblumen_term v0.1.0 (/home/jakob/tmp/lumen/compiler/term)`
Caused by:
process didn't exit successfully: `/home/jakob/tmp/lumen/target/debug/build/liblumen_term-449d18119be0164f/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=/home/jakob/tmp/lumen/compiler/codegen_llvm/lib/lumen/EIR/IR/EIRBase.td
cargo:include=/home/jakob/tmp/lumen/target/debug/build/liblumen_term-643d8149ab1bee99/out/include
cargo:output_dir=/home/jakob/tmp/lumen/target/debug/build/liblumen_term-643d8149ab1bee99/out
Included from /home/jakob/tmp/lumen/compiler/codegen_llvm/lib/lumen/EIR/IR/EIRBase.td:4:
/home/jakob/tmp/lumen/compiler/codegen_llvm/lib/lumen/EIR/IR/EIRDialect.td:12:27: error: Value 'dependentDialects' unknown!
let dependentDialects = ["mlir::LLVM::LLVMDialect", "mlir::StandardOpsDialect"];
^
--- stderr
thread 'main' panicked at '
command failed
build script failed, must exit now', compiler/term/build.rs:83:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [Makefile:31: build-shared] Error 1
I have been trying to build this each week or so and I get a bit further, now I get the following error.
error[E0599]: no method named `reserve_in_place` found for struct `RawVec<T>` in the current scope
--> liblumen_arena/src/arena.rs:183:39
|
183 | if last_chunk.storage.reserve_in_place(currently_used_cap, n) {
| ^^^^^^^^^^^^^^^^ method not found in `RawVec<T>`
error[E0599]: no method named `reserve_in_place` found for struct `RawVec<u8>` in the current scope
--> liblumen_arena/src/arena.rs:322:22
|
322 | .reserve_in_place(used_bytes, needed_bytes)
| ^^^^^^^^^^^^^^^^ method not found in `RawVec<u8>`
error: aborting due to 2 previous errors
Discussed on Dec 9 standup. The incorrect nightly was used. If the 2019-05-13 nightly is used this should be resolved. Please let us know if this is not the case.
I'm getting this same reserve_in_place
error with the 2019-05-13 nightly. I'm on a new MacBook Pro with M1 chip, running in Rosetta. I'll hang tight and see if things start working after things pick up this year, but thought I'd comment in case it is helpful to anyone.
@justincjohnson we discussed M1 on the Dec 9 standup. If memory serves, there will need to be a build that supports ARM. However, nobody on the team has an M1 chip to test against and I don't believe there are any available ARM CI options yet.