[LLVMdev] Problem with stock llvmc configuration for C

Bram Adams bram.adams at ugent.be
Sun Aug 13 12:18:20 PDT 2006


Hi,

Apparently there are two bugs in tools/llvmc/c:

/.../llvm/tools/llvmc/c:12: Error: Invalid top level configuration item
/.../llvm/tools/llvmc/c:28: Error: Expecting a program name
/.../llvm/tools/llvmc/c had 2 errors. Terminating.

The first error relates to the following line(s):

   lang.libs=%llvmgccdir%/lib %llvmgccdir%/lib \
     %llvmgccdir%/lib/gcc/%llvmgccarch%

... the other one to:

   translator.command=%llvmcc1% -quiet %in% -o %out% \
   ...

Apparently, %llvmgccdir% and %llvmcc1% are not recognized as a useful  
variable by the llvmc configuration parser. I found out in tools/ 
llvmc/Configuration.cpp that two other library-related variables  
exist, notably %libdir% and %libs%, but it's not clear what they do.

Currently, I tried to solve the problems like this:

lang.libs=%libdir%
#this does not work: lang.libs=%libdir% %libs%

... and:

   translator.command=llvm-gcc -quiet %in% -o %out% \
   ...

Only the solution to the second problem really seems to work, the  
other one is accepted by llvmc, but I also get:

/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
llvmc: Action failed

How can this library problem be solved?

Kind regards,

Bram Adams
GH-SEL, INTEC, Ghent University (Belgium)



More information about the llvm-dev mailing list