Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

compile error on ubuntu 20.04 #6

@weiyshay

Description

@weiyshay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions