Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585752 - sys-firmware/ipxe-1.0.0_p20130925: PIE options not disabled breaking build: missing or invalid displacement expression `client_private_key_len@GOTOFF`
Summary: sys-firmware/ipxe-1.0.0_p20130925: PIE options not disabled breaking build: m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-12 21:39 UTC by Aric Belsito
Modified: 2016-06-23 12:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (info,5.27 KB, text/plain)
2016-06-20 22:48 UTC, Aric Belsito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aric Belsito 2016-06-12 21:39:17 UTC
http://lists.ipxe.org/pipermail/ipxe-devel/2016-February/004640.html

sys-firmware/ipxe must be patched so it doesn't use PIE.
Comment 1 Alex Xu (Hello71) 2016-06-20 16:59:08 UTC
build.log? emerge --info? we will not go chasing mailing lists for information.
Comment 2 Aric Belsito 2016-06-20 22:48:31 UTC
Created attachment 438224 [details]
emerge info

Sorry @Alex

Didn't see anything wrong with linking to an upstream mailing list that described the actual cause of the problem.

Relevant portion of build.log:
env CCACHE_DISABLE=1 x86_64-gentoo-linux-musl-gcc  -DARCH=i386 -DPLATFORM=pcbios -march=i386 -fomit-frame-pointer -fstrength-reduce -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mpreferred-stack-boundary=2 -mregparm=3 -mrtd -freg-struct-return -m32 -fshort-wchar -Ui386 -Ulinux -DNVALGRIND -Iinclude -I. -Iarch/x86/include -Iarch/i386/include -Iarch/i386/include/pcbios -Os -g -ffreestanding -Wall -W -Wformat-nonliteral   -fno-stack-protector  -fno-dwarf2-cfi-asm -fno-exceptions  -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address  -ffunction-sections -fdata-sections -include include/compiler.h    -DOBJECT=clientcert -c crypto/clientcert.c -o bin/clientcert.o
/var/tmp/portage/sys-firmware/ipxe-1.0.0_p20130925/temp/ccoFIHBA.s: Assembler messages:
/var/tmp/portage/sys-firmware/ipxe-1.0.0_p20130925/temp/ccoFIHBA.s:38: Error: missing or invalid displacement expression `client_certificate_len@GOTOFF'
/var/tmp/portage/sys-firmware/ipxe-1.0.0_p20130925/temp/ccoFIHBA.s:63: Error: missing or invalid displacement expression `client_private_key_len@GOTOFF'
make: *** [Makefile.housekeeping:802: bin/clientcert.o] Error 1
Comment 3 Aric Belsito 2016-06-20 22:52:00 UTC
But also, from the PIE/SSP bug, #582688:
"Tracker for Packages that fail with pie or ssp enable in Gcc 6.1
The package should block this one _and_ the Gcc 6 porting bug."
Comment 4 SpanKY gentoo-dev 2016-06-21 04:46:16 UTC
it's not specific to gcc-6.  the code is already patched to disable PIE:
https://git.ipxe.org/ipxe.git/commit/fe61f6de0dd5d39ac3de5e8e18742f9bd0aafad7

the problem is they typo-ed the option -- it's "-no-pie", not "-nopie".
Comment 6 Aric Belsito 2016-06-21 05:14:31 UTC
Thanks, vapier!