Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2000 01:18:33 -0500 (EST)
From:      Nicholas Merrill <lists@mojo.calyx.net>
To:        freebsd-alpha@freebsd.org
Subject:   problems compiling kernel with bktr0 support: barf @ 'linking kernel' stage
Message-ID:  <Pine.BSO.4.21.0003270118090.27591-100000@mojo.calyx.net>

next in thread | raw e-mail | index | archive | help

Hey all

I am running 4.0-CURRENT on a 164sx 533mhz board.   I am trying to compile
a kernel with bt848 (bktr0) support.  I first took my working,
custom kernel config file, and added the lines:

device          bktr0
device          iicbus0
device          iicbb0
device          smbus0


Next I tried to compile the kernel.  I got a complaint of two missing
files named ioctl_bt848.h and ioctl_meteor.h.  So I copied those over
from the proper i386 include directory to the alpha dir.  Then that error
stopped, and the compile seemed to almost finish.  But near the end, when
it gets to 'linking kernel' it barfed.  Has anyone got any clue what I'm
doing wrong?  I found no mention of this in any recent mailing list
traffic.

Here is my dmesg output, and then the output of the kernel 'make'

--------------------BEGIN DMESG--------------------
Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #1: Thu Mar 16 07:43:57 EST 2000
    root@hostname.domain.com:/usr/src/sys/compile/HOSTNAME
EB164
Digital AlphaPC 164SX 533 MHz, 531MHz
8192 byte page size, 1 processor.
CPU: PCA56 (21164PC) major=9 minor=2 extensions=0x1<BWX>
OSF PAL rev: 0x1000600020116
real memory  = 266485760 (260240K bytes)
avail memory = 255598592 (249608K bytes)
Preloaded elf kernel "kernel" at 0xfffffc00005ae000.
cia0: Pyxis, pass 1
cia0: extended capabilities: 1<BWEN>
pcib0: <2117x PCI host bus adapter> on cia0
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x109e, dev=0x0350) at 5.0 irq 9
pci0: <Trident model 9660 VGA-compatible display device> at 6.0 irq 11
de0: <Digital 21140A Fast Ethernet> port 0x10100-0x1017f mem 0x82871100-0x8287117f irq 10 at device 7.0 on pci0
de0: interrupting at CIA irq 10
de0: 21140A [10-100Mb/s] pass 2.2
de0: address 00:c0:f0:1f:77:5d
de0: enabling 100baseTX port
de0: driver is using old-style compatability shims
isab0: <Cypress 82C693 PCI-ISA bridge> at device 8.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Cypress 82C693 ATA controller> port 0x10180-0x1018f,0x3f4-0x3f7,0x1f0-0x1f7 at device 8.1 on pci0
atapci1: <Cypress 82C693 ATA controller> port 0x374-0x377,0x170-0x177 at device 8.2 on pci0
atapci1: Busmastering DMA not supported
pci0: <Cypress 82C693 ATA controller> at 8.3
sym0: <810a> port 0x10000-0x100ff mem 0x82871000-0x828710ff irq 8 at device 9.0 on pci0
sym0: Symbios NVRAM, ID 7, Fast-10, SE, parity checking
sym0: open drain IRQ line driver
sym0: interrupting at CIA irq 8
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: interrupting at ISA irq 6
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: interrupting at ISA irq 1
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
mcclock0: <MC146818A real time clock> at port 0x70-0x71 on isa0
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
sio0: interrupting at ISA irq 4
sio1: reserved for low-level i/o
Timecounter "alpha"  frequency 533171008 Hz
IP Filter: initialized.  Default = pass all, Logging = enabled
IP Filter: v3.3.8
Waiting 15 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
Mounting root from ufs:/dev/da0a
da0 at sym0 bus 0 target 0 lun 0
da0: <Quantum XP32150 L912> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 8), Tagged Queueing Enabled
da0: 2050MB (4199760 512 byte sectors: 255H 63S/T 261C)
de0: enabling 10baseT port
de0: enabling Full Duplex 10baseT port
IP Filter: already initialized
--------------------END OF DMESG--------------------

--------------------BEGIN KERNEL 'MAKE' OUTPUT--------------------
touch hack.c
cc -elf -shared -nostdlib hack.c -o hack.So
rm -f hack.c
building __divqu.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __divqu.S
building __divq.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __divq.S
building __divlu.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __divlu.S
building __divl.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __divl.S
building __remqu.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __remqu.S
building __remq.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __remq.S
building __remlu.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __remlu.S
building __reml.S from ../../alpha/alpha/divrem.m4
cc -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56 -c __reml.S
sh ../../conf/newvers.sh GENERIC 
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56  vers.c
linking kernel
bktr_core.o: In function `common_ioctl':
bktr_core.c(.text+0x38d0): undefined reference to `disable_intr'
bktr_core.c(.text+0x38d4): undefined reference to `disable_intr'
bktr_core.c(.text+0x38ec): undefined reference to `enable_intr'
bktr_core.c(.text+0x38f0): undefined reference to `enable_intr'
bktr_os.o: In function `bktr_mmap':
bktr_os.c(.text+0x1044): undefined reference to `i386_btop'
bktr_os.c(.text+0x1048): undefined reference to `i386_btop'
bktr_os.o: In function `bktr_poll':
bktr_os.c(.text+0x10f0): undefined reference to `disable_intr'
bktr_os.c(.text+0x10f4): undefined reference to `disable_intr'
bktr_os.c(.text+0x1158): undefined reference to `enable_intr'
bktr_os.c(.text+0x115c): undefined reference to `enable_intr'
*** Error code 1

Stop in /usr/src/sys/compile/HOSTNAME.
[root@hostname HOSTNAME]# 

--------------------END KERNEL 'MAKE' OUTPUT--------------------

Thanks!

----------------------------------------------------------------------------
Nicholas Merrill       http://www.calyx.net            Voice: 212-966-1900
President / CEO        http://www.calyx.nl             Fax  : 212-966-3965
Calyx Internet Access  13 Laight St. NYC, NY 10013     Email: nick@calyx.net
----------------------------------------------------------------------------




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.21.0003270118090.27591-100000>