This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
systemtap build breaks, if CXXFLAGS="-g -fprofile-arcs -ftest-coverage" is set.
- From: Srinivasa DS <srinivasa at in dot ibm dot com>
- To: systemtap <systemtap at sources dot redhat dot com>
- Date: Thu, 29 May 2008 19:48:27 +0530
- Subject: systemtap build breaks, if CXXFLAGS="-g -fprofile-arcs -ftest-coverage" is set.
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
==================================================