sys-apps/ipmitool-1.8.8 fails to compile with linux-headers-2.6.21 I think it's a Bug in linux-headers (missing /usr/include/linux/compiler.h), see attached output for details. ... make[4]: Entering directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins/open' if /bin/sh ../../../libtool --silent --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -I /usr/include -MT open.lo -MD -MP -MF ".deps/open.Tpo" -c -o open.lo open.c; \ then mv -f ".deps/open.Tpo" ".deps/open.Plo"; else rm -f ".deps/open.Tpo"; exit 1; fi open.c:53:29: error: linux/compiler.h: No such file or directory make[4]: *** [open.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins/open' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8' make: *** [all] Error 2 !!! ERROR: sys-apps/ipmitool-1.8.8 failed. Call stack: ebuild.sh, line 1621: Called dyn_compile ebuild.sh, line 973: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile ipmitool-1.8.8.ebuild, line 28: Called die Reproducible: Always Steps to Reproduce: 1. # emerge ipmitool 2. 3. Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21.6-mail1-0.1 i686) ================================================================= System uname: 2.6.21.6-mail1-0.1 i686 Intel(R) Xeon(TM) CPU 3.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 17 Jul 2007 06:50:01 +0000 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="berkdb cracklib crypt gdbm gpm iconv libwww mudflap ncurses nls nptl nptlonly pam pcre perl postgres python readline ssl tcpd unicode x86 xml xsl zlib" ELIBC="glibc" KERNEL="linux" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This error does not occur with ipmitool-1.8.9 (See also http://bugs.gentoo.org/show_bug.cgi?id=175007)
Confirm. 1.8.9 is compiling. 1.8.8 fails.
also ipmitool-1.8.6 with the same linux-headers-2.6.21 compiles and runs ok on both i386 and x86_64 with hardened profile. (while we're at it, why not unmask 1.8.6 on x86 and amd64?)
1.8.9 in cvs.
Saw similar problem with xen-sources-2.6.18-r5. Compiling 1.8.6 and 1.8.9 worked fine. However, 1.8.9 has some bug which can't report correct value for CPU temp. Had to back down to 1.8.6. Simon