2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
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 directorymemory.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=yCONFIG_ISA=yCONFIG_UID16=y
#
# Code maturity level options
#CONFIG_EXPERIMENTAL=y
#
# General setup
#CONFIG_NET=yCONFIG_SYSVIPC=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_SYSCTL=y
CONFIG_MODULES=yCONFIG_KMOD=y
#
# Processor type and features
#CONFIG_MPENTIUM4=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=7CONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_SMP=yCONFIG_TOSHIBA=yCONFIG_NOHIGHMEM=yCONFIG_MTRR=yCONFIG_HAVE_DEC_LOCK=y
# ACPI Support
#CONFIG_ACPI=yCONFIG_ACPI_BOOT=yCONFIG_ACPI_BUS=yCONFIG_ACPI_INTERPRETER=yCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_PCI=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_SYSTEM=yCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_FAN=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_THERMAL=yCONFIG_ACPI_TOSHIBA=yCONFIG_ACPI_DEBUG=yCONFIG_PM=y
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_X86_IO_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_NAMES=yCONFIG_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>
Quoted 1 line · Miles Lane
Hmm. This problem looks pretty straightforward.
Indeed. Have you tried 'make oldconfig' to set the symlink in include/ ?
Quoted 9 lines
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
Signature · 3 lines
Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/
Hmm. Sorry for the noise. I think made a backup
of 2.5 without running "make mrproper" first.
Thanks for your help, Rik.
Miles
Quoted 2 lines
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.
Quoted 10 lines · Tomas Szepe
Quoted 2 lines
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