Emerging hardened sources fails in a "fresh" uclibc/hardened environment. Reproducible: Always Steps to Reproduce: 1. ROOT=newroot emerge -e system newroot 2. ... 3. chroot newroot 4. emerge hardened-sources Actual Results: * Applying 4705_squashfs-2.2-r2.patch (-p0+) ... [ ok ] * Applying 4905_grsec-2.1.7-2.6.14.3-200511291802.patch (-p0+) ... [ ok ] * Applying 4910_pax_curr_ip-fixes.patch (-p0+) ... [ ok ] * Applying 4915_linux-2.6.13.1-selinux-pax-hooks.patch (-p0+) ... [ ok ] CHK include/linux/version.h "2.6.14-hardened-r1cc1:error:unrecognizedcommandlineoption"-Wno-pointer-sign"" exceeds 64 characters make: *** [include/linux/version.h] Error 1 Expected Results: sucessful emerge. Looks like the -Wno-pointer-sign was added in gcc-4 (to reduce alots of warning in kernel compile) and have been in kernel since 2.6.12-rc1. There should be a check in the kernel sources to determine if it should be used or not (that obviously don't work) Portage 2.0.51.22-r3 (uclibc/x86/hardened, gcc-3.4.4, uclibc-0.9.27-r0, 2.6.8-2-686-smp i686) ================================================================= System uname: 2.6.8-2-686-smp i686 Intel(R) Xeon(TM) CPU 2.40GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-gentoo-linux-uclibc" CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer" CHOST="i386-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe" DISTDIR="/var/cache/distfiles" FEATURES="autoconfig buildpkg distcc distlocks nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/var/cache/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/alpine-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X509 bitmap-fonts bzip2 cracklib expat hardened jpeg mad minimal ncurses pci pcmcia pic png readline rrdtool snmp ssl tdb truetype truetype-fonts type1-fonts uclibc udev usb winbind zlib userland_GNU kernel_linux elibc_uclibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
The /dev/null device was missing in my build environment. Once it was created, the problem went away (to /dev/null probably) Sorry for the noice.