Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188460 - sys-boot/yaboot fails on ppc64 64b userland - yaboot.chrp needs to be ELF32
Summary: sys-boot/yaboot fails on ppc64 64b userland - yaboot.chrp needs to be ELF32
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: High major
Assignee: Daniel Ostrow (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-11 11:56 UTC by Topi Kanerva
Modified: 2007-08-11 17:36 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.