Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71330 - util-linux-2.12i-r1 compile fails
Summary: util-linux-2.12i-r1 compile fails
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's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 14:47 UTC by Matt Taylor
Modified: 2004-11-15 18:27 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 Matt Taylor 2004-11-15 14:47:22 UTC
make[1]: Leaving directory `/mnt/portage/tmp/portage/util-linux-2.12i-r1/work/util-linux-2.12i/text-utils'
i686-pc-linux-gnu-gcc -march=i686 -O3 -pipe -include linux/compiler.h   -c -o addpart.o addpart.c
i686-pc-linux-gnu-gcc -march=i686 -O3 -pipe -include linux/compiler.h   -c -o delpart.o delpart.c
cpp0: linux/compiler.h: No such file or directory
make: *** [delpart.o] Error 1
make: *** Waiting for unfinished jobs....
cpp0: linux/compiler.h: No such file or directory
make: *** [addpart.o] Error 1

!!! ERROR: sys-apps/util-linux-2.12i-r1 failed.
!!! Function src_compile, Line 106, Exitcode 2
!!! make partx failed
!!! If you need support, post the topmost build error, NOT this status message.

Changing line 106 of the ebuild:
emake CFLAGS="${CFLAGS} -include linux/compiler.h" || die "make partx failed"

to either of the following fixes it:
emake CFLAGS="${CFLAGS} -include /usr/include/linux/compiler.h" || die "make partx failed"
emake CFLAGS="${CFLAGS}" || die "make partx failed"

# emerge info
Portage 2.0.51-r3 (!/usr/portage/profiles/default-linux/x86/gcc2, gcc-2.95.3, glibc-2.2.5-r9, 2.6.7-gentoo-r14 i686)
=================================================================
System uname: 2.6.7-gentoo-r14 i686 AMD Athlon(tm) 
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/mnt/portage/portage/distfiles"
FEATURES="autoaddcvs ccache digest distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://ftp-mirror.internap.com/pub/gentoo/ http://chod.cwru.edu/gentoo http://gentoo.mirrors.pair.com/ http://mirror.clarkson.edu/pub/distributions/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/portage/tmp"
PORTDIR="/mnt/portage/portage"
PORTDIR_OVERLAY="/mnt/portage/portage-local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X alsa apm avi berkdb bitmap-fonts bonobo canna cdr crypt cups directfb dvd encode esd f77 fam flac foomaticdb fortran gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib jpeg libg++ libwww mad mikmod mmx mmx2 motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-11-15 18:27:26 UTC
added a check to make sure user has linux26-headers, thanks