FS#14487 - [llvm] llvm-config outputs incorrect file paths

Attached to Project: Community Packages
Opened by Mikko Sysikaski (Sisu) - Tuesday, 28 April 2009, 17:15 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 06 July 2009, 00:55 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Geoffroy Carrier (gcarrier)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The llvm-config utility in package llvm displays file names as if all llvm files where installed to /usr/lib while the files are actually located in /usr/lib/llvm.


Additional info:
* package version(s)
llvm-2.5-2

* config and/or log files etc.


Steps to reproduce:
1. run: llvm-config --libs jit

This outputs:
/usr/lib/LLVMX86AsmPrinter.o /usr/lib/LLVMX86CodeGen.o -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMCore -lLLVMSupport -lLLVMSystem


This command prints filename /usr/lib/LLVMExecutionEngine.o even though LLVMExecutionEngine.o is located in /usr/lib/llvm/ .
The same problem seems to occur for all other files too when using llvm-config.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 06 July 2009, 00:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in llvm-2.5-3.
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 28 April 2009, 21:33 GMT
Just add this to end of PKGBUILD
sed -i 's:\(ABS_RUN_DIR/lib\):\1/llvm:' $pkgdir/usr/bin/llvm-config || return 1

Also fix all sed lines sintax: "sed 'xyz' -i files" -> "sed -i 'xyz' files"
Comment by Mathieu Boespflug (mboes) - Tuesday, 30 June 2009, 19:30 GMT
Hi. This bug is biting me too. djgera's patch works for me. Any reason this bug can't be closed?

Loading...