GithubHelp home page GithubHelp logo

Comments (4)

victorygogogo avatar victorygogogo commented on July 27, 2024

if use "DLLVM_INSTALL_UTILS=ON" will cause this problem.

from mlir-hlo.

joker-eph avatar joker-eph commented on July 27, 2024

The issue seems like mixing gcc with the lld linker. Which version of gcc are you using? (/usr/bin/cc --version)
Disabling -DLLVM_ENABLE_LLD=ON or building with clang (or a more recent gcc) should work I think?

from mlir-hlo.

victorygogogo avatar victorygogogo commented on July 27, 2024

gcc version (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0 ,
Disabling -DLLVM_ENABLE_LLD=ON build is ok when use "build_tools/build_mlir.sh ${PWD}/llvm-project/ ${PWD}/llvm-build" this command
$ mkdir build && cd build
$ cmake .. -GNinja
-DLLVM_ENABLE_LLD=ON
-DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_ASSERTIONS=On
-DMLIR_DIR=${PWD}/../llvm-build/lib/cmake/mlir
$ ninja check-mlir-hlo
use the above command, set -DLLVM_ENABLE_LLD=OFF \ cause a link problem , so set -DLLVM_ENABLE_LLD=ON build is ok, is there any problem build like this?

and how to build wth clang ,can you tell me ?

from mlir-hlo.

joker-eph avatar joker-eph commented on July 27, 2024

-DCMAKE_C_COMPILER=<path_to_clang> -DCMAKE_CXX_COMPILER=<path_to_clang++>

from mlir-hlo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.