rdp / random-bug-reports

see issues
1 stars 0 forks source link

crystal build make woe #3

Open rdp opened 2 years ago

rdp commented 2 years ago

make Using /usr/bin/llvm-config-6.0 [version=6.0.0] g++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/lib/llvm-6.0/include -std=c++0x -fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O2 -DNDEBUG -fno-exceptions -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS src/llvm/ext/llvm_ext.cc:541:23: warning: ‘llvm::TargetMachine unwrap(LLVMTargetMachineRef)’ defined but not used [-Wunused-function] static TargetMachine unwrap(LLVMTargetMachineRef P) { ^~ CRYSTAL_CONFIG_BUILD_COMMIT="fd84f1a60" CRYSTAL_CONFIG_PATH='$ORIGIN/../share/crystal/src' SOURCE_DATE_EPOCH="1636047083" CRYSTAL_CONFIG_LIBRARY_PATH='$ORIGIN/../lib/crystal' ./bin/crystal build -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib L-L-V-M-5858P-assR-egistry.o: In function initialize_inst_combine': /root/crystal/src/llvm/pass_registry.cr:11: undefined reference toLLVMInitializeInstCombine' collect2: error: ld returned 1 exit status Error: execution of command failed with code: 1: cc "${@}" -o /root/crystal/.build/crystal -rdynamic -L/usr/bin/../lib/crystal /root/crystal/src/llvm/ext/llvm_ext.o"/usr/bin/llvm-config-6.0" --libs --system-libs --ldflags 2> /dev/null-lstdc++ -lpcre -lm -lgc -lpthread -levent -lrt -ldl Makefile:167: recipe for target '.build/crystal' failed make: *** [.build/crystal] Error 1

meant "crystal not compat with llvm 6.0 anymore"