Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114958 - unrecognized option "-Wno-pointer-sign" when emergeing hardened-sources-2.6.14-r1 (embedded)
Summary: unrecognized option "-Wno-pointer-sign" when emergeing hardened-sources-2.6.1...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-08 23:48 UTC by Natanael Copa
Modified: 2005-12-09 00:28 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 Natanael Copa 2005-12-08 23:48:09 UTC
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
Comment 1 Natanael Copa 2005-12-09 00:28:48 UTC
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.