mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Build problem in sched.c in 2.5.23
@ 2002-06-19  8:12 Joseph Pingenot
  2002-06-19  8:22 ` Erlend Aasland
  2002-06-19  8:22 ` Adrian Bunk
  0 siblings, 2 replies; 4+ messages in thread
From: Joseph Pingenot @ 2002-06-19  8:12 UTC (permalink / raw)
  To: linux-kernel

make[1]: Entering directory `/usr/local/src/kernel/linux-2.5.23/kernel'
  gcc -Wp,-MD,./.sched.o.d -D__KERNEL__ -I/usr/local/src/kernel/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/local/src/kernel/linux-2.5.23/kernel'
make: *** [kernel] Error 2

Need any more details?
-- 
Joseph======================================================jap3003@ksu.edu
"[...]this, they say, cost about $40 too much, and about 20,000 Iowans 
 bought [Windows] 98.  Which gives us a tab of $800,000, i.e. the
 equivalent of a rounding error in Redmond's vast war chest." -The Register

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build problem in sched.c in 2.5.23
  2002-06-19  8:12 Build problem in sched.c in 2.5.23 Joseph Pingenot
@ 2002-06-19  8:22 ` Erlend Aasland
  2002-06-19  8:22 ` Adrian Bunk
  1 sibling, 0 replies; 4+ messages in thread
From: Erlend Aasland @ 2002-06-19  8:22 UTC (permalink / raw)
  To: Joseph Pingenot; +Cc: linux-kernel

On Wed, Jun 19, 2002 at 03:12:48AM -0500, Joseph Pingenot wrote:
> sched.c:1391: `cpu_online_map' undeclared (first use in this function)
> 
> Need any more details?

Linus posted a patch for this:
http://marc.theaimsgroup.com/?l=linux-kernel&m=102446529018948&w=2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build problem in sched.c in 2.5.23
  2002-06-19  8:12 Build problem in sched.c in 2.5.23 Joseph Pingenot
  2002-06-19  8:22 ` Erlend Aasland
@ 2002-06-19  8:22 ` Adrian Bunk
  2002-06-19 14:45   ` New Build problem in sched.c in 2.5.23 on an Alpha Oliver Pitzeier
  1 sibling, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2002-06-19  8:22 UTC (permalink / raw)
  To: Joseph Pingenot; +Cc: linux-kernel

On Wed, 19 Jun 2002, Joseph Pingenot wrote:

> make[1]: Entering directory `/usr/local/src/kernel/linux-2.5.23/kernel'
>   gcc -Wp,-MD,./.sched.o.d -D__KERNEL__ -I/usr/local/src/kernel/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/local/src/kernel/linux-2.5.23/kernel'
> make: *** [kernel] Error 2
>
> Need any more details?


The following patch that is already in Linus' BK repository fixes it:


--- a/include/linux/smp.h	Wed Jun 19 00:00:41 2002
+++ b/include/linux/smp.h	Wed Jun 19 00:00:41 2002
@@ -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

-- 

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* New Build problem in sched.c in 2.5.23 on an Alpha
  2002-06-19  8:22 ` Adrian Bunk
@ 2002-06-19 14:45   ` Oliver Pitzeier
  0 siblings, 0 replies; 4+ messages in thread
From: Oliver Pitzeier @ 2002-06-19 14:45 UTC (permalink / raw)
  To: linux-kernel

I got another problem in sched.c

In file included from sched.c:26:
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 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5
-Wa,-mev6 -nostdinc -iwithprefix include    -fno-omit-frame-pointer
-DKBUILD_BASENAME=sched   -c -o sched.o sched.c
In file included from sched.c:26:
/usr/src/linux-2.5.23/include/asm/mmu_context.h: In function
`init_new_context':
/usr/src/linux-2.5.23/include/asm/mmu_context.h:230: `smp_num_cpus'
undeclared (first use in this function)
/usr/src/linux-2.5.23/include/asm/mmu_context.h:230: (Each undeclared
identifier is reported only once
/usr/src/linux-2.5.23/include/asm/mmu_context.h:230: for each function
it appears in.)
/usr/src/linux-2.5.23/include/asm/mmu_context.h:231: warning: implicit
declaration of function `cpu_logical_map'
sched.c: In function `try_to_wake_up':
sched.c:362: warning: label `repeat_lock_task' defined but not used
sched.c: In function `schedule':
sched.c:822: warning: implicit declaration of function
`prepare_arch_schedule'
sched.c:879: warning: implicit declaration of function
`prepare_arch_switch'
sched.c:883: warning: implicit declaration of function
`finish_arch_switch'
sched.c:886: warning: implicit declaration of function
`finish_arch_schedule'
make[1]: *** [sched.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.23/kernel'
make: *** [kernel] Error 2

Any ideas?

Greetz,
 Oliver



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-19 14:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-19  8:12 Build problem in sched.c in 2.5.23 Joseph Pingenot
2002-06-19  8:22 ` Erlend Aasland
2002-06-19  8:22 ` Adrian Bunk
2002-06-19 14:45   ` New Build problem in sched.c in 2.5.23 on an Alpha Oliver Pitzeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®