Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 188460

Summary: sys-boot/yaboot fails on ppc64 64b userland - yaboot.chrp needs to be ELF32
Product: Gentoo Linux Reporter: Topi Kanerva <tkanerva>
Component: [OLD] Core systemAssignee: Daniel Ostrow (RETIRED) <dostrow>
Status: RESOLVED INVALID    
Severity: major CC: ppc64
Priority: High    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Topi Kanerva 2007-08-11 11:56:19 UTC
emerge yaboot fails because after the compilation, 'addnote' adds some metainfo to the yaboot.chrp image. however, since on a 64b userland that image is ELF64 and not ELF32, addnote aborts with -1, causing emerge to fail.

gentoo installed from: ppc64 2007.0 64b userland, processor: 970FX, platform: powermac



Reproducible: Always

Steps to Reproduce:
1. install base Gentoo system (2007.0 64bit userland) from stage3 on an iMac G5
2. compile the kernel, only 64bit support, emerge sys-everything according to the Gentoo Handbook
3. emerge yaboot and see it crash and burn

Actual Results:  
[yaboot builds ok.]
addnote: yaboot.chrp is not an ELF32 image!
[addnote returns -1, emerge aborts.]



Expected Results:  
[yaboot builds ok]
addnote: yaboot.chrp is an ELF64 image, continuing accordingly.
[yaboot emerges ok]



this is particularly severe since yaboot is the only way to boot Gentoo on an iMac G5 with 64bit userland.

can be avoided by manually ebuilding (addnote isn't necessary on anything but RS/6000 so it can be skipped entirely).
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2007-08-11 17:36:05 UTC
yes, that's why the handbook tells you to use yaboot-static ;-)

try "emerge yaboot-static" and reopen if that fails, too.