Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 282037

Summary: sys-kernel/hardened-sources-2.6.28-r7 onward compile error
Product: Gentoo Linux Reporter: Ben Kero <bkero>
Component: HardenedAssignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE) <hardened-kernel+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build attempt

Description Ben Kero 2009-08-19 18:25:40 UTC
Trying to upgrade kernels on some powerpc equipment, reach the same error on powe5 and a G5.  sys-kernel/hardened-sources-2.6.28-r7 to 2.6.29 all break with the following error:

/usr/src/linux-2.6.28-hardened-r7/arch/powerpc/include/asm/mman.h:41: error: 'VM_SAO' undeclared (first use in this function)

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-kernel/2.6.28-r7
2. Make your kernel config
3. make

Actual Results:  
Bad error

Expected Results:  
A compiled kernel
Comment 1 Ben Kero 2009-08-19 18:27:04 UTC
Portage 2.1.6.13 (default/linux/powerpc/ppc64/2008.0/64bit-userland, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.23-hardene
d-power5-osl1 ppc64)
=================================================================
System uname: Linux-2.6.23-hardened-power5-osl1-ppc64-POWER5+_-gs-with-glibc2.3
Timestamp of tree: Wed, 19 Aug 2009 00:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r14, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/DIR_COLORS /etc/ca-certificates.conf /etc/conf.d/bootmisc /etc/dev.d /etc/env.d /etc/env.d/j
ava/ /etc/gconf /etc/init.d /etc/inputrc /etc/networks /etc/protocols /etc/revdep-rebuild /etc/sandbox.d /etc/scsi_id.
config /etc/services /etc/terminfo /etc/udev /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://oslportage.osuosl.org/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats 
--timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/osl /usr/local/overlays/powerdev"
SYNC="rsync://oslportage.osuosl.org/portage/"
USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm ibm iconv isdnlog jpeg ldap libwww maildir mudflap 
ncurses nls nptl nptlonly openmp pam pcre perl png ppc64 pppd python readline reflection session snmp spl ssl sysfs tc
pd unicode xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 io
plug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions
 alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile au
thz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file
_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling sta
tus unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEV
ICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 
mga nv r128 radeon vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE
_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Ben Kero 2009-08-19 18:29:50 UTC
Created attachment 201738 [details]
Build attempt
Comment 3 Ben Kero 2009-08-19 18:32:05 UTC
Looking through include/linux/mm.h, it seems that things sourced in before line 42 use VM_SAO, and it's therefore undefined when they try.  If I define it at the top of mm.h, it seems to compile without error.
Comment 4 Anthony Basile gentoo-dev 2010-07-07 19:19:30 UTC
Can you test hardened-sources-2.6.32-r9.  I have a dual core G5 running it no problems.
Comment 5 Anthony Basile gentoo-dev 2011-01-21 12:03:18 UTC
This kernel is off the tree, and it works with never versions, so I'm closing this bug.