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

Bug 166782

Summary: binutils fails to build for some targets (trad-core.c) with sanitized headers
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: alpha
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://sourceware.org/ml/binutils/2007-02/msg00215.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 159304    

Description SpanKY gentoo-dev 2007-02-14 02:50:12 UTC
bfd/trad-core.c relies on the NBPG define which is normally translated to PAGE_SIZE, but both of these defines are being killed off with sanitized headers

i'm not sure of the exact fix here so i've moved it upstream

we could cheat in the meantime and just do:
#ifndef NBPG
# define NBPG getsize()
#endif
Comment 1 SpanKY gentoo-dev 2007-07-15 06:32:06 UTC
latest glibc should take care of this by defining NBPG in terms of getpagesize()
Comment 2 Mark L Pappin 2007-10-08 12:10:06 UTC
This doesn't help on Alpha:

# emerge -puvDN world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] sys-boot/aboot-1.0_pre20040408-r2 [1.0_pre20040408] 0 kB
[ebuild  NS   ] sys-devel/binutils-2.18  USE="multislot multitarget nls -test -vanilla" 0 kB
[ebuild     U ] sys-libs/pam-0.99.8.1-r1 [0.99.7.1] USE="cracklib%* nls (-audit) (-selinux) -vim-syntax" 0 kB
[ebuild     U ] sys-libs/glibc-2.6.1 [2.3.6-r5] USE="glibc-omitfp nls -debug% -glibc-compat20 (-hardened) (-multilib) -profile (-selinux) (-build%) (-erandom%) (-nptl%*) (-nptlonly%*)" 0 kB

(note that the 3 I'm having trouble with, that I continue to be told "glibc will fix it" [see bug 194241 and bug 194275], want to be built before glibc)

# emerge sys-libs/glibc
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-libs/glibc-2.6.1 to /

[time passes]

 * ERROR: sys-libs/glibc-2.6.1 failed.


However, the following appears to have worked:

# emerge --unmerge =binutils-2.17
# emerge sys-libs/glibc
# emerge -uND world

So:
- profile 2006.1 culminates in a broken set of binutils/glibc/aboot/pam
- profile 2007.0 gets fixed versions
- but you need to leap the hurdle of a binutils/glibc argument