Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43248 - sparc: linux-headers won't install from scratch
Summary: sparc: linux-headers won't install from scratch
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 21:18 UTC by Michael Hill
Modified: 2004-03-05 11:55 UTC (History)
0 users

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 Michael Hill 2004-02-28 21:18:12 UTC
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"
Comment 1 Michael Hill 2004-03-05 11:50:19 UTC
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.
Comment 2 Ciaran McCreesh 2004-03-05 11:55:58 UTC
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.