Skip to contentSkip to conversation

2.6.2-mm1 won't compile (been doing this since 2.6.1-mm2 or so)

DISCUSSION Robert F Merrill 2 participants 4 messages Feb 7, 2004 – Feb 8, 2004

lore
Share & tools
lore
#0 lore raw

When I upgraded to 2.6.1-mm4, I did the usual thing, copied my old .config from 2.6.1-mm1 and did make oldconfig.

However, when I run make, this happens:

include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) include/asm/processor.h:68: error: requested alignment is not a constant
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1

The only way I've found to fix this is to add a manual #define for this symbol to autoconf.h

The config option IS in i386/defconfig, but for some reason doesn't get put into .config

if I add it to .config manually, it gets removed when I run make (?!?).

I don't think this happens if I delete .config and make one from scratch.

#1 lore raw
Quoted 14 lines · Robert F Merrill

When I upgraded to 2.6.1-mm4, I did the usual thing, copied my old .config from 2.6.1-mm1 and did make oldconfig.

However, when I run make, this happens:

include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) include/asm/processor.h:68: error: requested alignment is not a constant make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1

The only way I've found to fix this is to add a manual #define for this symbol to autoconf.h

Quoted 6 lines

The config option IS in i386/defconfig, but for some reason doesn't get put into .config

if I add it to .config manually, it gets removed when I run make (?!?).

I don't think this happens if I delete .config and make one from scratch.

It seems when you did "make oldconfig" you said "no" to all cpu options.

You should select the cpu type(s) you want to run your kernel on.

Run "make menuconfig" and select the appropriate cpu types in
Processor type and features
Processor support

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#2 lore raw
Quoted 13 lines · Adrian Bunk

It seems when you did "make oldconfig" you said "no" to all cpu options.

You should select the cpu type(s) you want to run your kernel on.

Run "make menuconfig" and select the appropriate cpu types in
Processor type and features
Processor support

cu
Adrian

Hm... how did that happen?

#3 lore raw
Quoted 10 lines · Robert F Merrill
Quoted 8 lines · Adrian Bunk

It seems when you did "make oldconfig" you said "no" to all cpu options.

You should select the cpu type(s) you want to run your kernel on.

Run "make menuconfig" and select the appropriate cpu types in Processor type and features
Processor support

Quoted 6 lines
Quoted 5 lines

cu
Adrian

Hm... how did that happen?

During "make oldconfig" you saw

Select all processors your kernel should support

After this, you were prompted for every single supported cpu type.

It seems you said "no" to all cpu types including the one your computer has?

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed