Bug 185202 - Kernel build requires "High Memory Support"
Summary: Kernel build requires "High Memory Support"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jason Baron
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 430698
TreeView+ depends on / blocked
 
Reported: 2006-03-11 17:54 UTC by Steve Snyder
Modified: 2013-03-06 05:59 UTC (History)
2 users (show)

Fixed In Version: RHSA-2008-0665
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-24 19:11:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2008:0665 0 normal SHIPPED_LIVE Moderate: Updated kernel packages for Red Hat Enterprise Linux 4.7 2008-07-24 16:41:06 UTC

Description Steve Snyder 2006-03-11 17:54:02 UTC
Description of problem:

The kernel cannot be built if "High Memory Support" is disabled.  If the option 
is changed from the default 4GB to "off" the file arch/i386/mm/pageattr.c fails 
to compile.

Version-Release number of selected component (if applicable):

kernel-2.6.9-34.EL.i686

How reproducible:

Every time.

Steps to Reproduce:
1. Extract kernel source files from kernel SRPM as usual.
2. Rebuild kernel using the config-2.6.9-34.EL installed by the i686 RPM.  Build 
succeeds
3. Change "High Memory Support" (I used "make menuconfig") to "off".  Attempt to 
rebuild kernel fails.
  
Actual results:

arch/i386/mm/pageattr.c: In function `revert_page':
arch/i386/mm/pageattr.c:100: error: `_etext' undeclared (first use in this 
function)
arch/i386/mm/pageattr.c:100: error: (Each undeclared identifier is reported only 
once
arch/i386/mm/pageattr.c:100: error: for each function it appears in.)
arch/i386/mm/pageattr.c:104: warning: ISO C90 forbids mixed declarations and 
code
arch/i386/mm/pageattr.c: In function `__change_page_attr':
arch/i386/mm/pageattr.c:135: error: `_etext' undeclared (first use in this 
function)
make[1]: *** [arch/i386/mm/pageattr.o] Error 1

Expected results:

There should be no compilation errors.

Additional info:

Yes, yes, yes, I know Red Hat doesn't support custom configurations.  
Nevertheless, I think you will want to know that you are unconditionally using 
variables that only exist in specific configurations.

The low-memory machine I intend to run this kernel on cannot support more the 
256MB of RAM.  It is inefficient to enable High Memory Support on a machine that 
will never be able to use those high-memory page tables.

Comment 1 Jason Baron 2006-03-13 19:21:32 UTC
strange. _etext is not related to highmem...this patch is also in the upstream
kernel...i'll see if i can figure this out, but its not a high priority for
us...thanks.

Comment 2 Steve Snyder 2006-08-24 14:54:00 UTC
Problem still exists in kernel-2.6.9-42.0.2.EL.

Look, I'll make it easy for you:

diff -Nu arch/i386/mm/pageattr.c.orig arch/i386/mm/pageattr.c
--- arch/i386/mm/pageattr.c.orig        2006-08-24 06:38:52.000000000 -0400
+++ arch/i386/mm/pageattr.c     2006-08-24 11:00:48.000000000 -0400
@@ -12,6 +12,7 @@
 #include <asm/uaccess.h>
 #include <asm/processor.h>
 #include <asm/tlbflush.h>
+#include <asm/sections.h>

 static spinlock_t cpa_lock = SPIN_LOCK_UNLOCKED;
 static struct list_head df_list = LIST_HEAD_INIT(df_list);


Comment 3 RHEL Program Management 2007-05-09 10:43:32 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 Vivek Goyal 2008-03-14 23:37:57 UTC
Committed in 68.21.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/

Comment 10 errata-xmlrpc 2008-07-24 19:11:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2008-0665.html


Note You need to log in before you can comment on or make changes to this bug.