llvm-kaleidoscope icon indicating copy to clipboard operation
llvm-kaleidoscope copied to clipboard

compile error on ubuntu 20.04

Open weiyshay opened this issue 1 year ago • 0 comments

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

weiyshay avatar Oct 19 '23 07:10 weiyshay