[llvm-dev] C compiler cannot create executables
    Awanish via llvm-dev 
    llvm-dev at lists.llvm.org
       
    Sun Sep 18 03:54:50 PDT 2016
    
    
  
I am trying to build httpd.bc and for this I am configuring as
./configure --disable-shared  CC="_/*llvm-gcc -flto -use-gold-plugin 
-Wl,-plugin-opt=also-emit-llvm*/_" CFLAGS="-g" RANLIB="ar --plugin 
/home/awanish/llvm-2.9/llvm-gcc-4.2-2.9.source/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/LLVMgold.so 
-s" AR_FLAGS="--plugin 
/home/awanish/llvm-2.9/llvm-gcc-4.2-2.9.source/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/LLVMgold.so 
-cru"
but I am getting an error which states that
checking for gcc... llvm-gcc -flto -use-gold-plugin 
-Wl,-plugin-opt=also-emit-llvm
checking whether the C compiler works... no
configure: error: in 
`/home/awanish/PHD/benchmark/httpd-2.2.16/myBuild/srclib/apr':
configure: error: C compiler cannot create executables
I got reference for configuring like this from 
"https://dslabredmine.epfl.ch/embedded/cloud9/user/CompilingLLVM.html".
Can anyone please tell me where I am doing wrong and what is correct 
procedure for generating .bc for for httpd which can be run on klee?
-- 
Thanks and Regards
Awanish Pandey
PhD, CSE
IIT Kanpur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160918/15f2b37f/attachment.html>
    
    
More information about the llvm-dev
mailing list