Bug 2434902

Summary: patchelf-0.18.0-10.fc44 FTBFS: /usr/bin/ld.bfd: error: read-only segment has dynamic relocations
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: patchelfAssignee: Jeremy Sanders <jeremy>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: epel-packagers-sig, jeremy, kwizart, ppisar, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-28 09:52:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2384424    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2026-01-29 05:18:24 UTC
patchelf failed to build from source in Fedora rawhide/f44

https://koji.fedoraproject.org/koji/taskinfo?taskID=141173717


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
Please fix patchelf at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
patchelf will be orphaned. Before branching of Fedora 45,
patchelf will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2026-01-29 05:18:30 UTC
Created attachment 2126454 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2026-01-29 05:18:36 UTC
Created attachment 2126455 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2026-01-29 05:18:39 UTC
Created attachment 2126456 [details]
state.log

Comment 4 Petr Pisar 2026-01-29 16:47:39 UTC
From i686 build.log:

gcc -pie -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/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -mtls-dialect=gnu   -Wl,--disable-new-dtags -Wl,-rpath-link=. -L.   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs  -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o many-syms-main many_syms_main-many-syms-main.o -lmany-syms  
/usr/bin/ld.bfd: /tmp/cck96Qcy.ltrans0.ltrans.o: warning: relocation against `f1553' in read-only section `.text.startup'
/usr/bin/ld.bfd: error: read-only segment has dynamic relocations

It built fine on x86_64. Maybe a bug in binutils-0:2.45.50-16.fc44.i686.

Comment 5 Petr Pisar 2026-01-29 16:53:56 UTC
Still fails with binutils-0:2.45.50-19.fc44 (only on i686).

Comment 6 Nicolas Chauvet (kwizart) 2026-02-03 09:23:44 UTC
I've reported a dedicated bug against binutils on the topic see rhbz#2436257
Current workaround is to use LDFLAGS+="-Wl,-z,notext"

Comment 7 Jeremy Sanders 2026-06-28 09:52:44 UTC
patchelf-0.19.0-1 now builds find on rawhide and f44 in a scratch build. patchelf-0.18.0-10 still fails on f44, so presumably they added a workaround.

I could push an update for f44, but I think the f43 version is working ok, so presumably I shouldn't.