public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
@ 2002-07-21  0:27 Miles Lane
  2002-07-21  0:34 ` Miles Lane
  0 siblings, 1 reply; 7+ messages in thread
From: Miles Lane @ 2002-07-21  0:27 UTC (permalink / raw)
  To: LKML

  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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
  2002-07-21  0:27 Miles Lane
@ 2002-07-21  0:34 ` Miles Lane
  2002-07-21  0:47   ` Rik van Riel
  2002-07-21  1:37   ` Miles Lane
  0 siblings, 2 replies; 7+ messages in thread
From: Miles Lane @ 2002-07-21  0:34 UTC (permalink / raw)
  To: LKML

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>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
  2002-07-21  0:34 ` Miles Lane
@ 2002-07-21  0:47   ` Rik van Riel
  2002-07-21  1:37   ` Miles Lane
  1 sibling, 0 replies; 7+ messages in thread
From: Rik van Riel @ 2002-07-21  0:47 UTC (permalink / raw)
  To: Miles Lane; +Cc: LKML

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
       [not found] <Pine.LNX.4.44L.0207202153190.12241-100000@imladris.surriel.com>
@ 2002-07-21  1:32 ` Miles Lane
  0 siblings, 0 replies; 7+ messages in thread
From: Miles Lane @ 2002-07-21  1:32 UTC (permalink / raw)
  To: Rik van Riel; +Cc: LKML

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
  2002-07-21  0:34 ` Miles Lane
  2002-07-21  0:47   ` Rik van Riel
@ 2002-07-21  1:37   ` Miles Lane
  2002-07-21  5:39     ` Tomas Szepe
  1 sibling, 1 reply; 7+ messages in thread
From: Miles Lane @ 2002-07-21  1:37 UTC (permalink / raw)
  To: LKML, Rik van Riel

Hmm.  Sorry for the noise.  I think made a backup
of 2.5 without running "make mrproper" first.

Thanks for your help, Rik.

	Miles


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
  2002-07-21  1:37   ` Miles Lane
@ 2002-07-21  5:39     ` Tomas Szepe
  2002-07-22 14:31       ` Kai Germaschewski
  0 siblings, 1 reply; 7+ messages in thread
From: Tomas Szepe @ 2002-07-21  5:39 UTC (permalink / raw)
  To: Miles Lane; +Cc: LKML, Rik van Riel, Kai Germaschewski

> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory
  2002-07-21  5:39     ` Tomas Szepe
@ 2002-07-22 14:31       ` Kai Germaschewski
  0 siblings, 0 replies; 7+ messages in thread
From: Kai Germaschewski @ 2002-07-22 14:31 UTC (permalink / raw)
  To: Tomas Szepe; +Cc: Miles Lane, LKML

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-07-22 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.44L.0207202153190.12241-100000@imladris.surriel.com>
2002-07-21  1:32 ` 2.5.27 -- memory.c:50:22: asm/rmap.h: No such file or directory Miles Lane
2002-07-21  0:27 Miles Lane
2002-07-21  0:34 ` Miles Lane
2002-07-21  0:47   ` Rik van Riel
2002-07-21  1:37   ` Miles Lane
2002-07-21  5:39     ` Tomas Szepe
2002-07-22 14:31       ` Kai Germaschewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox