Got this when rebuilding crystal to run specs
crystal on test/termux
❯ make crystal
Using /data/data/com.termux/files/usr/bin/llvm-config [version=13.0.0]
g++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/data/data/com.termux/files/usr/include -std=c++14 -fno-exceptions -fno-rtti -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
CRYSTAL_CONFIG_BUILD_COMMIT="135a809" CRYSTAL_CONFIG_PATH='$ORIGIN/../share/crystal/src' SOURCE_DATE_EPOCH="1638624162" CRYSTAL_CONFIG_LIBRARY_PATH='$ORIGIN/../lib/crystal' ./bin/crystal build -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib
Module validation failed: Intrinsic name not mangled correctly for type arguments! Should be: llvm.powi.f64.i32
double (double, i32)* @llvm.powi.f64
(Exception)
from /root/crystal/src/llvm/module.cr:100:9 in 'verify'
from /root/crystal/src/compiler/crystal/codegen/codegen.cr:369:9 in 'finish'
from /root/crystal/src/compiler/crystal/codegen/codegen.cr:71:7 in 'codegen'
from /root/crystal/src/compiler/crystal/codegen/codegen.cr:67:5 in 'codegen:debug:single_module'
from /root/crystal/src/compiler/crystal/progress_tracker.cr:22:7 in 'codegen'
from /root/crystal/src/compiler/crystal/compiler.cr:173:16 in 'compile'
from /root/crystal/src/compiler/crystal/command.cr:296:3 in 'compile'
from /root/crystal/src/compiler/crystal/command.cr:294:5 in 'compile'
from /root/crystal/src/compiler/crystal/command.cr:187:5 in 'build'
from /root/crystal/src/compiler/crystal/command.cr:73:7 in 'run'
from /root/crystal/src/compiler/crystal/command.cr:49:5 in 'run'
from /root/crystal/src/compiler/crystal/command.cr:48:3 in 'run'
from /root/crystal/src/compiler/crystal.cr:11:1 in '__crystal_main'
from /root/crystal/src/crystal/main.cr:110:5 in 'main_user_code'
from /root/crystal/src/crystal/main.cr:96:7 in 'main'
from /root/crystal/src/crystal/main.cr:119:3 in 'main'
from /apex/com.android.runtime/lib64/bionic/libc.so in '__libc_init'
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
make: *** [Makefile:180: .build/crystal] Error 1