This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
'CONFIG_DRAM_BASE' undeclared : memory.h
- From: Acharya Partha <partha_acharya at yahoo dot com>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 28 May 2008 07:16:36 -0700 (PDT)
- Subject: 'CONFIG_DRAM_BASE' undeclared : memory.h
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=4qbecTwF+rXbSOgGR3fF6xCkNasoDl9CaFlI9qc/QUZgff4pavUj99OiuOqaShSRS/rkwXwgwtANcJ9Gm8XAdL0IPyf8uWHqKZUkNSe2mwNfrDoKcaTbZlxH1YvlGGZgcBBQuxwU1But7XO0xXsgPhWcWGwdhZ3Adi91a6I1OvQ=;
Hi,
I am getting some error at glibc cross compilation
while building a cross-toolchain with the following
configuration :
Target=arm
Host=i386
Host Os= Linux (Fedora 7)
I found following errors :
---------------------------------------------------------------------------------------------------------------------
In file included from
/opt/nishant/arm-linux/arm-linux/include/asm/page.h:178,
from
../ports/sysdeps/unix/sysv/linux/arm/ioperm.c:48:
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:
In function
'virt_to_phys':
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:170:
error:
'CONFIG_DRAM_BASE' undeclared (first use in this
function)
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:170:
error: (Each
undeclared identifier is reported only once
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:170:
error: for each
function it appears in.)
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:
In function
'phys_to_virt':
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:175:
error:
'CONFIG_DRAM_BASE' undeclared (first use in this
function)
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:
At top level:
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:191:
error: expected
'=', ',', ';', 'asm' or '__attribute__' before
'unsigned'
/opt/nishant/arm-linux/arm-linux/include/asm/memory.h:196:
error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'void'
make[3]: ***
[/home/mangesh/Desktop/exp/armtoolchain/build/glibc-build/misc/ioperm.o]
Error 1
make[3]: Leaving directory
`/home/mangesh/Desktop/exp/armtoolchain/build/glibc-2.7/misc'
make[2]: *** [misc/subdir_lib] Error 2
make[2]: Leaving directory
`/home/mangesh/Desktop/exp/armtoolchain/build/glibc-2.7'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/mangesh/Desktop/exp/armtoolchain/build/glibc-build'
make: *** [cross_glibc_compile] Error 2
I guess the problem is with
CONFIG_MMU, in included file mirror.h, it is taking
CONFIG_MMU=n (while I have configured my kernel with
CONFIG_MMU=y ). Can anyone help me in this reference.
Thanx in advance
-Manav
Partha