This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: systemtap build breaks, if CXXFLAGS="-g -fprofile-arcs -ftest-coverage" is set.
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Srinivasa DS <srinivasa at in dot ibm dot com>
- Cc: systemtap <systemtap at sources dot redhat dot com>
- Date: Thu, 29 May 2008 11:31:41 -0400
- Subject: Re: systemtap build breaks, if CXXFLAGS="-g -fprofile-arcs -ftest-coverage" is set.
- References: <483EBB33.7080703@in.ibm.com>
Srinivasa DS <srinivasa@in.ibm.com> writes:
> 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"
This collection of flags conflicts with the default --enable-pie. You
could add "-fpie" to CXXFLAGS. Or you could configure with
--disable-pie. Or you could add a new --enable-coverage flag to
manage it all.
- FChE