Date: Sat, 1 Jul 2000 15:31:04 +0200 From: "B.O.F.H. at kessen.yi.org" <admin@kessen.yi.org> To: <freebsd-current@freebsd.org> Subject: current kernel build probs Message-ID: <082501bfe360$9b00cdf0$0b00a8c0@PICARD>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hi all,
on june 30th I ftped the current kernel tree from ftp.uk.freebsd.org to test it on my 4.0-20000608-stable machine.
After I setup a config file with the .hints file I did make depend (duh) and found out that config needed to be updated (RTFM) I got usr.sbin from the current tree and did just that. After that make depend rocked and I started make to build the kernel.
**First I got the error that crypto/blowfish didn't exhist. I looked in my 2000608 tree and found it. I copied the ./sys/crypto
directory to my current tree and god rid of that problem.
**After that I ran into the problem that I got an assembly error:
cc -c -x
assembler-with-cpp -DLOCORE -O -Wall -Wredundant-decls -Wnested-externs -Wst
rict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I/usr/include -D_KERN
EL -include opt_global.h -elf -mpreferred-stack-boundary=2
../../i386/i386/bioscall.s
/tmp/cca13049.s: Assembler messages:
/tmp/cca13049.s:773: Error: operands given don't match any known 386
instruction
/tmp/cca13049.s:838: Error: operands given don't match any known 386
instruction
*** Error code 1
Stop in /usr/src/sys/compile/GATEWAY.
I did a diff between this bioscall.s from current and 2000608-stable and found there to be small differences but I don't see a problem.
root@kessen / > diff bioscall.old bioscall.new
26c26
< * $FreeBSD: src/sys/i386/i386/bioscall.s,v 1.6 1999/08/28 00:43:41 peter
Exp $
---
> * $FreeBSD: src/sys/i386/i386/bioscall.s,v 1.7 2000/05/22 17:02:53 obrien
Exp $
68c68
< lcall _bioscall_vector
---
> lcall *_bioscall_vector
133c133
< lcall _bioscall_vector /* 16-bit call */
---
> lcall *_bioscall_vector /* 16-bit call */
hmm. I don't see a problem, maybe I used diff wrongly but copying the bioscall.s from 2000608-stable over the current one solves the problem anyway.
**Now I have another small problem;) which is that the kernelcompile quits on an miibus problem:
cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro
totypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat
-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I/usr/include -mpref
erred-stack-boundary=2 -c
/usr/src/sys/modules/mii/../../dev/mii/ukphy_subr.c
cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro
totypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat
-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I/usr/include -mpref
erred-stack-boundary=2 -c miibus_if.c
miibus_if.c: In function `MIIBUS_READREG':
miibus_if.c:27: warning: implicit declaration of function `DEVOPMETH'
miibus_if.c:27: `miibus_readreg' undeclared (first use in this function)
miibus_if.c:27: (Each undeclared identifier is reported only once
miibus_if.c:27: for each function it appears in.)
miibus_if.c: In function `MIIBUS_WRITEREG':
miibus_if.c:38: `miibus_writereg' undeclared (first use in this function)
miibus_if.c: In function `MIIBUS_STATCHG':
miibus_if.c:49: `miibus_statchg' undeclared (first use in this function)
miibus_if.c: In function `MIIBUS_MEDIAINIT':
miibus_if.c:60: `miibus_mediainit' undeclared (first use in this function)
*** Error code 1
Stop in /usr/src/sys/modules/mii.
*** Error code 1
Stop in /usr/src/sys/modules.
*** Error code 1
Stop in /usr/src/sys/compile/GATEWAY.
Does anyone here experience this problem too? I tried using the 2000608-stable mii sources in the current tree but this doesn't make me a happy camper either;)(aka doesn't work)
My kernel config files look like this:
/usr/src/sys/i386/conf/GATEWAY :
machine i386
ident GATEWAY
maxusers 10
hints "GATEWAY.hints"
options MAXDSIZ="(32*1024*1024)"
options DFLDSIZ="(32*1024*1024)"
cpu I586_CPU # aka Pentium(tm)
cpu I686_CPU # aka Pentium Pro(tm)
options NO_F00F_HACK
options COMPAT_43
options SYSVSHM
options SYSVSEM
options SYSVMSG
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options INET #Internet communications protocols
device ether #Generic Ethernet
device loop 1 #Network loopback device
device bpf 4 #Berkeley packet filter
options TCP_COMPAT_42 #emulate 4.2BSD TCP bugs
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #print information about dropped packets
options IPFIREWALL_FORWARD #enable transparent proxy support
options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
options IPDIVERT #divert sockets
options IPFILTER #ipfilter support
options IPFILTER_LOG #ipfilter logging
options IPSTEALTH #support for stealth forwarding
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options TCP_RESTRICT_RST #restrict emission of TCP RST
options FFS #Fast filesystem
#options FFS_EXTATTR #Extended attribute support
options NFS_NOSERVER #Disable the NFS-server code.
options CD9660 #ISO 9660 filesystem
options PROCFS #Process filesystem
options FFS_ROOT #FFS usable as root device
options SOFTUPDATES
options QUOTA #enable disk quotas
options RANDOMDEV
options P1003_1B
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L
options HZ=100
options CLK_CALIBRATION_LOOP
options CLK_USE_I8254_CALIBRATION
options CLK_USE_TSC_CALIBRATION
device scbus #base SCSI code
device ch #SCSI media changers
device da #SCSI direct access devices (aka disks)
device sa #SCSI tapes
device cd #SCSI CD-ROMs
device pass #CAM passthrough driver
device pt #SCSI processor type
device ses #SCSI SES/SAF-TE driver
device targ #SCSI target driver
options SCSI_NO_SENSE_STRINGS
options SCSI_NO_OP_STRINGS
options SCSI_DELAY=3000 # Be pessimistic about Joe SCSI device
device pty #Pseudo ttys
device speaker #Play IBM BASIC-style noises out your speaker
device gzip #Exec gzipped a.out's
device vn #Vnode driver (turns a file into a device)
device snp #Snoop device - to look at pty/vty/etc..
device isa
options AUTO_EOI_1
options AUTO_EOI_2
options MAXMEM="(96*1024)"
device atkbdc 1
device atkbd
device vga
device splash
device sc 1
options MAXCONS=16 # number of virtual consoles
options SC_DISABLE_DDBKEY # disable `debug' key
options SC_DISABLE_REBOOT # disable reboot key sequence
options SC_HISTORY_SIZE=200 # number of history buffer lines
device npx
device fdc
device pca
device eisa
device pci
options PCI_QUIET #quiets PCI code on chipset settings
device ncr # NCR/Symbios Logic
device sym # NCR/Symbios Logic (newer chipsets)
options SYM_SETUP_LP_PROBE_MAP #-Low Priority Probe Map (bits)
# Allows the ncr to take precedence
# 1 (1<<0) -> 810a, 860
# 2 (1<<1) -> 825a, 875, 885, 895
# 4 (1<<2) -> 895a, 896, 1510d
options SYM_SETUP_SCSI_DIFF #-HVD support for 825a, 875, 885
# disabled:0 (default), enabled:1
options SYM_SETUP_PCI_PARITY #-PCI parity checking
# disabled:0, enabled:1 (default)
options SYM_SETUP_MAX_LUN #-Number of LUNs supported
# default:8, range:[1..64]
device miibus
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
options PANIC_REBOOT_WAIT_TIME=16
options SCSI_NCR_MAX_SYNC=10000
options SCSI_NCR_MAX_WIDE=1
options SCSI_NCR_MYADDR=7
/usr/src/sys/i386/conf/GATEWAY.hints :
hint.fdc.0.at="isa"
hint.fdc.0.port="0x3F0"
hint.fdc.0.irq="6"
hint.fdc.0.drq="2"
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"
hint.vga.0.at="isa"
hint.sc.0.at="isa"
hint.npx.0.at="nexus"
hint.npx.0.port="0x0F0"
hint.npx.0.irq="13"
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>on june 30th I ftped the current kernel tree from
<A href="ftp://ftp.uk.freebsd.org">ftp.uk.freebsd.org</A> to test it on my
4.0-20000608-stable machine.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>After I setup a config file with the .hints file I
did make depend (duh) and found out that config needed to be updated (RTFM) I
got usr.sbin from the current tree and did just that. After that make depend
rocked and I started make to build the kernel.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>**First I got the error that crypto/blowfish didn't
exhist. I looked in my 2000608 tree and found it. I copied the
./sys/crypto</FONT></DIV>
<DIV><FONT face=Arial size=2>directory to my current tree and god rid of that
problem.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>**After that I ran into the problem that I got an
assembly error:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>cc -c -x<BR>assembler-with-cpp -DLOCORE -O -Wall
-Wredundant-decls -Wnested-externs -Wst<BR>rict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
<BR>-fformat-extensions -ansi -nostdinc -I- -I. -I../..
-I/usr/include -D_KERN<BR>EL -include opt_global.h -elf
-mpreferred-stack-boundary=2<BR>../../i386/i386/bioscall.s<BR>/tmp/cca13049.s:
Assembler messages:<BR>/tmp/cca13049.s:773: Error: operands given don't match
any known 386<BR>instruction<BR>/tmp/cca13049.s:838: Error: operands given don't
match any known 386<BR>instruction<BR>*** Error code 1<BR><BR>Stop in
/usr/src/sys/compile/GATEWAY.<BR><BR>I did a diff between this bioscall.s from
current and 2000608-stable and found there to be small differences but I don't
see a problem.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>root@kessen / > diff bioscall.old
bioscall.new<BR>26c26<BR>< * $FreeBSD: src/sys/i386/i386/bioscall.s,v
1.6 1999/08/28 00:43:41 peter<BR>Exp $<BR>---<BR>> * $FreeBSD:
src/sys/i386/i386/bioscall.s,v 1.7 2000/05/22 17:02:53 obrien<BR>Exp
$<BR>68c68<BR>< lcall
_bioscall_vector<BR>---<BR>>
lcall
*_bioscall_vector<BR>133c133<BR><
lcall _bioscall_vector /*
16-bit call */<BR>---<BR>>
lcall *_bioscall_vector /*
16-bit call */<BR><BR>hmm. I don't see a problem, maybe I used diff wrongly
but copying the bioscall.s from 2000608-stable over the current one
solves the problem anyway.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>**Now I have another small problem;) which is that
the kernelcompile quits on an miibus problem:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>cc -O -pipe -D_KERNEL -Wall -Wredundant-decls
-Wnested-externs -Wstrict-pro<BR>totypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -fformat<BR>-extensions -ansi
-DKLD_MODULE -nostdinc -I- -I. -I@ -I/usr/include
-mpref<BR>erred-stack-boundary=2
-c<BR>/usr/src/sys/modules/mii/../../dev/mii/ukphy_subr.c<BR>cc -O -pipe
-D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro<BR>totypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat<BR>-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@
-I/usr/include -mpref<BR>erred-stack-boundary=2 -c
miibus_if.c<BR>miibus_if.c: In function `MIIBUS_READREG':<BR>miibus_if.c:27:
warning: implicit declaration of function `DEVOPMETH'<BR>miibus_if.c:27:
`miibus_readreg' undeclared (first use in this function)<BR>miibus_if.c:27:
(Each undeclared identifier is reported only once<BR>miibus_if.c:27: for each
function it appears in.)<BR>miibus_if.c: In function
`MIIBUS_WRITEREG':<BR>miibus_if.c:38: `miibus_writereg' undeclared (first use in
this function)<BR>miibus_if.c: In function `MIIBUS_STATCHG':<BR>miibus_if.c:49:
`miibus_statchg' undeclared (first use in this function)<BR>miibus_if.c: In
function `MIIBUS_MEDIAINIT':<BR>miibus_if.c:60: `miibus_mediainit' undeclared
(first use in this function)<BR>*** Error code 1<BR><BR>Stop in
/usr/src/sys/modules/mii.<BR>*** Error code 1<BR><BR>Stop in
/usr/src/sys/modules.<BR>*** Error code 1<BR><BR>Stop in
/usr/src/sys/compile/GATEWAY.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Does anyone here experience this problem too? I
tried using the 2000608-stable mii sources in the current tree but this doesn't
make me a happy camper either;)(aka doesn't work)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>My kernel config files look like this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>/usr/src/sys/i386/conf/GATEWAY :</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>machine i386<BR>ident GATEWAY<BR>maxusers 10<BR>hints "GATEWAY.hints"<BR>options
MAXDSIZ="(32*1024*1024)"<BR>options
DFLDSIZ="(32*1024*1024)"<BR>cpu I586_CPU # aka
Pentium(tm)<BR>cpu I686_CPU # aka Pentium
Pro(tm)<BR>options NO_F00F_HACK<BR>options COMPAT_43<BR>options
SYSVSHM<BR>options SYSVSEM<BR>options SYSVMSG<BR>options
USERCONFIG #boot -c editor<BR>options
VISUAL_USERCONFIG #visual boot -c editor<BR>options
INET #Internet communications
protocols<BR>device ether #Generic
Ethernet<BR>device loop 1 #Network loopback
device<BR>device bpf 4 #Berkeley packet
filter<BR>options TCP_COMPAT_42 #emulate 4.2BSD TCP
bugs<BR>options IPFIREWALL #firewall<BR>options
IPFIREWALL_VERBOSE #print information about dropped
packets<BR>options IPFIREWALL_FORWARD #enable transparent proxy
support<BR>options IPFIREWALL_VERBOSE_LIMIT=100 #limit
verbosity<BR>options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything
by default<BR>options IPDIVERT #divert sockets<BR>options
IPFILTER #ipfilter support<BR>options
IPFILTER_LOG #ipfilter logging<BR>options
IPSTEALTH #support for stealth forwarding<BR>options
TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN<BR>options
TCP_RESTRICT_RST #restrict emission of TCP RST<BR>options
FFS #Fast
filesystem<BR>#options FFS_EXTATTR #Extended attribute
support<BR>options NFS_NOSERVER #Disable the NFS-server
code.<BR>options CD9660 #ISO 9660 filesystem<BR>options
PROCFS #Process filesystem<BR>options
FFS_ROOT #FFS usable as root device<BR>options
SOFTUPDATES<BR>options QUOTA #enable disk
quotas<BR>options
RANDOMDEV<BR>options P1003_1B<BR>options
_KPOSIX_PRIORITY_SCHEDULING<BR>options
_KPOSIX_VERSION=199309L<BR>options HZ=100<BR>options
CLK_CALIBRATION_LOOP<BR>options CLK_USE_I8254_CALIBRATION<BR>options
CLK_USE_TSC_CALIBRATION<BR>device scbus #base
SCSI code<BR>device ch #SCSI media
changers<BR>device da #SCSI direct access devices
(aka disks)<BR>device sa #SCSI
tapes<BR>device cd #SCSI
CD-ROMs<BR>device pass #CAM passthrough
driver<BR>device pt #SCSI processor
type<BR>device ses #SCSI SES/SAF-TE
driver<BR>device targ #SCSI target driver<BR>options
SCSI_NO_SENSE_STRINGS<BR>options SCSI_NO_OP_STRINGS<BR>options
SCSI_DELAY=3000 # Be pessimistic about Joe SCSI
device<BR>device pty #Pseudo
ttys<BR>device speaker #Play IBM BASIC-style noises out
your speaker<BR>device gzip #Exec gzipped
a.out's<BR>device vn #Vnode driver (turns a file into a
device)<BR>device snp #Snoop device - to look at
pty/vty/etc..<BR>device isa<BR>options AUTO_EOI_1<BR>options
AUTO_EOI_2<BR>options
MAXMEM="(96*1024)"<BR>device atkbdc 1<BR>device atkbd<BR>device vga<BR>device splash<BR>device sc 1<BR>options
MAXCONS=16 # number of virtual consoles<BR>options
SC_DISABLE_DDBKEY # disable `debug' key<BR>options
SC_DISABLE_REBOOT # disable reboot key sequence<BR>options
SC_HISTORY_SIZE=200 # number of history buffer
lines<BR>device npx<BR>device fdc<BR>device pca<BR>device eisa<BR>device pci<BR>options
PCI_QUIET #quiets PCI code on chipset
settings<BR>device ncr # NCR/Symbios
Logic<BR>device sym # NCR/Symbios Logic (newer
chipsets)<BR>options SYM_SETUP_LP_PROBE_MAP #-Low Priority Probe Map
(bits)<BR> # Allows the ncr to take
precedence<BR> # 1 (1<<0) -> 810a,
860<BR> # 2 (1<<1) -> 825a, 875, 885,
895<BR> # 4 (1<<2) -> 895a, 896, 1510d
<BR>options SYM_SETUP_SCSI_DIFF #-HVD support for 825a, 875,
885<BR> # disabled:0 (default),
enabled:1<BR>options SYM_SETUP_PCI_PARITY #-PCI parity
checking<BR> # disabled:0, enabled:1
(default)<BR>options SYM_SETUP_MAX_LUN #-Number of LUNs
supported<BR> # default:8,
range:[1..64]<BR>device miibus<BR>device xl #
3Com 3c90x (``Boomerang'', ``Cyclone'')<BR>options
PANIC_REBOOT_WAIT_TIME=16<BR>options
SCSI_NCR_MAX_SYNC=10000<BR>options SCSI_NCR_MAX_WIDE=1<BR>options
SCSI_NCR_MYADDR=7<BR></FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>/usr/src/sys/i386/conf/GATEWAY.hints
:</FONT></DIV></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>hint.fdc.0.at="isa"<BR>hint.fdc.0.port="0x3F0"<BR>hint.fdc.0.irq="6"<BR>hint.fdc.0.drq="2"<BR>hint.fd.0.at="fdc0"<BR>hint.fd.0.drive="0"<BR>hint.atkbdc.0.at="isa"<BR>hint.atkbdc.0.port="0x060"<BR>hint.atkbd.0.at="atkbdc"<BR>hint.atkbd.0.irq="1"<BR>hint.vga.0.at="isa"<BR>hint.sc.0.at="isa"<BR>hint.npx.0.at="nexus"<BR>hint.npx.0.port="0x0F0"<BR>hint.npx.0.irq="13"<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?082501bfe360$9b00cdf0$0b00a8c0>
