Messages in this thread | | | Date | Wed, 09 Jun 1999 16:22:29 -0400 | From | Peter Rival <> | Subject | Re: 2.2.10-pre-3 build fails on alpha |
| |
As promised, the failure from a 2.2.10-pre-3 build for an SMP rawhide system (follows). The same configuration sans SMP builds fine. Looking at the SMP patches that Richard Henderson has put out, it looks like some elements of those patches are in here, but others aren't, causing the compilation failures. If I have time (heh, yeah...) I'll try to piece together what's going on and see if I can fix it up. Anyway...the compilation errors:
... gcc -D__KERNEL__ -I/home/frival/linuxtest/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o smp.o smp.c smp.c: In function `secondary_cpu_start': smp.c:357: warning: assignment from incompatible pointer type smp.c: In function `spin_unlock': smp.c:980: structure has no member named `saved_ipl' smp.c: At top level: smp.c:987: parse error before string constant smp.c: In function `debug_spin_lock': smp.c:988: number of arguments doesn't match prototype /home/frival/linuxtest/linux/include/asm/spinlock.h:109: prototype declaration smp.c:995: `lock' undeclared (first use in this function) smp.c:995: (Each undeclared identifier is reported only once smp.c:995: for each function it appears in.) smp.c:995: warning: left-hand operand of comma expression has no effect smp.c: At top level: smp.c:1044: parse error before string constant smp.c: In function `debug_spin_trylock': smp.c:1045: number of arguments doesn't match prototype /home/frival/linuxtest/linux/include/asm/spinlock.h:110: prototype declaration smp.c:1046: `lock' undeclared (first use in this function) smp.c:1046: warning: left-hand operand of comma expression has no effect make[1]: *** [smp.o] Error 1 make[1]: Leaving directory `/home/frival/linuxtest/linux/arch/alpha/kernel' make: *** [_dir_arch/alpha/kernel] Error 2
Jeff Garzik wrote: > > Peter Rival wrote: > > > > You can just #if 0...#endif the offending re-definition. For some reason the patch adds the same declaration twice. Somewhere down the line it doesn't compile for an SMP (rawhide) > > platform either, but the avanti might work past that. Unfortunately I toasted that build tree trying to figure out why my AIM runs are still crashing. (Hint: don't bother > > #define-ing DEBUG_ISP1020 to 1 if you're trying to run a 100 user simulation on your system with _heavy_ filesystem work across 4 cards. I ran out of disk space with the debug > > messages... *sigh*) See if the above helps...let me know if it compiles the rest of the way... > > Yeah, getting past it was easy, but I wanted to make sure it was known. > CONFIG_ALPHA_AVANTI disables SMP, so I didn't have much trouble after > that. > > "bunzip2 -c xx | tar" and kernel compiles still occasionally crash my > machine, dropping me back to SRM with a "kernel stack not valid" error. > We'll see if that happens until 2.2.10, it does until 2.2.9 and 2.3.x... > > Jeff > > > > > - Pete > > > > Jeff Garzik wrote: > > > > > This is what I get on an AlphaStation 200 (avanti), CVS-recent egcs, and > > > kernel 2.2.10-pre-3: > > > > > > /usr/local/egcs/bin/gcc -Wall -Wstrict-prototypes -O3 -o scripts/split-include scripts/split-include.c > > > scripts/split-include include/linux/autoconf.h include/config > > > /usr/local/egcs/bin/gcc -D__KERNEL__ -I/usr/local/home/jgarzik/tmp/linux/include -Wall -Wstrict-prototypes -O3 -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -c -o init/main.o init/main.c > > > In file included from /usr/local/home/jgarzik/tmp/linux/include/asm/semaphore.h:12, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/fs.h:165, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/capability.h:13, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/binfmts.h:5, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/sched.h:8, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/mm.h:4, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/slab.h:14, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/malloc.h:4, > > > from /usr/local/home/jgarzik/tmp/linux/include/linux/proc_fs.h:5, > > > from init/main.c:15: > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:157: redeclaration of `enum amask_enum' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:158: conflicting types for `AMASK_BWX' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:151: previous declaration of `AMASK_BWX' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:159: conflicting types for `AMASK_FIX' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:152: previous declaration of `AMASK_FIX' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:160: conflicting types for `AMASK_MAX' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:153: previous declaration of `AMASK_MAX' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:161: conflicting types for `AMASK_PRECISE_TRAP' > > > /usr/local/home/jgarzik/tmp/linux/include/asm/system.h:154: previous declaration of `AMASK_PRECISE_TRAP' > > > make: *** [init/main.o] Error 1 > > > > > > - > > > 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/
- 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/
| |