Linker errors (drivers/scsi/scsidrv.o) compiling 2.4.10 on SPARC

Michael Goetze (mgoetze5@yahoo.com)
Thu, 27 Sep 2001 03:50:26 -0700 (PDT)


Hi,

I'm running Debian GNU/Linux woody on my SPARCstation 5 and trying to
compile Linux 2.4.10. Making all_targets fails with the following
linker error:

*** Begin output ***

make[1]: Entering directory `/usr/src/linux/arch/sparc/boot'
ld -m elf32_sparc -r /usr/src/linux/arch/sparc/kernel/head.o
/usr/src/linux/arch/sparc/kernel/init_task.o /usr/src/linux/init/main.o
/usr/src/linux/init/version.o \
--start-group \
/usr/src/linux/arch/sparc/kernel/kernel.o
/usr/src/linux/arch/sparc/mm/mm.o /usr/src/linux/kernel/kernel.o
/usr/src/linux/mm/mm.o /usr/src/linux/fs/fs.o /usr/src/linux/ipc/ipc.o
/usr/src/linux/arch/sparc/math-emu/math-emu.o
/usr/src/linux/drivers/char/char.o /usr/src/linux/drivers/block/block.o
/usr/src/linux/drivers/misc/misc.o /usr/src/linux/drivers/net/net.o
/usr/src/linux/drivers/media/media.o
/usr/src/linux/drivers/scsi/scsidrv.o
/usr/src/linux/drivers/sbus/sbus_all.o
/usr/src/linux/drivers/video/video.o /usr/src/linux/net/network.o \
/usr/src/linux/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/sparc/prom/promlib.a
/usr/src/linux/arch/sparc/lib/lib.a \
--end-group -o vmlinux.o
objdump -x vmlinux.o | ./btfixupprep > btfix.s
gcc -c -o btfix.o btfix.s
make[1]: Leaving directory `/usr/src/linux/arch/sparc/boot'
ld -m elf32_sparc -T arch/sparc/vmlinux.lds arch/sparc/kernel/head.o
arch/sparc/kernel/init_task.o init/main.o init/version.o \
--start-group \
arch/sparc/kernel/kernel.o arch/sparc/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o arch/sparc/math-emu/math-emu.o
arch/sparc/boot/btfix.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/scsi/scsidrv.o
drivers/sbus/sbus_all.o drivers/video/video.o \
net/network.o \
/usr/src/linux/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/sparc/prom/promlib.a
/usr/src/linux/arch/sparc/lib/lib.a \
--end-group \
-o vmlinux
drivers/scsi/scsidrv.o: In function `sd_ioctl':
drivers/scsi/scsidrv.o(.text+0x101e8): undefined reference to
`__put_user_bad'
make: *** [vmlinux] Error 1
root@sparky (2) > gcc --version
2.95.2
root@sparky > ld --version
GNU ld 2.11.90.0.31
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License. This program has absolutely no
warranty.
Supported emulations:
elf32_sparc
sparclinux
elf64_sparc
sun4

*** End output ***

If you require further diagnostic information, drop me a note. Please
CC me on all replies as I am not subscribed to the list.

Thank you,

Michael

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/