Bug 2304271 - pcp-6.3.0-2.fc41 FTBFS: /usr/bin/ld: pcp-6.3.0/qa/perfevent/../../src/pmdas/perfevent/architecture.c:171:(.text+0x8e5): undefined reference to `__wrap_malloc'
Summary: pcp-6.3.0-2.fc41 FTBFS: /usr/bin/ld: pcp-6.3.0/qa/perfevent/../../src/pmdas/p...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2301454
Blocks: F41FTBFS
TreeView+ depends on / blocked
 
Reported: 2024-08-13 08:17 UTC by Petr Pisar
Modified: 2024-09-17 08:33 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-09-17 08:33:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2024-08-13 08:17:28 UTC
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'

Comment 1 Jan Kurik 2024-08-13 08:28:01 UTC
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.

Comment 2 Petr Pisar 2024-08-13 10:24:50 UTC
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>.

Comment 3 Jan Kurik 2024-08-13 10:28:14 UTC
We are already working with binutils QE to move the binutils fix on. Hopefully it will be fixed soon.

Comment 4 Nathan Scott 2024-09-17 08:33:03 UTC
The pcp-6.3.1 build has been submitted now, using latest binutils, and all looks resolved.


Note You need to log in before you can comment on or make changes to this bug.