Skip to contentSkip to conversation

make xconfig fails for older kernels

DISCUSSION Robert Hancock 3 participants 5 messages Oct 4, 2005 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 9 lines · Felix Oxley

I have downloaded 2.6.0 + patches up to 2.6.13 from kernel.org.

When I try to configure the kernel using 'make xconfig' I get the following error:

scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’ follows non-static declaration scripts/kconfig/lkc.h:63: error: previous declaration of ‘current_menu’ was here make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2

Quoted 4 lines

I attempted make menuconfig, make config, and make oldconfig but each failed with the same error,

This happens on 2.6.0, 2.6.1, 2.6.2 2.6.3, 2.6.4.
I have previously built newer kernels such as 2.6.13-rc2-rt7 without a problem.

What gcc version? The configuration program may have had some compile bugs with newer compilers that were fixed in later kernels. In particular I think gcc4 is stricter about those "static declaration follows non-static" problems.

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/
#2 lore raw
Quoted 4 lines · Robert Hancock

What gcc version? The configuration program may have had some compile bugs with newer compilers that were fixed in later kernels. In particular I think gcc4 is stricter about those "static declaration follows non-static" problems.

I think you have nailed it. I'm using GCC 4.0.2.
Incidentally the first 2.6 kernel in which this issue was resolved is 2.6.9. I will install GCC 2.9.5.

Thanks to all.
Felix

#3 lore raw
Quoted 1 line · Felix Oxley

I think you have nailed it. I'm using GCC 4.0.2. Incidentally the first 2.6 kernel in which this issue was resolved is 2.6.9.

For the record, the first version of the stock kernel which will build for me with GCC 4.0.2 is 2.16.12. (Using a minimal .config)

#4 lore raw
Quoted 8 lines
Quoted 1 line · Felix Oxley

I think you have nailed it. I'm using GCC 4.0.2. Incidentally the first 2.6 kernel in which this issue was resolved is 2.6.9.

For the record, the first version of the stock kernel which will build for me with GCC 4.0.2 is 2.16.12. (Using a minimal .config)

To clarify, using GCC 4.0.2 I get the following:

	<= 2.6.9 	cannot make config/menuconfig/xconfig
	2.6.10 + 11	build fails in i386/asm(?)
	2.6.12		builds ok

Felix

#5 lore raw
Quoted 11 lines · Felix Oxley
Quoted 10 lines
Quoted 2 lines · Felix Oxley

I think you have nailed it. I'm using GCC 4.0.2. Incidentally the first 2.6 kernel in which this issue was resolved is 2.6.9.

For the record, the first version of the stock kernel which will build for me with GCC 4.0.2 is 2.16.12. (Using a minimal .config)

Quoted 5 lines

To clarify, using GCC 4.0.2 I get the following:

	<= 2.6.9 	cannot make config/menuconfig/xconfig
	2.6.10 + 11	build fails in i386/asm(?)
	2.6.12		builds ok

Assuming you are on i386 this 100% what was expected since kernel 2.6.12 is the first kernel to compile with gcc 4.0 .

Quoted 1 line

Felix

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