pcp-6.3.0-2.fc41 fails to build in Fedora 41: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redh at-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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/in clude -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,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -spec s=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redh at-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -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 ,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -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,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened -ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -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/perfinterfac e.o target/parse_events.o -lpcp -lm /usr/bin/ld: /tmp/ccgsqdUu.ltrans0.ltrans.o: in function `retrieve_numainfo': /builddir/build/BUILD/pcp-6.3.0-build/pcp-6.3.0/qa/perfevent/../../src/pmdas/perfevent/architecture.c:171:(.text+0x8e5): undefined reference to `__wrap_malloc' /usr/bin/ld: /builddir/build/BUILD/pcp-6.3.0-build/pcp-6.3.0/qa/perfevent/../../src/pmdas/perfevent/architecture.c:33:(.text+0x9db): undefined reference to `__wrap_malloc' /usr/bin/ld: /builddir/build/BUILD/pcp-6.3.0-build/pcp-6.3.0/qa/perfevent/../../src/pmdas/perfevent/architecture.c:165:(.text+0xa5e): undefined reference to `__wrap_malloc' /usr/bin/ld: /builddir/build/BUILD/pcp-6.3.0-build/pcp-6.3.0/qa/perfevent/../../src/pmdas/perfevent/architecture.c:33:(.text+0xa77): undefined reference to `__wrap_malloc'
This is a known issue, blocked by bz2301454. @ppisar what version of binutil are you using ? In the binutils-2.42.90-2.fc41 should already be implemented a workaround for this.
I used binutils-2.42.90-1.fc41.x86_64. Yesterday it was the latest binutils packages. As well as today. binutils-2.42.90-2.fc41 never reached F41 buildroot <https://bodhi.fedoraproject.org/updates/FEDORA-2024-05ef934768>.
We are already working with binutils QE to move the binutils fix on. Hopefully it will be fixed soon.
The pcp-6.3.1 build has been submitted now, using latest binutils, and all looks resolved.