Closed iambudi closed 4 years ago
I forgot to mention, i used docker file version latest and 0.31.1
When compiling the compiler? LLVM_CONFIG
has to be exported, export LLVM_CONFIG=llvm8-config
.
Will be fixed with https://github.com/crystal-lang/crystal/pull/8605
I will switch to LLVM9, which seems to be supported in Crystal and has the llvm-config
command.
Hi @j8r,
The actual version of llvm
used in crystal
is 5.0.2, even llvm9
package is installed
Sending build context to Docker daemon 7.168kB
Step 1/1 : FROM jrei/crystal-alpine:0.31.1
---> 5ff611c7a7bd
Successfully built 5ff611c7a7bd
Successfully tagged test:latest
/ # crystal -v
Crystal 0.31.1 (2019-12-04)
LLVM: 5.0.2
Default target: x86_64-alpine-linux-musl
Yes, it's normal, see https://gitlab.alpinelinux.org/alpine/aports/issues/11017.
What crystal --version
show is the LLVM version used to compile the compiler.
When your Crystal program is compiled, it will use LLVM9.
The main use case was to have llvm-config
.
I can optimize the image to use LLVM5, and remove LLVM9, to avoid having both llvm5-libs
and llvm9-libs
versions.
Got this error when compiling.