2002-06-15 10:13:36

by John Covici

[permalink] [raw]
Subject: 2.5.21 make problem

Hi. I am having a terrible time compiling 2.5.21 -- first some
missing includes which I think I have fixed and now at the very end
of the process after the modules have been installed I get the
following:

make[1]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot'
gcc -E -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA -DRAMDISK=512 bootsect.S -o bbootsect.s
as -o bbootsect.o bbootsect.s
ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
make[1]: *** No rule to make target `/usr/src/linux-2.5.21/include/linux/compile.h', needed by `bsetup.s'. Stop.

Any help would be appreciated with this.

--
John Covici
[email protected]


2002-06-15 15:43:45

by Kai Germaschewski

[permalink] [raw]
Subject: Re: 2.5.21 make problem

On Sat, 15 Jun 2002, John covici wrote:

> make[1]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot'
> gcc -E -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA -DRAMDISK=512 bootsect.S -o bbootsect.s
> as -o bbootsect.o bbootsect.s
> ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
> make[1]: *** No rule to make target `/usr/src/linux-2.5.21/include/linux/compile.h', needed by `bsetup.s'. Stop.

I suppose that means that compile.h does not exist at that location, for
whichever reason. If you do "make" (or just "make SUBDIRS=init"), it
should be generated. Does it output something something like "Generating
../include/linux/compile.h"?

Is scripts/mkcompile_h executable?

--Kai


2002-06-15 17:54:18

by Kai Germaschewski

[permalink] [raw]
Subject: Re: 2.5.21 make problem

On Sat, 15 Jun 2002, John covici wrote:

> Cleaning up (boot)
> make[2]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot/compressed'
> make[2]: Leaving directory `/usr/src/linux-2.5.21/arch/i386/boot/compressed'
> make[1]: Leaving directory `/usr/src/linux-2.5.21/arch/i386/boot'
> Cleaning up
> make[1]: Entering directory `/usr/src/linux-2.5.21/Documentation/DocBook'
> Cleaning up (DocBook)
> make[1]: Leaving directory `/usr/src/linux-2.5.21/Documentation/DocBook'
> make[1]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot'
> gcc -E -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA -DRAMDISK=512 bootsect.S -o bbootsect.s
> as -o bbootsect.o bbootsect.s
> ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
> make[1]: *** No rule to make target `/usr/src/linux-2.5.21/include/linux/compile.h', needed by `bsetup.s'. Stop.
> make[1]: Leaving directory `/usr/src/linux-2.5.21/arch/i386/boot'
> make: *** [bzImage] Error 2

What's the command line you're using? It seems like you have "make clean"
in there, no big surprise that that breaks.

> on Saturday 06/15/2002 Kai Germaschewski([email protected]) wrote
> > On Sat, 15 Jun 2002, John covici wrote:
> >
> > > make[1]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot'
> > > gcc -E -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA -DRAMDISK=512 bootsect.S -o bbootsect.s
> > > as -o bbootsect.o bbootsect.s
> > > ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
> > > make[1]: *** No rule to make target `/usr/src/linux-2.5.21/include/linux/compile.h', needed by `bsetup.s'. Stop.
> >
> > I suppose that means that compile.h does not exist at that location, for
> > whichever reason. If you do "make" (or just "make SUBDIRS=init"), it
> > should be generated. Does it output something something like "Generating
> > ../include/linux/compile.h"?
> >
> > Is scripts/mkcompile_h executable?

You applied patches which affect the build without mentioning them. You
didn't answer a single question I asked. That makes it hard to help you.

--Kai


2002-06-15 22:39:02

by John Covici

[permalink] [raw]
Subject: Re: 2.5.21 make problem

I had the bright idea of taking the clean out of there, so I was left
with
make dep bzImage modules_install 2>&1 |tee foo

but that didn't help -- thought it would.

