terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.72k stars 201 forks source link

Build failure on Ubuntu 19.04 #393

Closed elliottslaughter closed 5 years ago

elliottslaughter commented 5 years ago

Build fails with:

# extract needed LLVM objects based on a dummy linker invocation
< build/llvm_objects/llvm_list build/bin/luajit-2.0.5 src/unpacklibraries.lua build/llvm_objects
build/bin/luajit-2.0.5: src/unpacklibraries.lua:20: attempt to index local 'archivepath' (a nil value)
stack traceback:
    src/unpacklibraries.lua:20: in main chunk
    [C]: at 0x55e5b2b97040
make: *** [Makefile:223: build/llvm_objects/llvm_list] Error 1

Repro steps:

Get an Ubuntu 19.04 shell via Docker:

docker run -ti ubuntu:19.04

Then run:

apt install build-essential git cmake wget llvm-6.0-dev libclang-6.0-dev clang-6.0
git clone https://github.com/zdevito/terra.git
cd terra
LLVM_CONFIG=llvm-config-6.0 CLANG=clang-6.0 make

Build works ok with CMake, though you do additionally need to install libedit-dev zlib1g-dev (which again for some reason do not seem to get pulled along with the LLVM dependency).

Perhaps another reason to do #383.