2.3.99-pre5 build errors on Athlon systems with CONFIG_SMP set

From: Chris Fearnley (cjf@LinuxForce.net)
Date: Mon Apr 17 2000 - 07:29:51 EST


Building a 2.3.99-pre5 kernel for Athlon or K6/II/III with SMP on an
Athlon system fails to build. The following is from the Athlon build,
but a similar failure occurs with CONFIG_MK6 set.

scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/data/home/cjf/s2/kernel/linux/include -D__SMP__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -malign-functions=4 -fschedule-insns2 -mwide-multiply -fexpensive-optimizations -c -o init/main.o init/main.c
cc1: warning: instruction scheduling not supported on this target machine
/data/home/cjf/s2/kernel/linux/include/asm/hw_irq.h: In function `x86_do_profile':
In file included from /data/home/cjf/s2/kernel/linux/include/linux/irq.h:56,
                 from /data/home/cjf/s2/kernel/linux/include/asm/hardirq.h:5,
                 from /data/home/cjf/s2/kernel/linux/include/linux/interrupt.h:44,
                 from /data/home/cjf/s2/kernel/linux/include/asm/string.h:296,
                 from /data/home/cjf/s2/kernel/linux/include/linux/string.h:38,
                 from /data/home/cjf/s2/kernel/linux/include/linux/fs.h:23,
                 from /data/home/cjf/s2/kernel/linux/include/linux/capability.h:13,
                 from /data/home/cjf/s2/kernel/linux/include/linux/binfmts.h:5,
                 from /data/home/cjf/s2/kernel/linux/include/linux/sched.h:8,
                 from /data/home/cjf/s2/kernel/linux/include/linux/mm.h:4,
                 from /data/home/cjf/s2/kernel/linux/include/linux/slab.h:14,
                 from /data/home/cjf/s2/kernel/linux/include/linux/malloc.h:4,
                 from /data/home/cjf/s2/kernel/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/data/home/cjf/s2/kernel/linux/include/asm/hw_irq.h:199: `current' undeclared (first use
this function)
/data/home/cjf/s2/kernel/linux/include/asm/hw_irq.h:199: (Each undeclared identifier is r/data/home/cjf/s2/kernel/linux/include/asm/hw_irq.h:199: for each function it appears in.)
/data/home/cjf/s2/kernel/linux/include/linux/interrupt.h: In function `raise_softirq':
In file included from /data/home/cjf/s2/kernel/linux/include/asm/string.h:296,
                 from /data/home/cjf/s2/kernel/linux/include/linux/string.h:38,
                 from /data/home/cjf/s2/kernel/linux/include/linux/fs.h:23,
                 from /data/home/cjf/s2/kernel/linux/include/linux/capability.h:13,
                 from /data/home/cjf/s2/kernel/linux/include/linux/binfmts.h:5,
                 from /data/home/cjf/s2/kernel/linux/include/linux/sched.h:8,
                 from /data/home/cjf/s2/kernel/linux/include/linux/mm.h:4,
                 from /data/home/cjf/s2/kernel/linux/include/linux/slab.h:14,
                 from /data/home/cjf/s2/kernel/linux/include/linux/malloc.h:4,
                 from /data/home/cjf/s2/kernel/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/data/home/cjf/s2/kernel/linux/include/linux/interrupt.h:99: `current' undeclared (first
/data/home/cjf/s2/kernel/linux/include/linux/interrupt.h: In function `tasklet_schedule':/data/home/cjf/s2/kernel/linux/include/linux/interrupt.h:170: `current' undeclared (first use this function)
/data/home/cjf/s2/kernel/linux/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/data/home/cjf/s2/kernel/linux/include/linux/interrupt.h:184: `current' undeclared (first use this function)
/data/home/cjf/s2/kernel/linux/include/asm/string.h: In function `__constant_memcpy3d':
In file included from /data/home/cjf/s2/kernel/linux/include/linux/string.h:38,
                 from /data/home/cjf/s2/kernel/linux/include/linux/fs.h:23,
                 from /data/home/cjf/s2/kernel/linux/include/linux/capability.h:13,
                 from /data/home/cjf/s2/kernel/linux/include/linux/binfmts.h:5,
                 from /data/home/cjf/s2/kernel/linux/include/linux/sched.h:8,
                 from /data/home/cjf/s2/kernel/linux/include/linux/mm.h:4,
                 from /data/home/cjf/s2/kernel/linux/include/linux/slab.h:14,
                 from /data/home/cjf/s2/kernel/linux/include/linux/malloc.h:4,
                 from /data/home/cjf/s2/kernel/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/data/home/cjf/s2/kernel/linux/include/asm/string.h:305: `current' undeclared (first use this function)
/data/home/cjf/s2/kernel/linux/include/asm/string.h: In function `__memcpy3d':
/data/home/cjf/s2/kernel/linux/include/asm/string.h:312: `current' undeclared (first use this function)

-- 
Christopher J. Fearnley     |   LinuxForce Inc.
cjf@LinuxForce.net          |   Chief Technology Officer
http://www.LinuxForce.net   |   Design Science Revolutionary
               "Dare to be Naïve" -- Bucky Fuller

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:10 EST