Re: Two compile problems: Linux/Alpha 2.1.120, egcs 1.0.2

Jeff Garzik (jgarzik@pobox.com)
Tue, 8 Sep 1998 11:39:25 -0400 (EDT)


Emanuel Pirker wrote:
> compiling 2.1.120 offered two problems:

> 1.
> gcc -D__KERNEL__ -I/usr/src/linux-2.1.120-matrox/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8
> -Wa,-m21164a -DBWIO_ENABLED -c -o page_alloc.o page_alloc.c
> page_alloc.c: In function `__free_page':
> page_alloc.c:170: internal error--unrecognizable insn:
> (jump_insn 300 292 301 (return) -1 (nil)
> (nil))
> gcc: Internal compiler error: program cc1 got fatal signal 6

egcs doesn't like this when compiling with SMP=0. I get the same
results. However.... You are compiling with SMP=0, which is no longer
the default in 2.1.120.

Apply the patch I posted recently to your 2.1.120 kernel, and things
will compile and run without problems. After my patch, you should be
able to do 'make mrproper;make;make;make boot' without a problem.

> 2.
[...]
> fs/filesystems.a(nfs.o): In function `nfs_updatepage':
> write.c(.text+0x35d4): undefined reference to `checksignals'
> write.c(.text+0x35d8): undefined reference to `checksignals'
> fs/filesystems.a(nfs.o): In function `nfs_flush_dirty_pages':
> write.c(.text+0x3cf4): undefined reference to `checksignals'
> write.c(.text+0x3cf8): undefined reference to `checksignals'
> net/network.a(sunrpc.o): In function `call_allocate':
> clnt.c(.text+0xaf8): undefined reference to `checksignals'
> net/network.a(sunrpc.o)(.text+0xafc):clnt.c: more undefined references to
> `checksignals' follow
> make: *** [vmlinux] Error 1

Check the kernel mailing list archives. People are complaining about
this all over the place. :)

The fix was already described on the kernel mailing list, and my memory
of the exact files that need changing fails me at the moment. Basically
it involves moving checksignals() from arch/i386/kernel/????? into
linux/kernel/?????.

Jeff

P.S. You probably want to subscribe to linux-alpha as well.

-
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/faq.html