systemtap build breaks, if CXXFLAGS="-g -fprofile-arcs -ftest-coverage" is set.
Srinivasa DS
srinivasa@in.ibm.com
Thu May 29 15:43:00 GMT 2008
I tried building latest systemtap-20080524 snapshot with CXXFLAGS="-g
-fprofile-arcs -ftest-coverage" on x86_64 system(problem not seen on ppc
systems), but build failed with below error message.
Steps
=======
1)./configure --with-elfutils=/home/systemtap/btils/elfutils-0.131/
CC='gcc -m64' CXX='g++ -m64'
2)make CXXFLAGS="-g -fprofile-arcs -ftest-coverage"
==============================================
g++ -m64 -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/local/bin"'
-DPKGDATADIR='"/usr/local/share/systemtap"'
-DPKGLIBDIR='"/usr/local/libexec/systemtap"' -Iinclude-elfutils -Wall
-Werror -g -fprofile-arcs -ftest-coverage -MT stap-coveragedb.o -MD -MP
-MF .deps/stap-coveragedb.Tpo -c -o stap-coveragedb.o `test -f
'coveragedb.cxx' || echo './'`coveragedb.cxx
mv -f .deps/stap-coveragedb.Tpo .deps/stap-coveragedb.Po
g++ -m64 -Wall -Werror -g -fprofile-arcs -ftest-coverage -pie
-Wl,-z,relro -Wl,-z,now -pie -Wl,-z,relro -Wl,-z,now -Llib-elfutils
-Wl,-rpath-link,lib-elfutils
-Wl,--enable-new-dtags,-rpath,/usr/local/lib/systemtap -o stap
stap-main.o stap-parse.o stap-staptree.o stap-elaborate.o
stap-translate.o stap-tapsets.o stap-buildrun.o stap-loc2c.o stap-hash.o
stap-mdfour.o stap-cache.o stap-util.o stap-coveragedb.o -ldw -lebl
-lsqlite3
/usr/bin/ld: stap-main.o: relocation R_X86_64_32 against `a local
symbol' can not be used when making a shared object; recompile with -fPIC
==================================================
More information about the Systemtap
mailing list