Bug#484153: llvm-config puts junk in options
hendrik at topoi.pooq.com
hendrik at topoi.pooq.com
Mon Jun 2 18:20:18 UTC 2008
Package: llvm-dev
Version: 2.2-7
I took a two-line program (the first two lines of the LLVM tutorial example:
hendrik at lovesong:~/dv/lang/hlvm$ cat broken.cpp
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
hendrik at lovesong:~/dv/lang/hlvm$
and tried to compile it:
hendrik at lovesong:~/dv/lang/hlvm$ g++ -o broken.o `llvm-config --cxxflags` broken.cpp
g++: (Debian: No such file or directory
g++: 2.2-7): No such file or directory
hendrik at lovesong:~/dv/lang/hlvm$
I execute the llvm-config script by itself, and see what has happened:
hendrik at lovesong:~/dv/lang/hlvm$ llvm-config --cxxflags
-I/usr/include/llvm -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2 -fomit-frame-pointer -DLLVM_DEBIAN_INFO= (Debian 2.2-7) -Woverloaded-virtual
hendrik at lovesong:~/dv/lang/hlvm$
There's junk in the options, to wit,
-DLLVM_DEBIAN_INFO= (Debian 2.2-7)
Presumably there should be quotation marks in there.
-- hendrik
More information about the Pkg-llvm-team
mailing list