2.5.23 won't compile
_Summary_
Can't get linux kernel 2.5.23 to compile with success using config options in the attached file "config-2.5.23"
_Full description_
When trying to compile the kernel using config options in "config-2.5.13", I get the following erros during a "make bzImage":
make[1]: Entering directory `/usr/src/linux-2.5.23/kernel'
gcc -Wp,-MD,./.sched.o.d -D__KERNEL__
-I/usr/src/linux-2.5.23/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 -fno-omit-frame-pointer
-DKBUILD_BASENAME=sched -c -o sched.o sched.c
sched.c: In function `sys_sched_setaffinity':
sched.c:1332: `cpu_online_map' undeclared (first use in this function) sched.c:1332: (Each undeclared identifier is reported only once sched.c:1332: for each function it appears in.)
sched.c: In function `sys_sched_getaffinity':
sched.c:1391: `cpu_online_map' undeclared (first use in this function) make[1]: *** [sched.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.23/kernel'
make: *** [kernel] Error 2
_Keywords
_
Compile, Kernel
Quoted 10 lines · Felipe Alfaro Solana
_Summary_
Can't get linux kernel 2.5.23 to compile with success using config options in the attached file "config-2.5.23"
_Fulldescription_When trying to compile the kernel using config options in "config-2.5.13", I get the following erros during a "make bzImage":
Quoted 10 lines
make[1]: Entering directory `/usr/src/linux-2.5.23/kernel'
gcc -Wp,-MD,./.sched.o.d -D__KERNEL__
-I/usr/src/linux-2.5.23/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 -fno-omit-frame-pointer
-DKBUILD_BASENAME=sched -c -o sched.osched.c
sched.c: In function `sys_sched_setaffinity':
sched.c:1332: `cpu_online_map' undeclared (first use in this function)
...
This is a known problem. The following patch is already in Linus' BK repository:
include/linux/smp.h +1 -0
@@ -86,6 +86,7 @@#define smp_call_function (func,info,retry,wait) ({ 0; })static inline void smp_send_reschedule (int cpu) { }static inline void smp_send_reschedule_all (void ) { } +#define cpu_online_map 1#define cpu_online (cpu) 1#define num_online_cpus () 1#define __per_cpu_data
cu
Adrian
Signature · 3 lines
You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox