[arch-dev-public] LLVM 6.0 rebuild

Anatol Pomozov anatol.pomozov at gmail.com
Fri Mar 16 15:29:09 UTC 2018

On Fri, Mar 16, 2018 at 6:20 AM, Arch Website Notification
<nobody at archlinux.org> wrote:
> The todo list "LLVM 6.0" has had the following packages added to it for which you are a maintainer:
> * community/crystal (x86_64) - https://www.archlinux.org/packages/community/x86_64/crystal/
> Todo list information:
> Name: LLVM 6.0
> URL: https://www.archlinux.org/todo/llvm-60/
> Creator: Evangelos Foutras
> Description:
> libLLVM-5.0.so -> libLLVM-6.0.so
> libclang.so.5 -> libclang.so.6
> In addition to the above soname changes, our clang package no longer ships
> static libraries. Instead, those are built as individual shared libraries
> (using CMake's BUILD_SHARED_LIBS flag).
> ** I'll add LLVM 5 packages once it's clear they are needed for software that
> hasn't been ported to LLVM 6 yet. Feel free to ping me on IRC for this. **

Hello Evangelos

I tried to rebuilt Crystal package with LLVM and hit a compilation issue

./bin/crystal build --release --no-debug -D i_know_what_im_doing -o
.build/crystal src/compiler/crystal.cr -D without_openssl -D
_main.o: In function
main_module:(.text+0x52dc08): undefined reference to `LLVMInitializeInstCombine'
collect2: error: ld returned 1 exit status

That described here
https://github.com/crystal-lang/crystal/issues/5556 and it turns out
to be a LLVM bug https://bugs.llvm.org/show_bug.cgi?id=35947.

This LLVM bug is fixed in HEAD (https://reviews.llvm.org/D44140) and
should be released in 6.0.1. Or maybe we can pull it to the Arch

More information about the arch-dev-public mailing list