gcc -Wp,-MD,./.memory.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=memory -c -o memory.o memory.c
memory.c:50:22: asm/rmap.h: No such file or directory
memory.c: In function `free_one_pmd':
memory.c:95: warning: implicit declaration of function `pgtable_remove_rmap'
memory.c: In function `pte_alloc_map':
memory.c:156: warning: implicit declaration of function `pgtable_add_rmap'
make[2]: *** [memory.o] Error 1
I ran "make mrproper", copied in my .config and then ran:
make oldconfig dep all install modules modules_install
CONFIG_X86=y
CONFIG_ISA=y
CONFIG_UID16=y
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
#
# General setup
#
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_MODULES=y
CONFIG_KMOD=y
#
# Processor type and features
#
CONFIG_MPENTIUM4=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_SMP=y
CONFIG_TOSHIBA=y
CONFIG_NOHIGHMEM=y
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y
# ACPI Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_DEBUG=y
CONFIG_PM=y
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
CONFIG_HOTPLUG=y
Let me know if you need more information.
Miles
Hmm. This problem looks pretty straightforward.
find . -name "*.h" | xargs grep rmap.h
./include/asm-generic/rmap.h: * linux/include/asm-generic/rmap.h
./include/asm-i386/rmap.h:#include <asm-generic/rmap.h>
find . -name "*.c" | xargs grep rmap.h
./mm/memory.c:#include <asm/rmap.h>
./mm/rmap.c:#include <asm/rmap.h>
On 20 Jul 2002, Miles Lane wrote:
> Hmm. This problem looks pretty straightforward.
Indeed. Have you tried 'make oldconfig' to set the
symlink in include/ ?
> find . -name "*.h" | xargs grep rmap.h
>
> ./include/asm-generic/rmap.h: * linux/include/asm-generic/rmap.h
> ./include/asm-i386/rmap.h:#include <asm-generic/rmap.h>
>
> find . -name "*.c" | xargs grep rmap.h
>
> ./mm/memory.c:#include <asm/rmap.h>
> ./mm/rmap.c:#include <asm/rmap.h>
Rik
--
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/ http://distro.conectiva.com/
On Sat, 2002-07-20 at 20:53, Rik van Riel wrote:
> On 20 Jul 2002, Miles Lane wrote:
> > On Sat, 2002-07-20 at 20:47, Rik van Riel wrote:
> > > On 20 Jul 2002, Miles Lane wrote:
> > >
> > > > Hmm. This problem looks pretty straightforward.
> > >
> > > Indeed. Have you tried 'make oldconfig' to set the
> > > symlink in include/ ?
> >
> > Yeah. I mention that in my first message. ;-)
>
> So, does the symlink exist ?
>
> I'm asking that because gcc has no problem finding <asm/rmap.h>
> here or at anybody else's place ;)
Hmm. I don't have an asm directory, in spite of running oldconfig.
I suspect this problem is a result of the previous problem
I reported with "make mrproper" having an error?
I will try creating a completely new tree and then use that
.config file (make oldconfig dep all install modules modules_install).
Thanks,
Miles
Hmm. Sorry for the noise. I think made a backup
of 2.5 without running "make mrproper" first.
Thanks for your help, Rik.
Miles
> Hmm. Sorry for the noise. I think made a backup
> of 2.5 without running "make mrproper" first.
Your report is actually helpful, not so much to Rik, though. According
to Kai Germaschewski (Subject: Re: piggy broken in 2.5.24 build, Date:
Sat, 22 Jun 2002), "For the current kbuild, you should never need to do
make mrproper, it should always recognize changes and rebuild what's
necessary."
Well, what's the problem, Kai?
T.
On Sun, 21 Jul 2002, Tomas Szepe wrote:
> > Hmm. Sorry for the noise. I think made a backup
> > of 2.5 without running "make mrproper" first.
>
> Your report is actually helpful, not so much to Rik, though. According
> to Kai Germaschewski (Subject: Re: piggy broken in 2.5.24 build, Date:
> Sat, 22 Jun 2002), "For the current kbuild, you should never need to do
> make mrproper, it should always recognize changes and rebuild what's
> necessary."
>
> Well, what's the problem, Kai?
Since I don't have my crystal ball with me, it's really hard to tell. On
a wild guess, when he backed up his kernel he converted his include/asm
symlink into a real directory, which then makes "rm include/asm" fail for
obvious reasons.
--Kai