[LLVMdev] llvm-g++ does not work!

Reza Sheykhi hajishey at msu.edu
Tue Oct 2 10:37:12 PDT 2012


Hi,

I am using PinaVM which is a prototype of a SystemC front-end based on  
"LLVM". The only version that it works with is 2.8. Also to test  
PinaVM, we need llvm-g++ (I think clang does not work). However, when  
I want to run an example, i get the following error, which i think is  
related to llvm-g++:


reza at RezaUbuntu:~/pinavm-pinavm/systemc-examples/jerome-chain$ make promela
llvm-g++ -fno-inline-functions -I../../external/systemc-2.2.0/src/  
-I../../external/TLM-2009-07-15/include/tlm -I../../external/basic  
-emit-llvm -c main.cpp -o main.bc
Potential incompatible plugin version. GCC: 4.5.3. Expected: 4.5.4
Defines 'dragonegg_disable_version_check' as env variable to remove  
this warning
Please note that unexpected errors might occur.
llvm-link main.bc -o main.linked.bc
llvm-link: main.bc:1:1: error: expected top-level entity
ELF??4(VS???????????????????????
^
llvm-link: error loading file 'main.bc'
make: *** [main.linked.bc] Error 1


It shows the main.bc is not a bitcode file. Most likely the llvm-g++  
is broken. Would you please let me know your opinion about it, and  
tell me how i can fix it?

Thank you,
Reza




More information about the llvm-dev mailing list