Git Product home page Git Product logo

Comments (4)

travitch avatar travitch commented on September 2, 2024 1

Have you set the LLVM_COMPILER environment variable? What do you see in config.log?

from whole-program-llvm.

pfsun avatar pfsun commented on September 2, 2024

Yea. I set LLVM_COMPILER. The config.log is as follows:
configure:3434: wllvm --version >&5
CRITICAL:LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
Traceback (most recent call last):
File "/home/sun/project/whole-program-llvm/wllvm", line 18, in
builder = getBuilder(cmd, False)
File "/home/sun/project/whole-program-llvm/driver/utils.py", line 645, in getBuilder
raise Exception(errorMsg)
Exception: LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
configure:3445: $? = 1
configure:3434: wllvm -v >&5
CRITICAL:LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
Traceback (most recent call last):
File "/home/sun/project/whole-program-llvm/wllvm", line 18, in
builder = getBuilder(cmd, False)
File "/home/sun/project/whole-program-llvm/driver/utils.py", line 645, in getBuilder
raise Exception(errorMsg)
Exception: LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
configure:3445: $? = 1
configure:3434: wllvm -V >&5
CRITICAL:LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
Traceback (most recent call last):
File "/home/sun/project/whole-program-llvm/wllvm", line 18, in
builder = getBuilder(cmd, False)
File "/home/sun/project/whole-program-llvm/driver/utils.py", line 645, in getBuilder
raise Exception(errorMsg)
Exception: LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
configure:3445: $? = 1
configure:3434: wllvm -qversion >&5
CRITICAL:LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
Traceback (most recent call last):
File "/home/sun/project/whole-program-llvm/wllvm", line 18, in
builder = getBuilder(cmd, False)
File "/home/sun/project/whole-program-llvm/driver/utils.py", line 645, in getBuilder
raise Exception(errorMsg)
Exception: LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
configure:3445: $? = 1
configure:3465: checking whether the C compiler works
configure:3487: wllvm conftest.c >&5
CRITICAL:LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
Traceback (most recent call last):
File "/home/sun/project/whole-program-llvm/wllvm", line 18, in
builder = getBuilder(cmd, False)
File "/home/sun/project/whole-program-llvm/driver/utils.py", line 645, in getBuilder
raise Exception(errorMsg)
Exception: LLVM_COMPILER=/home/sun/project/LLVM/build/bin/clang : Invalid compiler type
configure:3491: $? = 1
configure:3529: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "pkg-config"
| #define PACKAGE_TARNAME "pkg-config"
| #define PACKAGE_VERSION "0.29.1"
| #define PACKAGE_STRING "pkg-config 0.29.1"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config"
| #define PACKAGE_URL ""
| #define PACKAGE "pkg-config"
| #define VERSION "0.29.1"
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3534: error: in /home/sun/project/whole-program-llvm/test/pkg-config-0.29.1': configure:3536: error: C compiler cannot create executables Seeconfig.log' for more details

from whole-program-llvm.

travitch avatar travitch commented on September 2, 2024

You need to set LLVM_COMPILER to the string clang or dragonegg, not the path to the executable.

from whole-program-llvm.

pfsun avatar pfsun commented on September 2, 2024

Got it. I set LLVM_COMPILER to the string clang. Now I can configure correctly without the same error. Thanks a lot :-)

from whole-program-llvm.

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.