4.2.0-42-generic #49-Ubuntu SMP x86_64 GNU/Linux)Crystal 0.19.3 [034e762] (2016-09-30))make crystalOutput:
$ make crystal
g++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc `/usr/bin/llvm-config-3.6 --cxxflags`
cc -fPIC -c -o src/ext/sigfault.o src/ext/sigfault.c
ar -rcs src/ext/libcrystal.a src/ext/sigfault.o
CRYSTAL_CONFIG_PATH=`pwd`/src ./bin/crystal build -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib
L-L-V-M-5858V-alue.o: In function `*LLVM::Value@LLVM::ValueMethods#ordering=<LLVM::AtomicOrdering>:Nil':
LLVM::Value:(.text+0x2b5): undefined reference to `LLVMSetOrdering'
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "/home/luis/code/crystal-lang/crystal/.build/crystal" "${@}" -rdynamic /home/luis/code/crystal-lang/crystal/src/llvm/ext/llvm_ext.o `/usr/bin/llvm-config-3.6 --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre -lm -lgc -lpthread /home/luis/code/crystal-lang/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
Makefile:74: recipe for target '.build/crystal' failed
make: *** [.build/crystal] Error 1
It appears LLVMSetOrdering was introduced in 3.8? If that is the case, an update to the wiki on required LLVM version might be needed:
https://github.com/crystal-lang/crystal/wiki/All-required-libraries#linux
Thank you
Oh, I had LLVM 3.8 installed when I tried this... I should have tried with LLVM 3.6... LLVM 3.6 should be supported. Thank you for reporting this!
Thank you! :heart: :heart: :heart_eyes_cat:
Most helpful comment
Oh, I had LLVM 3.8 installed when I tried this... I should have tried with LLVM 3.6... LLVM 3.6 should be supported. Thank you for reporting this!