Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error on ubuntu 20.04 #6

Open
weiyshay opened this issue Oct 19, 2023 · 0 comments
Open

compile error on ubuntu 20.04 #6

weiyshay opened this issue Oct 19, 2023 · 0 comments

Comments

@weiyshay
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant