Subject: RE: Problems compiling 1.5X kernel
To: 'ggross@symark.com' <ggross@symark.com>
From: Glen Gross <ggross@symark.com>
List: current-users
Date: 10/15/2001 09:47:15
Hello again,

I believe I was able to answer my own question.....

It turns out, from looking at /usr/src/sys/arch/i386/npx.c, that the offending 
lines are in the i686 support.  I believe
these lines [fxrestore, etc.] are intended to support new MMX-like features of 
the Intel line of processors.
Because I am running an AMD duron, I decided I had no use for the i686 support 
and commented out the line.
Presto!  I am now able to build the kernel.  I am attaching my dmesg output for 
those who may be interested.
The motherboard is an ASUS with a promise 100Mbit controller.  My boot drive 
[IDE] is attached to this controller,
which shows below as pciide1.

By the way, support for this hardware is better under NetBSD than under any 
other OS I have
installed on the box.  Performance is excellent!  Keep up the good work, guys. 
 :)

Cheers,

Glen M. Gross
Unix Technical Support Specialist
Symark Software
5716 Corsa Avenue, Suite 200
Westlake Village, CA  91362
http://www.symark.com
pp-support@symark.com
pb-support@symark.com
Main: 800-234-9072 or 818-865-6100
Main fax: 818-889-1894


NetBSD 1.5Y (CLONIX) #1: Tue Oct 16 02:27:16 PDT 2001
    gross@duron:/usr/src/sys/arch/i386/compile/CLONIX
cpu0: AMD Duron (686-class), 655.90 MHz
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 1 KB 64b/line 16-way
cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 183f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR>
total memory = 447 MB
avail memory = 411 MB
using 5754 buffers containing 23016 KB of memory
BIOS32 rev. 0 found at 0xf0ef0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT8363 KT133 System Controller (rev. 0x02)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8363 KT133 PCI to AGP Bridge 
(rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
S3 Trio3D/2X (VGA display, revision 0x02) at pci1 dev 0 function 0 not 
configured
pcib0 at pci0 dev 4 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x22)
pciide0 at pci0 dev 4 function 1: VIA Technologies VT82C686A (Apollo KX133) 
ATA66 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
pciide0: disabling primary channel (no drives)
pciide0: secondary channel configured to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 4 function 2: VIA Technologies VT83C572 USB Controller (rev. 
0x10)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 4 function 3: VIA Technologies VT83C572 USB Controller (rev. 
0x10)
uhci1: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 4 function 4
pchb1: VIA Technologies VT82C686A SMBus Controller (rev. 0x30)
ahc1 at pci0 dev 9 function 0
ahc1: interrupting at irq 5
ahc1: aic7860 Single Channel A, SCSI Id=7, 3/255 SCBs
scsibus0 at ahc1: 8 targets, 8 luns per target
fxp0 at pci0 dev 12 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at irq 10
fxp0: detected 64 word EEPROM
fxp0: Ethernet address 00:03:47:0a:44:3a
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide1 at pci0 dev 17 function 0: Promise Ultra100/ATA Bus Master IDE 
Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 7 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD200BB-00AUA1>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19092 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 39102336 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA 
data transfers)
pciide1: secondary channel configured to native-PCI mode
pciide1: disabling secondary channel (no drives)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
seaprobe: board type unknown at address 0xc8000
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask fbe5 netmask ffe5 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <CONNER, CP30540  SUN0535, B0CD> SCSI2 0/direct 
fixed
sd0: 517 MB, 2242 cyl, 6 head, 78 sec, 512 bytes/sect x 1059528 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 3 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 0167> SCSI2 5/cdrom 
removable
cd0: sync (100.0ns offset 8), 8-bit (10.000MB/s) transfers
uhub2 at uhub1 port 2
uhub2: ALCOR Generic USB Hub, class 9/0, rev 1.10/1.00, addr 2
uhub2: 4 ports with 4 removable, self powered
sd0: no disk label
findroot: can't open dev sd0a (6)
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying msdos...
mountroot: trying cd9660...
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
sd0: no disk label
sd0: no disk label



On Monday, October 15, 2001 7:47 AM, Glen Gross [SMTP:ggross@symark.com] wrote:
> Subject: Re: current kernel build failure
>
> Hello there,
>
> I've been trying to build a current NetBSD kernel using 1.5 and got these 
same
>
> errors Matt reported.  After upgrading my gas, I got:
>
> cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch
> -I../../../.. -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_BF_ENC -DLKM
> -DDIAGNOSTIC -DDEBUG -DMAXUSERS=512 -D_KERNEL -D_KERNEL_OPT -Di386 -c
> ../../../../arch/i386/i386/locore.s
> ../../../../arch/i386/isa/vector.s: Assembler messages:
> ../../../../arch/i386/isa/vector.s:328: Error: Alignment too large: 15.
> assumed.*** Error code 1
>
> Stop.
>
>
> Any idea what happened here?  I'm trying to build  from a custom config file,
>
> but "make depend" completes without errors.  Do I need
> to upgrade my gcc?  It's version egcs-2.91.66 19990314 (egcs-1.1.2 release).
>
> TIA,
>
> Glen M. Gross
> Unix Technical Support Specialist
> Symark Software
> 5716 Corsa Avenue, Suite 200
> Westlake Village, CA  91362
> http://www.symark.com
> pp-support@symark.com
> pb-support@symark.com
> Main: 800-234-9072 or 818-865-6100
> Main fax: 818-889-1894
>
>
>
> [you wrote...]
>
>
> To: Matt Bell <mtbell@micropede.com>
> From: Jason R Thorpe <thorpej@zembu.com>
> List: current-users
> Date: 08/06/2001 14:53:44
>
> On Mon, Aug 06, 2001 at 04:54:28PM -0400, Matt Bell wrote:
>
>  > Im trying to build a kernel with today's source and July 25th's userland
>  > and get this error:
>
> Make sure you have updated your gas(1) first.
>
>  >
>  > cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
>  > -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch
>  > -I../../../.. -nostdinc -DLKM -DIPSEC_DEBUG -DMAXUSERS=32 -D_KERNEL
>  > -D_KERNEL_OPT -Di386  -c ../../../../dev/clock_subr.c
>  > cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
>  > -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch
>  > -I../../../.. -nostdinc -DLKM -DIPSEC_DEBUG -DMAXUSERS=32 -D_KERNEL
>  > -D_KERNEL_OPT -Di386  -c ../../../../arch/i386/isa/npx.c
>  > /tmp/ccaNVX5r.s: Assembler messages:
>  > /tmp/ccaNVX5r.s:314: Error: no such 386 instruction: `fxsave'
>  > /tmp/ccaNVX5r.s:410: Error: no such 386 instruction: `fxsave'
>  > /tmp/ccaNVX5r.s:450: Error: no such 386 instruction: `fxrstor'
>  > /tmp/ccaNVX5r.s:486: Error: no such 386 instruction: `fxsave'
>  > /tmp/ccaNVX5r.s:581: Error: no such 386 instruction: `fxsave'
>  > *** Error code 1
>  >
>  > Stop.
>  >
>  > Any Ideas?
>  >
>  > -Matt
>  >
>
> --
>         -- Jason R. Thorpe <thorpej@zembu.com>



Glen M. Gross
Unix Technical Support Specialist
Symark Software
5716 Corsa Avenue, Suite 200
Westlake Village, CA  91362
http://www.symark.com
pp-support@symark.com
pb-support@symark.com
Main: 800-234-9072 or 818-865-6100
Main fax: 818-889-1894