I3oris / ic

REPL Interface wrapping Crystal Interpreter (crystal-i).
MIT License
48 stars 2 forks source link

build failed on 1.8.0 #15

Closed zw963 closed 1 year ago

zw963 commented 1 year ago

Please check following error message.

 ╰─ $ make
mkdir -p bin
CRYSTAL_CONFIG_PATH='$ORIGIN/../share/crystal-ic/src' CRYSTAL_PATH=lib:/home/zw963/Crystal/crystal-lang/ic/share/crystal-ic/src crystal build -Dpreview_mt --progress src/ic.cr -o bin/ic
Module validation failed: Intrinsic name not mangled correctly for type arguments! Should be: llvm.memset.p0.i64
ptr @llvm.memset.p0i8.i64
 (Exception)
  from /home/zw963/Crystal/crystal-lang/crystal/src/llvm/module.cr:72:9 in 'codegen'
  from /home/zw963/Crystal/crystal-lang/crystal/src/compiler/crystal/compiler.cr:162:16 in 'compile'
  from /home/zw963/Crystal/crystal-lang/crystal/src/compiler/crystal/command.cr:338:3 in 'run'
  from /home/zw963/Crystal/crystal-lang/crystal/src/compiler/crystal/command.cr:51:5 in '__crystal_main'
  from /home/zw963/Crystal/crystal-lang/crystal/src/crystal/main.cr:115:5 in 'main'
  from /usr/lib/libc.so.6 in '??'
  from /usr/lib/libc.so.6 in '__libc_start_main'
  from crystal in '_start'
  from ???
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:30: bin/ic] Error 1
 ╰─ $ cr version
Crystal 1.8.0 [14bfa992e] (2023-04-14)

LLVM: 15.0.7
Default target: x86_64-pc-linux-gnu
I3oris commented 1 year ago

Hello @zw963

Thanks for raising the issue!

I reproduced the error and it's because IC still use the interpreter v1.7.3 and it's not compatible anymore with 1.8.0. I fixed the issue in a new version of IC: using the interpreter v1.8.0!

zw963 commented 1 year ago

It works, thank you, i love ic, because run it so quickly than Crystal i.