on Saturday 06/15/2002 Kai Germaschewski([email protected]) wrote
> On Sat, 15 Jun 2002, John covici wrote:
>
> > Cleaning up (boot)
> > make[2]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot/compressed'
> > make[2]: Leaving directory `/usr/src/linux-2.5.21/arch/i386/boot/compressed'
> > make[1]: Leaving directory `/usr/src/linux-2.5.21/arch/i386/boot'
> > Cleaning up
> > make[1]: Entering directory `/usr/src/linux-2.5.21/Documentation/DocBook'
> > Cleaning up (DocBook)
> > make[1]: Leaving directory `/usr/src/linux-2.5.21/Documentation/DocBook'
> > make[1]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot'
> > gcc -E -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA -DRAMDISK=512 bootsect.S -o bbootsect.s
> > as -o bbootsect.o bbootsect.s
> > ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
> > make[1]: *** No rule to make target `/usr/src/linux-2.5.21/include/linux/compile.h', needed by `bsetup.s'. Stop.
> > make[1]: Leaving directory `/usr/src/linux-2.5.21/arch/i386/boot'
> > make: *** [bzImage] Error 2
>
> What's the command line you're using? It seems like you have "make clean"
> in there, no big surprise that that breaks.
>
> > on Saturday 06/15/2002 Kai Germaschewski([email protected]) wrote
> > > On Sat, 15 Jun 2002, John covici wrote:
> > >
> > > > make[1]: Entering directory `/usr/src/linux-2.5.21/arch/i386/boot'
> > > > gcc -E -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA -DRAMDISK=512 bootsect.S -o bbootsect.s
> > > > as -o bbootsect.o bbootsect.s
> > > > ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
> > > > make[1]: *** No rule to make target `/usr/src/linux-2.5.21/include/linux/compile.h', needed by `bsetup.s'. Stop.
> > >
> > > I suppose that means that compile.h does not exist at that location, for
> > > whichever reason. If you do "make" (or just "make SUBDIRS=init"), it
> > > should be generated. Does it output something something like "Generating
> > > ../include/linux/compile.h"?
> > >
> > > Is scripts/mkcompile_h executable?
>
> You applied patches which affect the build without mentioning them. You
> didn't answer a single question I asked. That makes it hard to help you.
>
> --Kai
>

--
John Covici
[email protected]

2002-06-15 22:57:26

by Sam Ravnborg

[permalink] [raw]
Subject: Re: 2.5.21 make problem

On Sat, Jun 15, 2002 at 06:38:57PM -0400, John covici wrote:
> I had the bright idea of taking the clean out of there, so I was left
> with
> make dep bzImage modules_install 2>&1 |tee foo
>
> but that didn't help -- thought it would.

I have once seen something similar.
Have you tried "make mrproper" to clean up and try again?

Sam

2002-06-16 02:22:01

by John Covici

[permalink] [raw]
Subject: Re: 2.5.21 make problem

I did the mrproper then the make with the clean and then the make
without the clean in that order and still no results.


on Sunday 06/16/2002 Sam Ravnborg([email protected]) wrote
> On Sat, Jun 15, 2002 at 06:38:57PM -0400, John covici wrote:
> > I had the bright idea of taking the clean out of there, so I was left
> > with
> > make dep bzImage modules_install 2>&1 |tee foo
> >
> > but that didn't help -- thought it would.
>
> I have once seen something similar.
> Have you tried "make mrproper" to clean up and try again?
>
> Sam

--
John Covici
[email protected]

2002-06-16 02:53:19

by Kai Germaschewski

[permalink] [raw]
Subject: Re: 2.5.21 make problem



On Sat, 15 Jun 2002, John covici wrote:

> I did the mrproper then the make with the clean and then the make
> without the clean in that order and still no results.

Could you mail me your .config and the exact commands which lead to the
failure (off-list). Actually, can you send your top-level Makefile as
well.

Can you reproduce the problem on an clean kernel.org tree (no further
patches applied? I suspect something went wrong with the extra patches you
applied.

--Kai