elbywan / crystalline

A Language Server Protocol implementation for Crystal. 🔮
MIT License
436 stars 23 forks source link

0.4 fails to compile #32

Closed sardaukar closed 2 years ago

sardaukar commented 2 years ago

Running Manjaro Linux. Got this when doing shards build crystalline --release --no-debug --progress -Dpreview_m on master:

Resolving dependencies
Fetching https://github.com/hugopl/version_from_shard.git
Fetching https://github.com/spider-gazelle/priority-queue.git
Fetching https://github.com/spider-gazelle/bisect.git
Fetching https://github.com/samueleaton/sentry.git
Installing version_from_shard (1.2.4)
Installing bisect (1.2.1)
Installing priority-queue (1.0.1)
Installing sentry (0.3.2 at cd86128)
Building: crystalline
Error target crystalline failed to compile:     
/usr/bin/ld: cannot find /home/sardaukar/.asdf/installs/crystal/1.2.2/share/crystal/src/llvm/ext/llvm_ext.o: No such file or directory
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o /home/sardaukar/Code/FOREIGN/crystalline/bin/crystalline  -rdynamic -L/home/sardaukar/.asdf/installs/crystal/1.2.2/bin/../lib/crystal -lyaml  /home/sardaukar/.asdf/installs/crystal/1.2.2/share/crystal/src/llvm/ext/llvm_ext.o `"/usr/bin/llvm-config" --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre -lm -lgc -lpthread -levent_pthreads -levent  -levent  -lrt -ldl`
elbywan commented 2 years ago

Hey @sardaukar,

I'm not sure why llvm_ext is not provided by the crystal installation here. You could either use docker to build crystalline or produce the llvm_ext object file manually.

sardaukar commented 2 years ago

Thanks!

mamantoha commented 1 year ago

https://github.com/crystal-lang/crystal/issues/12896