Skip to contentSkip to conversation

2.5.21 make problem

DISCUSSION Kai Germaschewski 3 participants 5 messages Jun 15, 2002 – Jun 16, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · John covici

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)

Quoted 8 lines

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.

Quoted 15 lines

on Saturday 06/15/2002 Kai Germaschewski([email protected]) wrote

Quoted 14 lines · John covici
Quoted 6 lines

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

#2 lore raw

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

Quoted 42 lines · John covici
Quoted 16 lines

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.

Quoted 15 lines

on Saturday 06/15/2002 Kai Germaschewski([email protected]) wrote

Quoted 14 lines · John covici
Quoted 6 lines

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

Signature · 2 lines
         John Covici
         [email protected]
#3 lore raw
In reply to a message not in the archive
Quoted 5 lines · John covici

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

#4 lore raw

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

Quoted 11 lines · John covici
Quoted 5 lines

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

Signature · 2 lines
         John Covici
         [email protected]
#5 lore raw
Quoted 2 lines · John covici

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