Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Ubuntu 19.04 #393

Closed
elliottslaughter opened this issue Sep 3, 2019 · 0 comments · Fixed by #412

Comments

@elliottslaughter
Copy link
Collaborator

commented Sep 3, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.