Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2000 18:57:29 -0500 (CDT)
From:      Doug Lee <dgl@visi.com>
To:        freebsd-stable@freebsd.org
Subject:   Can't build kernel in 4.1 snapshot?
Message-ID:  <Pine.BSF.4.21.0008121855490.59349-100000@kirk.dsl.visi.com>

next in thread | raw e-mail | index | archive | help
I am running a 4.1 snapshot from August 6 on a P100 with 16M memory
(soon to increase).  `dmesg' output appears below.  I just tried
building a custom kernel and got compile errors during `make' (`make
depend' ran fine).  I used the config/cd/make method rather than the
`make buildkernel' method because I haven't done a `make world' on
this machine (and hope not to before it gets more memory).  Is there a
problem building kernels in the 4.1-20000806-STABLE snapshot?

I give first the last compile line and the set of errors, then `dmesg'
output, and finally a de-commentized version of my kernel config file,
/usr/src/sys/i386/conf/BLINDINC.  (Blindness:  Learning In New
Dimensions (BLIND), Inc. is where this machine will soon be
installed.)

-----The error message-----

cc -c -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2 -fomit-frame-pointer ../../i386/i386/atomic.c
In file included from ../../i386/i386/atomic.c:47:
machine/atomic.h: In function `atomic_set_char':
machine/atomic.h:106: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_char':
machine/atomic.h:107: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_char':
machine/atomic.h:108: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_char':
machine/atomic.h:109: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_set_short':
machine/atomic.h:111: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_short':
machine/atomic.h:112: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_short':
machine/atomic.h:113: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_short':
machine/atomic.h:114: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_set_int':
machine/atomic.h:116: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_int':
machine/atomic.h:117: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_int':
machine/atomic.h:118: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_int':
machine/atomic.h:119: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_set_long':
machine/atomic.h:121: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_long':
machine/atomic.h:122: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_long':
machine/atomic.h:123: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_long':
machine/atomic.h:124: inconsistent operand constraints in an `asm'
*** Error code 1

Stop in /usr/src/sys/compile/BLINDINC.

-----Relevant dmesgoutput-----

FreeBSD 4.1-20000806-STABLE #0: Sun Aug  6 12:05:39 GMT 2000
    root@usw3.freebsd.org:/usr/src/sys/compile/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P54C (99.72-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x525  Stepping = 5
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 16777216 (16384K bytes)
avail memory = 12451840 (12160K bytes)
Preloaded elf kernel "kernel" at 0xc0410000.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371FB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX ATA controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <S3 Trio graphics accelerator> at 15.0 irq 11
dc0: <82c169 PNIC 10/100BaseTX> port 0xfc00-0xfcff mem 0xfffbfc00-0xfffbfcff irq 10 at device 16.0 on pci0
dc0: Ethernet address: 00:a0:cc:5b:60:cb
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3b0-0x3cf iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA (mono) <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
adv1: Invalid baseport of 0x3e8 specified. Nearest valid baseport is 0x330.  Failing probe.
sio4: <U.S.Robotics Inc. Sportster 56000 Voice Internal> at port 0x3e8-0x3ef irq 5 on isa0
sio4: type 16550A
ad0: 1039MB <QUANTUM FIREBALL1080A> [2112/16/63] at ata0-master using WDMA2
acd0: CDROM <HITACHI CDR-7730> at ata1-master using PIO2
Mounting root from ufs:/dev/ad0s1a

-----My kernel config-----

# NOTE:  All I took out of this config is the adv0 device, because
# it caused a (harmless but annoying) message on boot about
# trying to use an invalid IO address range which just happened to be
# 3E8-3EF, the range used by the modem (sio4).
machine		i386
cpu		I486_CPU
cpu		I586_CPU
ident		BLINDINC
makeoptions	KERNEL=kernel
maxusers	32

options 	INET
options 	INET6
options 	IPSEC
options 	IPSEC_ESP
options 	IPSEC_DEBUG
options 	FFS
options 	FFS_ROOT
options 	SOFTUPDATES
options 	MFS
options 	MD_ROOT
options 	NFS
options 	NFS_ROOT
options 	MSDOSFS
options 	CD9660
options 	CD9660_ROOT
options 	PROCFS
options 	KERNFS
options 	COMPAT_43
options 	SCSI_DELAY=15000
options 	UCONSOLE
options 	USERCONFIG
options 	VISUAL_USERCONFIG
options 	KTRACE
options 	SYSVSHM
options 	SYSVMSG
options 	SYSVSEM
options 	P1003_1B
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM
options 	KBD_INSTALL_CDEV

device		isa
options 	AUTO_EOI_1
device		eisa
device		pci

device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		fd1	at fdc0 drive 1

device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk
device		atapicd
device		atapifd
device		atapist
options 	ATA_STATIC_ID

device		ahb
device		ahc
device		amd
device		dpt
device		isp
device		ncr
device		sym
options		SYM_SETUP_LP_PROBE_MAP=0x40

device		adw
device		bt0	at isa?
device		aha0	at isa?
device		aic0	at isa?

device		scbus
device		da
device		sa
device		cd
device		pass

device		ida
device		amr
device		mlx

device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1

device		vga0	at isa?

pseudo-device	splash

device		sc0	at isa? flags 0x100


device		npx0	at nexus? port IO_NPX irq 13

device		apm0    at nexus? disable flags 0x20

device		card
device		pcic0	at isa? irq 10 port 0x3e0 iomem 0xd0000
device		pcic1	at isa? irq 11 port 0x3e2 iomem 0xd4000 disable

device		sio0	at isa? port IO_COM1 flags 0x30 irq 4
options 	CONSPEED=115200
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

device		ppc0	at isa? irq 7
device		ppbus
device		lpt
device		plip
device		ppi


device		de
device		fxp
device		tx
device		vx
device		wx

device		miibus
device		dc
device		rl
device		sf
device		sis
device		ste
device		tl
device		vr
device		wb
device		xl

device		ed0	at isa? port 0x280 irq 10 iomem 0xd8000
device		ex
device		ep
device		wi
device		an
device		xe
device		ie0	at isa? port 0x300 irq 10 iomem 0xd0000
device		fe0	at isa? port 0x300
device		le0	at isa? port 0x300 irq 5 iomem 0xd0000
device		lnc0	at isa? port 0x280 irq 10 drq 0
device		cs0	at isa? port 0x300
device		sn0	at isa? port 0x300 irq 10

pseudo-device	loop
pseudo-device	ether
pseudo-device	sl	1
pseudo-device	ppp	1
pseudo-device	tun
pseudo-device	pty
pseudo-device	md
pseudo-device	gif	4
pseudo-device	faith	1

pseudo-device	bpf

device		uhci
device		ohci
device		usb
device		ugen
device		uhid
device		ukbd
device		ulpt
device		umass
device		ums
device		aue
device		cue
device		kue

pseudo-device	speaker
device		pca0 at isa? port IO_TIMER1
pseudo-device	snp	3
pseudo-device	ccd	4

options 	IPFIREWALL
options 	IPFIREWALL_VERBOSE

options 	IPFIREWALL_FORWARD
options 	IPV6FIREWALL
options 	IPV6FIREWALL_VERBOSE
options 	IPDIVERT
options 	IPFILTER
options 	IPFILTER_LOG
options 	TCP_RESTRICT_RST
options 	QUOTA
options 	NETGRAPH
options 	DDB
options 	DDB_UNATTENDED


-- 
Doug Lee
dgl@visi.com
http://www.visi.com/~dgl



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




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