# 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).
Build fails with:
Repro steps:
Get an Ubuntu 19.04 shell via Docker:
Then run:
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.