llvm-kaleidoscope
llvm-kaleidoscope copied to clipboard
compile error on ubuntu 20.04
Hi, Thanks for the examples and it is very helpful.
I got a compile error that tells llvm-g++ not exist. I tried to install llvm 14 and 15, and manully compile latest llvm-project, but it comes up still, what am I missing?
llvm-kaleidoscope# make
llvm-g++ -stdlib=libc++ -std=c++14 -g -O3 -I llvm/include -I llvm/build/include -I ./ `llvm-config --cxxflags --ldflags --system-libs --libs all` -c ast/BinaryExprAST.cpp -o ast/BinaryExprAST.o
/bin/sh: 1: llvm-g++: not found
make: *** [Makefile:18: ast/BinaryExprAST.o] Error 127
command to compile llvm-project.
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_BUILD_EXAMPLES=ON -DLLVM_TARGETS_TO_BUILD="Native;NVPTX;AMDGPU" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
cmake --build . --target check-mlir