Bug 1239761 - patchelf: FTBFS in rawhide: Tests fail on PIC executables: maximum file size exceeded
Summary: patchelf: FTBFS in rawhide: Tests fail on PIC executables: maximum file size ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: patchelf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/NixOS/patchelf/iss...
Whiteboard:
Depends On:
Blocks: F23FTBFS
TreeView+ depends on / blocked
 
Reported: 2015-07-05 21:10 UTC by Dennis Gilmore
Modified: 2015-07-13 08:31 UTC (History)
2 users (show)

Fixed In Version: patchelf-0.8-4.fc23
Clone Of:
Environment:
Last Closed: 2015-07-13 08:31:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (31.16 KB, text/plain)
2015-07-05 21:10 UTC, Dennis Gilmore
no flags Details
root.log (69.35 KB, text/plain)
2015-07-05 21:10 UTC, Dennis Gilmore
no flags Details
state.log (617 bytes, text/plain)
2015-07-05 21:10 UTC, Dennis Gilmore
no flags Details

Description Dennis Gilmore 2015-07-05 21:10:44 UTC
Your package patchelf failed to build from source in current rawhide.

http://koji.fedoraproject.org/koji/taskinfo?taskID=10122804

For details on mass rebuild see https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Comment 1 Dennis Gilmore 2015-07-05 21:10:45 UTC
Created attachment 1047598 [details]
build.log

Comment 2 Dennis Gilmore 2015-07-05 21:10:46 UTC
Created attachment 1047599 [details]
root.log

Comment 3 Dennis Gilmore 2015-07-05 21:10:47 UTC
Created attachment 1047600 [details]
state.log

Comment 4 Petr Pisar 2015-07-07 15:47:06 UTC
Hardended-build Fedora feature makes executables PIC. And patchelf fails selftest on such an executable (see the 'maximum file size exceeded'):

$  ../src/patchelf --set-interpreter /oops scratch/set-interpreter-short/simple
warning: working around a Linux kernel bug by creating a hole of 18870272 bytes in ‘scratch/set-interpreter-short/simple’
maximum file size exceeded

The reproducer is to call configure as:

./configure CFLAGS='-O0 -fPIE' LDFLAGS='-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' CXXFLAGS='-O0 -fPIE'

The /usr/lib/rpm/redhat/redhat-hardened-ld contains:

*self_spec:
+ %{!shared:%{!r:-pie}}

*link:
+ -z now

Alternatively you can replace LDFLAGS with '-z now' and add '-pie' to LDFLAGS_local variable in tests/Makefile.am (and run autoreconf before ./configure).


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