Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166782 - binutils fails to build for some targets (trad-core.c) with sanitized headers
Summary: binutils fails to build for some targets (trad-core.c) with sanitized headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/ml/binutils/200...
Whiteboard:
Keywords:
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-02-14 02:50 UTC by SpanKY
Modified: 2007-10-08 12:10 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 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