I've unmerged linux-headers because it was missing /usr/include/asm/* (that's a topic for another ticket) and /usr/include/linux/* . I unmerged it because I had run out of disk space on /usr while upgrading to 2.4.21-r1 and it had encountered errors. When I try to "emerge linux-headers", it fails because /usr/include/linux/limits.h is missing. If I copy that file from another (x86) Gentoo system, the emerge succeeds. Reproducible: Always Steps to Reproduce: 1. emerge unmerge linux-headers 2. emerge linux-headers 3. Actual Results: It makes it all the way through "make oldconfig", then: >>> make oldconfig complete gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c In file included from /usr/include/bits/posix1_lim.h:130, from /usr/include/limits.h:144, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/limits.h:132, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/syslimits.h:7, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/limits.h:11, from scripts/mkdep.c:35: /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory scripts/mkdep.c: In function `add_path': scripts/mkdep.c:221: `PATH_MAX' undeclared (first use in this function) scripts/mkdep.c:221: (Each undeclared identifier is reported only once scripts/mkdep.c:221: for each function it appears in.) scripts/mkdep.c:221: warning: unused variable `resolved_path' make: *** [scripts/mkdep] Error 1 !!! ERROR: sys-kernel/linux-headers-2.4.21-r1 failed. !!! Function src_compile, Line 76, Exitcode 2 !!! Failed to run 'make dep' Expected Results: Install without prior existence of /usr/include/linux/limits.h emerge info: Portage 2.0.50-r1 (default-sparc-1.4, gcc-3.2.3, glibc-2.3.3_pre20040207-r0, 2.4.24-sparc) ================================================================= System uname: 2.4.24-sparc sparc sun4m Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="sparc ~sparc" AUTOCLEAN="yes" CFLAGS="-mcpu=supersparc -O2 -pipe -fstack-protector" CHOST="sparc-sun4m-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=supersparc -O2 -pipe -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache digest sandbox" GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X berkdb crypt cups curl ethereal foomaticdb gd gdbm gnome gtk imlib jpeg libwww mbox mozilla mysql ncurses nocd pam pdflib perl png ppds python qt readline samba sasl slang sparc spell ssl tcltk tcpd tiff truetype xml xml2 zlib"
Is nobody working on this?? I reported it six days ago. In the meantime, my SPARC box is up to 20 packages that need upgrading. I was going to open a separate bug report against linux-headers because, when it *does* install, it still leaves /usr/include/asm empty; consequently most or all of the packages fail to build when I "emerge -u world" or try to build the kernel. But I wanted to wait until this problem (linux-headers won't install without /usr/include/linux/limits.h already being present, but that file doesn't exist without linux-headers) was fixed.
Yup, unmerging packages that are in the profile tends to break things. It's the same with gcc and glibc. Not much we can do about that.