*BSD News Article 55456


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!news.sprintlink.net!news.azstarnet.com!not-for-mail
From: trs@azstarnet.com (Tim  Smith)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: compiling kernel
Date: 20 Nov 1995 07:02:47 GMT
Organization: Arizona Daily Star - AZSTARNET
Lines: 192
Message-ID: <48p96n$crr@news.azstarnet.com>
References: <48n99v$kdd@news.azstarnet.com>
NNTP-Posting-Host: web.azstarnet.com
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]

Tim  Smith (trs@azstarnet.com) wrote:
: /usr/src/sys/compile/GENERIC:{526}# make
: building standard kern library
: lorder: 1: Syntax error: Bad fd number
: ar: no archive members specified
: usage:  ar -d [-Tv] archive file ...
: 
    The problem above was related to having cpp gzip'd, and running
    it with the gzip pseudo-device.  After gunzipping cpp this error
    went away.

    The GENERIC kernel now compiles without error; when trying to
    compile my kernel, I get the following error:

cc -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -nostdinc -I. -I../.. -I../../sys -I/usr/include -DFARBE -DI486_CPU -DATAPI -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS -DFFS -DINET -DGPL_MATH_EMULATE -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 -c vers.c
loading kernel
*** Error code 1

Stop.
kern_sysctl.o: Undefined symbol `_hw_float' referenced from text segment

    
    Below is a diff of the FARBE and GENERIC kernels.  I copied the extra
    lines right from the LINT config file, I'm quite sure.  But I must
    have missed a crucial line, or put something in wrong.  I've looked
    over the kernel config section of the handbook, etc., and am at a
    loss.  If you have any ideas of what I've done wrong, please share
    them!

    Thanks again!

Tim

--
2c2
< # FARBE -- Generic machine with WD/AHx/NCR/BTx family disks
---
> # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
4c4
< #	$Id: FARBE,v 1.46.2.6 1995/10/25 17:29:51 jkh Exp $
---
> #	$Id: GENERIC,v 1.46.2.6 1995/10/25 17:29:51 jkh Exp $
8c8
< #cpu		"I386_CPU"
---
> cpu		"I386_CPU"
10,12c10,12
< #cpu		"I586_CPU"
< ident		FARBE
< maxusers	5
---
> cpu		"I586_CPU"
> ident		GENERIC
> maxusers	10
14c14
< options		GPL_MATH_EMULATE	#Support for x87 emulation
---
> options		MATH_EMULATE		#Support for x87 emulation
17,19c17,19
< #options	NFS			#Network Filesystem
< #options	MSDOSFS			#MSDOS Filesystem
< #options	"CD9660"		#ISO 9660 Filesystem
---
> options		NFS			#Network Filesystem
> options		MSDOSFS			#MSDOS Filesystem
> options		"CD9660"		#ISO 9660 Filesystem
37,38c37,38
< #disk		fd1	at fdc0 drive 1
< #tape		ft0	at fdc0 drive 2
---
> disk		fd1	at fdc0 drive 1
> tape		ft0	at fdc0 drive 2
48,49c48,49
< options         ATAPI   #Enable ATAPI support for IDE bus
< device          wcd0    #IDE CD-ROM
---
> #options         ATAPI   #Enable ATAPI support for IDE bus
> #device          wcd0    #IDE CD-ROM
51,52c51,52
< #controller	ncr0
< #controller	ahc0
---
> controller	ncr0
> controller	ahc0
54,62c54,62
< #controller	bt0	at isa? port "IO_BT0" bio irq ? vector btintr
< #controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
< #controller	ahc1	at isa? bio irq ? vector ahcintr
< #controller	ahb0	at isa? bio irq ? vector ahbintr
< #controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
< #controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
< #controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
< #controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
< #controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr
---
> controller	bt0	at isa? port "IO_BT0" bio irq ? vector btintr
> controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
> controller	ahc1	at isa? bio irq ? vector ahcintr
> controller	ahb0	at isa? bio irq ? vector ahbintr
> controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
> controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
> controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
> controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
> controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr
64c64
< #controller	scbus0
---
> controller	scbus0
66c66
< #device		sd0
---
> device		sd0
68c68
< #device		st0
---
> device		st0
70c70
< #device		cd0	#Only need one of these, the code dynamically grows
---
> device		cd0	#Only need one of these, the code dynamically grows
72,74c72,74
< #device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
< #device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
< #device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr
---
> device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
> device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
> device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr
76c76
< #controller	matcd0	at isa? port 0x230 bio
---
> controller	matcd0	at isa? port 0x230 bio
78c78
< #device		scd0	at isa? port 0x230 bio
---
> device		scd0	at isa? port 0x230 bio
87c87
< #device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr
---
> device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr
91,92c91,92
< #device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
< #device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr
---
> device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
> device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr
95,97c95,97
< #device		lpt1	at isa? port? tty
< #device		lpt2	at isa? port? tty
< #device		mse0	at isa? port 0x23c tty irq 5 vector mseintr
---
> device		lpt1	at isa? port? tty
> device		lpt2	at isa? port? tty
> device		mse0	at isa? port 0x23c tty irq 5 vector mseintr
103,113c103,113
< #device de0
< #device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
< #device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
< #device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
< #device ep0 at isa? port 0x300 net irq 10 vector epintr
< #device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
< #device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
< #device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
< #device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
< #device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
< #device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
---
> device de0
> device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
> device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
> device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
> device ep0 at isa? port 0x300 net irq 10 vector epintr
> device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
> device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
> device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
> device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
> device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
> device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
116c116
< #pseudo-device	ether
---
> pseudo-device	ether
118c118
< #pseudo-device	sl	1
---
> pseudo-device	sl	1
124,128d123
< pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
< 
< controller	snd0
< device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
< device pca0 at isa? port IO_TIMER1 tty