Skip to contentSkip to conversation

2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory

DISCUSSION Miles Lane 4 participants 6 messages Jul 21, 2002 – Jul 22, 2002

lore
Share & tools
lore

Miles Lane

author
#0 lore raw

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

author
#1 lore raw

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>

#2 lore raw
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/
#4 lore raw
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.

#5 lore raw
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