Re: Compile error w ac20

From: iafilius@xs4all.nl
Date: Sun Jun 18 2000 - 07:52:43 EST


Hi same problem here, but with this patch i get:
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c checksum.S -o checksum.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -c -o old-checksum.o old-checksum.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -c -o delay.o delay.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -c -o usercopy.o usercopy.c
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c getuser.S -o getuser.o
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c putuser.S -o putuser.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -c -o iodebug.o iodebug.c
rm -f lib.a
ar rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o putuser.o iodebug.o
make[2]: Leaving directory `/usr/src/linux-2.4.0-test1-ac20/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.0-test1-ac20/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
        drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/parport/parport.a drivers/char/drm/drm.o drivers/net/fc/fc.a drivers/net/appletalk/appletalk.a drivers/net/tokenring/tr.a drivers/net/wan/wan.a drivers/atm/atm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/cdrom.a drivers/pci/pci.a drivers/video/video.o drivers/net/hamradio/hamradio.o \
        net/network.o \
        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/block/block.o: In function `md_init':
drivers/block/block.o(.text.init+0x1f0): undefined reference to `calibrate_xor_block'
make: *** [vmlinux] Error 1
sjoerd:/usr/src/linux #

Compiled with almost anything as module.

Greatings,

On 18 Jun 2000, Juan J. Quintela wrote:

> >>>>> "richard" == Richard Torkar <ds98rito@thn.htu.se> writes:
>
> richard> drivers/net/net.o drivers/parport/parport.a drivers/char/agp/agp.o
> richard> drivers/ide/idedriver.o drivers/cdrom/cdrom.a drivers/pci/pci.a
> richard> drivers/video/video.o drivers/i2c/i2c.o drivers/sensors/sensors.a \
> richard> net/network.o \
> richard> /usr/src/linux-2.4.0-test1/arch/i386/lib/lib.a
> richard> /usr/src/linux-2.4.0-test1/lib/lib.a
> richard> /usr/src/linux-2.4.0-test1/arch/i386/lib/lib.a \
> richard> --end-group \
> richard> -o vmlinux
> richard> ld: cannot open drivers/block/block.a: No such file or directory
>
> Hi
> you need that patch:
>
> Later, Juan.
>
> diff -urN --exclude-from=/home/lfcia/quintela/work/kernel/exclude base/Makefile working/Makefile
> - --- base/Makefile Sat Jun 17 23:25:30 2000
> +++ working/Makefile Sat Jun 17 23:44:50 2000
> @@ -119,7 +119,7 @@
>
> CORE_FILES =kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
> NETWORKS =net/network.o
> - -DRIVERS =drivers/block/block.a \
> +DRIVERS =drivers/block/block.o \
> drivers/char/char.o \
> drivers/misc/misc.o \
> drivers/net/net.o \
>
>
>
>
>
> - --
> In theory, practice and theory are the same, but in practice they
> are different -- Larry McVoy
>
> Please read the FAQ at http://www.tux.org/lkml/
>
> ------------------------------
>

Arjan Filius
mailto:iafilius@xs4all.nl

-
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 : Fri Jun 23 2000 - 21:00:15 EST