* Kernel 2.2.2pre5 does not compile @ 1999-02-21 17:07 Daniel J. Frasnelli 1999-02-21 17:15 ` Peter Petrakis 0 siblings, 1 reply; 7+ messages in thread From: Daniel J. Frasnelli @ 1999-02-21 17:07 UTC (permalink / raw) To: axp-list Just to save anyone else the trouble of downloading the 2.2.2pre5 patch, it does not seem to compile. Unless of course you want to fix it... System here is an EV56 with egcs-1.1.1 as the compiler. Error is: gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 \ -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a \ -DBWIO_ENABLED -DEXPORT_SYMTAB -c ksyms.c ksyms.c:375: `__down_trylock' undeclared here (not in a function) ksyms.c:375: initializer element for `__ksymtab___down_trylock.value' is \ not constant make[2]: *** [ksyms.o] Error 1 make[2]: Leaving directory `/usr/src/linux/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux/kernel' make: *** [_dir_kernel] Error 2 I'll check the changes between pre4 and pre5 to see what changed in ksyms.c. Daniel -- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernel 2.2.2pre5 does not compile 1999-02-21 17:07 Kernel 2.2.2pre5 does not compile Daniel J. Frasnelli @ 1999-02-21 17:15 ` Peter Petrakis 1999-02-21 22:22 ` 2.2.2pre5 followup Daniel J. Frasnelli 0 siblings, 1 reply; 7+ messages in thread From: Peter Petrakis @ 1999-02-21 17:15 UTC (permalink / raw) To: axp-list > make[1]: *** [first_rule] Error 2 > make[1]: Leaving directory `/usr/src/linux/kernel' > make: *** [_dir_kernel] Error 2 It might be the makefile. See how it complains about first rule? Compare the makefiles in that directory between the two versions as well. Peter -- www.alphalinux.org Peter Petrakis. Warrior/Engineer ppetrakis@alphalinux.org http://math.stcc.mass.edu/petrakis "<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..." ^ permalink raw reply [flat|nested] 7+ messages in thread
* 2.2.2pre5 followup 1999-02-21 17:15 ` Peter Petrakis @ 1999-02-21 22:22 ` Daniel J. Frasnelli 1999-02-21 23:02 ` 2.2.2pre5 followup (semaphores) Robert Bowles 0 siblings, 1 reply; 7+ messages in thread From: Daniel J. Frasnelli @ 1999-02-21 22:22 UTC (permalink / raw) To: axp-list [-- Attachment #1: Type: text/plain, Size: 892 bytes --] > It might be the makefile. See how it complains about first rule? Compare > the makefiles in that directory between the two versions as well. The Makefiles are identical between the two. Only thing that seems to have changed was ksyms.c: [root@relativity cmp]# diff ksyms.c-pre4 ksyms.c-pre5 64c64 < #ifdef MODVERSIONS --- > #ifdef CONFIG_MODVERSIONS 324a325,326 > EXPORT_SYMBOL(bdevname); > EXPORT_SYMBOL(cdevname); 372a375 > EXPORT_SYMBOL(__down_trylock); Here is the kicker, though: pre5 compiles just fine on an x86 machine. Same compiler, same kernel presently installed (2.2.2pre4). Attached is a comparison of the kernel builds on 2.2.2pre5 under x86, 2.2.2pre4 under axp, and 2.2.2pre5 under axp. Creating a trivial work-around for the time being is simple, but the problem should be tracked down before 2.2.2 goes final. Daniel -- [-- Attachment #2: pre5_compile.ascii --] [-- Type: text/plain, Size: 4244 bytes --] [root@relativity cmp]# diff ksyms.c-pre4 ksyms.c-pre5 64c64 < #ifdef MODVERSIONS --- > #ifdef CONFIG_MODVERSIONS 324a325,326 > EXPORT_SYMBOL(bdevname); > EXPORT_SYMBOL(cdevname); 372a375 > EXPORT_SYMBOL(__down_trylock); Kernel: Linux 2.2.2-pre5. Arch: x86, P5/133 Compiler: EGCS 1.1.1 scripts/split-include include/linux/autoconf.h include/config gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o init/main.o init/main.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c make -C kernel make[1]: Entering directory `/usr/src/linux/kernel' make all_targets make[2]: Entering directory `/usr/src/linux/kernel' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c signal.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c ksyms.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -fno-omit-frame-pointer -c -o sched.o sched.c (continues compliation) Kernel: Linux-2.2.2-pre4 Arch: Alpha, EV56 Compiler: EGCS 1.1.1 gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c scripts/split-include include/linux/autoconf.h include/config gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -c -o init/main.o init/main.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -DUTS_MACHINE='"alpha"' -c -o init/version.o init/version.c make -C kernel make[1]: Entering directory `/usr/src/linux-pre4/kernel' make all_targets make[2]: Entering directory `/usr/src/linux-pre4/kernel' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -DEXPORT_SYMTAB -c signal.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -DEXPORT_SYMTAB -c ksyms.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -fno-omit-frame-pointer -c -o sched.o sched.c (continues compilation) Kernel: Linux-2.2.2-pre5 Arch: Alpha, EV56 Compiler: EGCS 1.1.1 gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -c -o init/main.o init/main.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -DUTS_MACHINE='"alpha"' -c -o init/version.o init/version.c make -C kernel make[1]: Entering directory `/usr/src/linux-pre5/kernel' make all_targets make[2]: Entering directory `/usr/src/linux-pre5/kernel' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -DEXPORT_SYMTAB -c signal.c gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -DEXPORT_SYMTAB -c ksyms.c ksyms.c:375: `__down_trylock' undeclared here (not in a function) ksyms.c:375: initializer element for `__ksymtab___down_trylock.value' is not constant ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.2.2pre5 followup (semaphores) 1999-02-21 22:22 ` 2.2.2pre5 followup Daniel J. Frasnelli @ 1999-02-21 23:02 ` Robert Bowles 1999-02-21 22:59 ` Daniel J. Frasnelli 1999-02-22 3:20 ` Robert Bowles 0 siblings, 2 replies; 7+ messages in thread From: Robert Bowles @ 1999-02-21 23:02 UTC (permalink / raw) To: axp-list Thanks for the answer: 'linux/include/asm-i386/semaphore.h' has an asmlinkage int __down_trylock(struct semaphore * sem); Whereas 'linux/include/asm-alpha/semaphore.h' has none. I'm just adding "the line" and building right now. :) On Sun, Feb 21, 1999 at 05:22:29PM -0500, Daniel J. Frasnelli wrote: > From: "Daniel J. Frasnelli" <dfrasnel@csee.wvu.edu> > To: axp-list@redhat.com > > It might be the makefile. See how it complains about first rule? Compare > > the makefiles in that directory between the two versions as well. > The Makefiles are identical between the two. Only thing that > seems to have changed was ksyms.c: > > [root@relativity cmp]# diff ksyms.c-pre4 ksyms.c-pre5 > 64c64 > < #ifdef MODVERSIONS > --- > > #ifdef CONFIG_MODVERSIONS > 324a325,326 > > EXPORT_SYMBOL(bdevname); > > EXPORT_SYMBOL(cdevname); > 372a375 > > EXPORT_SYMBOL(__down_trylock); > > Here is the kicker, though: pre5 compiles just fine on an x86 machine. > Same compiler, same kernel presently installed (2.2.2pre4). > Attached is a comparison of the kernel builds on 2.2.2pre5 under x86, > 2.2.2pre4 under axp, and 2.2.2pre5 under axp. > Creating a trivial work-around for the time being is simple, but > the problem should be tracked down before 2.2.2 goes final. > > Daniel > -- > [root@relativity cmp]# diff ksyms.c-pre4 ksyms.c-pre5 > 64c64 > < #ifdef MODVERSIONS > --- > > #ifdef CONFIG_MODVERSIONS > 324a325,326 > > EXPORT_SYMBOL(bdevname); > > EXPORT_SYMBOL(cdevname); > 372a375 > > EXPORT_SYMBOL(__down_trylock); > > Kernel: Linux 2.2.2-pre5. > Arch: x86, P5/133 > Compiler: EGCS 1.1.1 > > scripts/split-include include/linux/autoconf.h include/config > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes > -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 > -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o init/main.o init/main.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes > -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 > -malign-jumps=2 -malign-functions=2 -DCPU=586 -DUTS_MACHINE='"i386"' -c > -o init/version.o init/version.c > make -C kernel > make[1]: Entering directory `/usr/src/linux/kernel' > make all_targets > make[2]: Entering directory `/usr/src/linux/kernel' > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 > -malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c signal.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 > -malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c ksyms.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 > -malign-jumps=2 -malign-functions=2 -DCPU=586 -fno-omit-frame-pointer > -c -o sched.o sched.c > (continues compliation) > > Kernel: Linux-2.2.2-pre4 > Arch: Alpha, EV56 > Compiler: EGCS 1.1.1 > > gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include > scripts/split-include.c > scripts/split-include include/linux/autoconf.h include/config > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -c -o init/main.o init/main.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -DUTS_MACHINE='"alpha"' -c -o init/version.o init/version.c > make -C kernel > make[1]: Entering directory `/usr/src/linux-pre4/kernel' > make all_targets > make[2]: Entering directory `/usr/src/linux-pre4/kernel' > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -DEXPORT_SYMTAB -c signal.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -DEXPORT_SYMTAB -c ksyms.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -fno-omit-frame-pointer -c -o sched.o sched.c > (continues compilation) > > Kernel: Linux-2.2.2-pre5 > Arch: Alpha, EV56 > Compiler: EGCS 1.1.1 > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -c -o init/main.o init/main.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -DUTS_MACHINE='"alpha"' -c -o init/version.o init/version.c > make -C kernel > make[1]: Entering directory `/usr/src/linux-pre5/kernel' > make all_targets > make[2]: Entering directory `/usr/src/linux-pre5/kernel' > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -DEXPORT_SYMTAB -c signal.c > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a > -DBWIO_ENABLED -DEXPORT_SYMTAB -c ksyms.c > ksyms.c:375: `__down_trylock' undeclared here (not in a function) > ksyms.c:375: initializer element for `__ksymtab___down_trylock.value' is not constant ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.2.2pre5 followup (semaphores) 1999-02-21 23:02 ` 2.2.2pre5 followup (semaphores) Robert Bowles @ 1999-02-21 22:59 ` Daniel J. Frasnelli 1999-02-22 3:20 ` Robert Bowles 1 sibling, 0 replies; 7+ messages in thread From: Daniel J. Frasnelli @ 1999-02-21 22:59 UTC (permalink / raw) To: rbowles; +Cc: axp-list On Sun, Feb 21, 1999 at 06:02:59PM -0500, Robert Bowles wrote: > Thanks for the answer: > > 'linux/include/asm-i386/semaphore.h' has an > asmlinkage int __down_trylock(struct semaphore * sem); > > Whereas 'linux/include/asm-alpha/semaphore.h' has none. Ah, that would make sense. > I'm just adding "the line" and building right now. :) Be sure you carbon linux-kernel@vger.rutgers.edu if you successfully build the kernel that way. I just forwarded my original message to axp-list to linux-kernel (l-kernel archives show pre5 is not very popular (grin)). I was able to find __down_trylock as well, sitting in semaphore.h. Also seems to lurk in sched.c: int __down_trylock(struct semaphore * sem) {etc.} Good luck, Daniel -- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.2.2pre5 followup (semaphores) 1999-02-21 23:02 ` 2.2.2pre5 followup (semaphores) Robert Bowles 1999-02-21 22:59 ` Daniel J. Frasnelli @ 1999-02-22 3:20 ` Robert Bowles 1999-02-22 3:12 ` Daniel J. Frasnelli 1 sibling, 1 reply; 7+ messages in thread From: Robert Bowles @ 1999-02-22 3:20 UTC (permalink / raw) To: axp-list Sorry, folks. I spoke too soon. I added an 'extern int __down_trylock(struct semaphore * sem);' to 'linux/include/asm-alpha/semaphore.h' and I got... < from make vmlinux > <- snip -> gcc -D__KERNEL__ -I/home/src/linux-2.2.2-pre5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a -DBWIO_ENABLED -fno-omit-frame-pointer -c -o sched.o sched.c sched.c:39: asm/semaphore-helper.h: No such file or directory sched.c:580: warning: alignment of `aligned_data' is greater than maximum object file alignment sched.c: In function `__down': sched.c:900: too few arguments to function `waking_non_zero' sched.c: In function `__down_interruptible': sched.c:912: warning: implicit declaration of function `waking_non_zero_interruptible' sched.c: In function `__down_trylock': sched.c:927: warning: implicit declaration of function `waking_non_zero_trylock' On Sun, Feb 21, 1999 at 06:02:59PM -0500, Robert Bowles wrote: > Thanks for the answer: > > 'linux/include/asm-i386/semaphore.h' has an > asmlinkage int __down_trylock(struct semaphore * sem); > > Whereas 'linux/include/asm-alpha/semaphore.h' has none. > I'm just adding "the line" and building right now. :) ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.2.2pre5 followup (semaphores) 1999-02-22 3:20 ` Robert Bowles @ 1999-02-22 3:12 ` Daniel J. Frasnelli 0 siblings, 0 replies; 7+ messages in thread From: Daniel J. Frasnelli @ 1999-02-22 3:12 UTC (permalink / raw) To: axp-list > I added an 'extern int __down_trylock(struct semaphore * sem);' > to 'linux/include/asm-alpha/semaphore.h' and I got... Rob, Apply the "retrofix" I posted to axp-list earlier. I am running pre5 on my system right now. It's a crude hack, but it allows me and anyone else interested in fixing the code to run pre5 while hacking. Daniel -- ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-02-22 3:28 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1999-02-21 17:07 Kernel 2.2.2pre5 does not compile Daniel J. Frasnelli 1999-02-21 17:15 ` Peter Petrakis 1999-02-21 22:22 ` 2.2.2pre5 followup Daniel J. Frasnelli 1999-02-21 23:02 ` 2.2.2pre5 followup (semaphores) Robert Bowles 1999-02-21 22:59 ` Daniel J. Frasnelli 1999-02-22 3:20 ` Robert Bowles 1999-02-22 3:12 ` Daniel J. Frasnelli
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox