Bug 2434902 - patchelf-0.18.0-10.fc44 FTBFS: /usr/bin/ld.bfd: error: read-only segment has dynamic relocations
Summary: patchelf-0.18.0-10.fc44 FTBFS: /usr/bin/ld.bfd: error: read-only segment has ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: patchelf
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeremy Sanders
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F44FTBFS
TreeView+ depends on / blocked
 
Reported: 2026-01-29 05:18 UTC by Fedora Release Engineering
Modified: 2026-02-03 09:23 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2026-01-29 05:18 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2026-01-29 05:18 UTC, Fedora Release Engineering
no flags Details
state.log (1.64 KB, text/plain)
2026-01-29 05:18 UTC, Fedora Release Engineering
no flags Details

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"


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