Description
I am seeing following failure when I try to make with following gcov flags:
export LDFLAGS="-lgcov -coverage"
export CFLAGS="-fprofile-arcs -ftest-coverage"
export CXXFLAGS="-fprofile-arcs -ftest-coverage"
Failure:
/usr/bin/ld: ../../iocore/eventsystem/libinkevent.a(UnixEventProcessor.o): undefined reference to symbol 'hwloc_get_type_depth'
/usr/lib/x86_64-linux-gnu/libhwloc.so.5: error adding symbols: DSO missing from command line
More logs:
Making all in traffic_layout
make[2]: Entering directory `/opt/src/trafficserver.git/cmd/traffic_layout'
/bin/bash ../../libtool --tag=CXX --mode=link c++ -Wunused-parameter -fprofile-arcs -ftest-coverage -std=c++11 -g -pipe -Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -mcx16 -lgcov -coverage -o traffic_layout traffic_layout.o ../../lib/records/librecords_p.a ../../mgmt/libmgmt_p.la ../../iocore/eventsystem/libinkevent.a ../../proxy/shared/libUglyLogStubs.a ../../lib/ts/libtsutil.la -L/usr/lib/x86_64-linux-gnu -ltcl8.5 -lcap -lpcre -lz -lcrypt -lpthread -ldl -lxml2
libtool: link: c++ -Wunused-parameter -fprofile-arcs -ftest-coverage -std=c++11 -g -pipe -Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -mcx16 -coverage -o .libs/traffic_layout traffic_layout.o -lgcov ../../lib/records/librecords_p.a ../../mgmt/.libs/libmgmt_p.a ../../iocore/eventsystem/libinkevent.a ../../proxy/shared/libUglyLogStubs.a ../../lib/ts/.libs/libtsutil.so -L/usr/lib/x86_64-linux-gnu -ltcl8.5 -lcap -lpcre -lz -lcrypt -lpthread -ldl -lxml2 -Wl,-rpath -Wl,/opt/ats-cov/lib
/usr/bin/ld: ../../iocore/eventsystem/libinkevent.a(UnixEventProcessor.o): undefined reference to symbol 'hwloc_get_type_depth'
/usr/lib/x86_64-linux-gnu/libhwloc.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [traffic_layout] Error 1
make[2]: Leaving directory `/opt/src/trafficserver.git/cmd/traffic_layout'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/src/trafficserver.git/cmd'
make: *** [all-recursive] Error 1