Closed Nicolab closed 3 years ago
Hey @Nicolab, thanks for reporting!
I think that the issue is that the ./bin
folder does not exist, you'll have to mkdir bin
it (it happens when specifying an output path with in an non-existing folder when compiling a crystal program).
I'll add a line in the readme!
Indeed, thanks @elbywan
Now I have this error:
crystal build ./src/crystalline.cr -o ./bin/crystalline --release --no-debug --progress -Dpreview_mt
/usr/share/crystal/src/llvm/ext/llvm_ext.o : Dans la fonction « LLVMExtDIBuilderCreateCompileUnit » :
llvm_ext.cc:(.text+0x3de) : référence indéfinie vers « llvm::DIBuilder::createCompileUnit(unsigned int, llvm::DIFile*, llvm::StringRef, bool, llvm::StringRef, unsigned int, llvm::StringRef, llvm::DICompileUnit::DebugEmissionKind, unsigned long, bool, bool, llvm::DICompileUnit::DebugNameTableKind, bool) »
/usr/share/crystal/src/llvm/ext/llvm_ext.o : Dans la fonction « LLVMExtWriteBitcodeWithSummaryToFile » :
llvm_ext.cc:(.text+0x1f85) : référence indéfinie vers « llvm::buildModuleSummaryIndex(llvm::Module const&, std::function<llvm::BlockFrequencyInfo* (llvm::Function const&)>, llvm::ProfileSummaryInfo*) »
/usr/share/crystal/src/llvm/ext/llvm_ext.o : Dans la fonction « llvm::MetadataTracking::track(llvm::Metadata*&) » :
llvm_ext.cc:(.text._ZN4llvm16MetadataTracking5trackERPNS_8MetadataE[_ZN4llvm16MetadataTracking5trackERPNS_8MetadataE]+0x42) : référence indéfinie vers « llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>) »
/usr/share/crystal/src/llvm/ext/llvm_ext.o : Dans la fonction « llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateAtomicCmpXchg(llvm::Value*, llvm::Value*, llvm::Value*, llvm::AtomicOrdering, llvm::AtomicOrdering, unsigned char) » :
llvm_ext.cc:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE19CreateAtomicCmpXchgEPNS_5ValueES5_S5_NS_14AtomicOrderingES6_h[_ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE19CreateAtomicCmpXchgEPNS_5ValueES5_S5_NS_14AtomicOrderingES6_h]+0x7d) : référence indéfinie vers « llvm::AtomicCmpXchgInst::AtomicCmpXchgInst(llvm::Value*, llvm::Value*, llvm::Value*, llvm::AtomicOrdering, llvm::AtomicOrdering, unsigned char, llvm::Instruction*) »
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o /home/nico/tmp/crystalline/bin/crystalline -rdynamic -L/usr/bin/../lib/crystal/lib -lyaml -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` /usr/share/crystal/src/llvm/ext/llvm_ext.o `"/usr/bin/llvm-config-11" --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent_pthreads -levent -levent -lrt -ldl`
Maybe I should compile Crystalline with LLVM 8?
Maybe I should compile Crystalline with LLVM 8?
Yes I think this should be safer, I guess the crystal compiler is not compatible with llvm 11 yet.
Ok thanks. Official LLVM install script support v9 and +. I have tested with LLVM 9 but I have some errors. I will test again with the next version of Crystal.
@Nicolab A linux binary is now available if you want to give it shot 😉.
I've already given you a feedback on Gitter but to avoid leaving this issue unanswered. It works well now, thanks @elbywan :)
Hello,
Thanks for your hard work.
I try to install Crystalline on Ubuntu 18.04 (llvm 11) and I have this error:
My full install is:
An idea?