Comments (4)
Have you set the LLVM_COMPILER
environment variable? What do you see in config.log?
from whole-program-llvm.
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 See
config.log' for more details
from whole-program-llvm.
You need to set LLVM_COMPILER
to the string clang
or dragonegg
, not the path to the executable.
from whole-program-llvm.
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)
- ./a.out: Symbol `_ZNSt8ios_base4InitD1Ev' causes overflow in R_X86_64_PC32 relocation
- How do I know what flags to use when turning the bitcode back to an executable? HOT 5
- Build error while extracting .bc HOT 8
- Generating bitcode for Tensorflow HOT 1
- How to use afl-clang/afl-clang-fast compiler the whole pregram? HOT 5
- endless loop with syncconfig while building the kernel
- how to get debuglocation HOT 2
- ERROR:WLLVM Failed to execute: ['file', path to file] HOT 3
- Specific version of LLVM unsupported HOT 3
- Problems in compiling HOT 4
- Needs update HOT 7
- How to compile a bc file extracted from wllvm?
- `ccache` detection fails on macOS HOT 3
- Can I use `wllvm` with `afl-clang-fast`? HOT 1
- Trying to get whole program IR for klee-uclibc HOT 16
- Could not find ".llvm_bc" ELF section HOT 1
- How to compile the bc of the entire program into an executable program? HOT 1
- Issues Encountered When Compiling findutils Using wllvm HOT 1
- Compiling `open62541` using `wllvm` fails
- Is ClangBitcodeArgumentListFilter redundant?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whole-program-llvm.