Public bug reported: This is failing on -proposed on all archs except armhf and s390x for the perfevent tests. The relevant part of the log [1]
gcc -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/pcp-6.3.0-1 -I./src/include -I./src/include/pcp -DPCP_VERSION=\"6.3.0\" -fPIC -fno-strict-aliasing -D_GNU_SOURCE -Wshadow -Wno-array-bounds -Wall -O2 -g -I../src/include -I../src/include/pcp -DPCP_VERSION=\"6.3.0\" -fPIC -fno-strict-aliasing -D_GNU_SOURCE -Wshadow -Wno-array-bounds -Wall -O2 -g -I../../src/include -I../../src/include/pcp -DPCP_VERSION=\"6.3.0\" -fPIC -fno-strict-aliasing -D_GNU_SOURCE -Wshadow -Wno-array-bounds -I../../src/pmdas/perfevent -DFILESYSTEM_ROOT='"./fakefs/"' -Wall -O2 -g -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -specs=/usr/share/dpkg/elf-package-metadata.specs -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -specs=/usr/share/dpkg/elf-package-metadata.specs -Wall -L./src/libpcp/src -L./src/libpcp_web/src -L./src/libpcp_pmda/src -L./src/libpcp_mmv/src -L./src/libpcp_archive/src -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -specs=/usr/share/dpkg/elf-package-metadata.specs -Wall -L../src/libpcp/src -L../src/libpcp_web/src -L../src/libpcp_pmda/src -L../src/libpcp_mmv/src -L../src/libpcp_archive/src -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -specs=/usr/share/dpkg/elf-package-metadata.specs -Wall -L../../src/libpcp/src -L../../src/libpcp_web/src -L../../src/libpcp_pmda/src -L../../src/libpcp_mmv/src -L../../src/libpcp_archive/src -Wl,--wrap,syscall -Wl,--wrap,ioctl -Wl,--wrap,read -Wl,--wrap,close -Wl,--wrap,malloc -Wl,--wrap,calloc -Wl,--wrap,sysconf -L../../src/libpcp/src -L../../src/libpcp_web/src -L../../src/libpcp_pmda/src -L../../src/libpcp_mmv/src -L../../src/libpcp_archive/src -o perfevent_test target/perf_event_test.o target/architecture.o target/mock_pfm.o target/rapl-interface.o target/configparser.yytest.o target/perfinterface.o target/parse_events.o -lpcp -lm /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `retrieve_numainfo': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/architecture.c:171:(.text+0x8e5): undefined reference to `__wrap_malloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/architecture.c:33:(.text+0x9db): undefined reference to `__wrap_malloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/architecture.c:165:(.text+0xa5e): undefined reference to `__wrap_malloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/architecture.c:33:(.text+0xa77): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `retrieve_cpuinfo': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/architecture.c:33:(.text+0xb7c): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/architecture.c:33: more undefined references to `__wrap_malloc' follow /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `parse_sysfs_perf_event_scale': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:315:(.text+0x199d): undefined reference to `__wrap_calloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:328:(.text+0x1a51): undefined reference to `__wrap_calloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:254:(.text+0x1aba): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:261:(.text+0x1afa): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `parse_sysfs_perf_event_scale': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:209:(.text+0x1bd2): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:277: more undefined references to `__wrap_calloc' follow /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_get': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:1145:(.text+0x3f2f): undefined reference to `__wrap_malloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:1052:(.text+0x446f): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:1070:(.text+0x4534): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:1095:(.text+0x45b1): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_get': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:1163:(.text+0x478e): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_setup_dynamic_events.isra.0': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:763:(.text+0x4abf): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_setup_dynamic_events.isra.0': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/parse_events.c:983:(.text+0x4ded): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `yyestensure_buffer_stack': /usr/src/pcp-6.3.0-1/qa/perfevent/configparser.yytest.c:3271:(.text+0x4fab): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `yyest_create_buffer.constprop.0': /usr/src/pcp-6.3.0-1/qa/perfevent/configparser.yytest.c:3271:(.text+0x4ff9): undefined reference to `__wrap_malloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/configparser.yytest.c:3271:(.text+0x5012): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `parse_configfile': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/configparser.l:820:(.text+0x5089): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `parse_configfile': /usr/src/pcp-6.3.0-1/qa/perfevent/configparser.yytest.c:3271:(.text+0x50be): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `parse_configfile': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/configparser.l:252:(.text+0x57fd): undefined reference to `__wrap_calloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/configparser.l:291:(.text+0x58d2): undefined reference to `__wrap_calloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/configparser.l:206:(.text+0x63cc): undefined reference to `__wrap_calloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/configparser.l:142:(.text+0x6565): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/configparser.l:160:(.text+0x6620): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:1233: more undefined references to `__wrap_calloc' follow /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_event_create': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/rapl-interface.c:207:(.text+0x70d6): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_event_create': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:580:(.text+0x7213): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:580:(.text+0x76d6): undefined reference to `__wrap_malloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o: in function `perf_event_create': /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:458:(.text+0x7ab4): undefined reference to `__wrap_calloc' /usr/bin/ld: /usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:368:(.text+0x7b26): undefined reference to `__wrap_calloc' /usr/bin/ld: /tmp/ccjaNNSs.ltrans0.ltrans.o:/usr/src/pcp-6.3.0-1/qa/perfevent/../../src/pmdas/perfevent/perfinterface.c:373:(.text+0x7b58): undefined reference to `__wrap_calloc' collect2: error: ld returned 1 exit status make[3]: *** [GNUmakefile:75: perfevent_test] Error 1 This is not failing in Debian... checking flags, I noticed -fno-omit- frame-pointer -mno-omit-leaf-frame-pointer was used in Ubuntu but not in Debian, but I stripped it from rules and rules.pcp with no luck. [1] https://launchpadlibrarian.net/741559288/buildlog_ubuntu-oracular- amd64.pcp_6.3.0-1_BUILDING.txt.gz ** Affects: pcp (Ubuntu) Importance: Undecided Status: New ** Tags: update-excuse -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2076092 Title: FTBFS with undefined reference to `__wrap_malloc' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pcp/+bug/2076092/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
