code coverage: llvm-ar: undefined reference to `llvm::raw_fd_ostream::current_pos() const'

Sylvestre Ledru sylvestre at debian.org
Wed Jul 31 07:30:56 PDT 2013


Hello,

The code coverage report [1] has not been updated for a couple of week.

It is due to a build failure on the link of llvm-ar.

/tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/build-llvm/tools/llvm-ar/Release/llvm-ar.o:
In function `llvm::raw_ostream::tell() const':
/tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/include/llvm/Support/raw_ostream.h:85:
undefined reference to `llvm::raw_fd_ostream::current_pos() const

>From the command:
x86_64-linux-gnu-g++ -fprofile-arcs -ftest-coverage -std=c++0x -g -O2
-Wl,-R -Wl,'$ORIGIN/../lib'
-L/tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/build-llvm/Release/lib
-L/tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/build-llvm/Release/lib
-Wl,--version-script=/tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/autoconf/ExportMap.map
-coverage -lgcov   -o
/tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/build-llvm/Release/bin/llvm-ar
 /tmp/buildd/llvm-toolchain-snapshot-3.4~svn187484/build-llvm/tools/llvm-ar/Release/llvm-ar.o  \
	-lLLVM-3.4   -lpthread -lffi -ldl -lm

The weird thing is that I don't have this issue with a normal build.
AFAIK, the only thing added is these two flags:
-fprofile-arcs -ftest-coverage

Does that ring a bell?

Full log is available here:
http://llvm-jenkins.debian.net/job/llvm-toolchain-codecoverage-binaries/architecture=amd64,distribution=unstable/191/consoleFull

Thanks,
Sylvestre

[1] http://buildd-clang.debian.net/coverage/



More information about the llvm-commits mailing list