error in if_em.c building -stable kernel on sparc64

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error in if_em.c building -stable kernel on sparc64

Shane J Pearson
Hello,

I am getting an error in if_em.c when trying to build a -stable  
kernel on sparc64. I have tried both checking out the OPENBSD_4_0  
source and also cvs updating from the ftp downloadable  
source .tar.gz's. Each time I get the same result (if_em.c error text  
below).

As a test, I found building the GENERIC kernel of OPENBSD_4_0_BASE  
works fine.

I have built -stable plenty of times before, so I don't know if there  
is something wrong with the -stable code I updated to (tried three  
times now), or whether I am missing something obvious (apologies if  
so). I have re-done this from scratch (zeroed out hdd and freshly  
installed OpenBSD 4.0 Rel again), following FAQ 5.3.

With these slices:

# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a      252M   37.5M    202M    16%    /
/dev/sd0g      7.9G   70.0K    7.5G     0%    /home
/dev/sd0d      252M   24.0K    239M     0%    /tmp
/dev/sd0f      7.9G    598M    6.9G     8%    /usr
/dev/sd0e      252M    4.2M    235M     2%    /var

And 256M swap.

I am doing this on a Sun Ultra 10, 440MHz with 1GB RAM (dmesg below,  
for what it's worth).

# cd /usr
# export CVSROOT=[hidden email]:/cvs
# cvs -d$CVSROOT checkout -rOPENBSD_4_0 -P src ports XF4

...lots of cvs checkout text...

then when I make the kernel using:

# cd /usr/src/sys/arch/sparc64/conf
# config GENERIC
# cd ../compile/GENERIC
# make clean && make depend && make

It stops with this error:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-
uninitialized -Wno-format -Wno-main  -Wstack-larger-than-2047 -Wa,-
Av9a, -mno-fpu -fno-builtin-printf -fno-builtin-log  -pipe -nostdinc -
I. -I/usr/src/sys/arch/sparc64/compile/GENERIC/../../../../arch -I/
usr/src/sys/arch/sparc64/compile/GENERIC/../../../.. -DDDB -
DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -
DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_35 -
DCOMPAT_43 -DLKM -DFFS -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -
DEXT2FS -DMFS -DXFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -
DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DPORTAL -DINET -DALTQ -
DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DMROUTING -DBOOT_CONFIG -
DPCIVERBOSE -DUSER_PCICONF -DAPERTURE -DUSBVERBOSE -
DISP_COMPILE_FW="1" -DISP_COMPILE_1000_FW="1" -D_KERNEL  -c /usr/src/
sys/arch/sparc64/compile/GENERIC/../../../../dev/pci/if_em.c
/usr/src/sys/dev/pci/if_em.c: In function `em_rxeof':
/usr/src/sys/dev/pci/if_em.c:2446: error: structure has no member  
named `align_buf_len'
/usr/src/sys/dev/pci/if_em.c:2447: error: structure has no member  
named `align_buf_len'
/usr/src/sys/dev/pci/if_em.c:2465: error: structure has no member  
named `align_buf_len'
/usr/src/sys/dev/pci/if_em.c:2469: error: structure has no member  
named `align_buf_len'
/usr/src/sys/dev/pci/if_em.c:2470: error: structure has no member  
named `align_buf_len'
/usr/src/sys/dev/pci/if_em.c:2471: error: structure has no member  
named `align_buf'
/usr/src/sys/dev/pci/if_em.c:2473: error: structure has no member  
named `align_buf_len'
/usr/src/sys/dev/pci/if_em.c:2478: error: structure has no member  
named `align_buf'
/usr/src/sys/dev/pci/if_em.c:2480: error: structure has no member  
named `align_buf_len'
*** Error code 1

Stop in /usr/src/sys/arch/sparc64/compile/GENERIC (line 2106 of  
Makefile).
#


My dmesg, if it is at all useful:

console is keyboard/display
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2006 OpenBSD. All rights reserved.  http://
www.OpenBSD.org

OpenBSD 4.0 (GENERIC) #953: Sun Sep 17 00:56:22 MDT 2006
     [hidden email]:/usr/src/sys/arch/sparc64/compile/
GENERIC
total memory = 1073741824
avail memory = 970080256
using 6553 buffers containing 53682176 bytes of memory
bootpath: /pci@1f,0/pci@1,0/scsi@1,0/disk@0,0
mainbus0 (root): Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 440MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 440 MHz, version 0 FPU
cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 2048K  
external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0,  
ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff, iotdb 52f8000-5378000
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO Ebus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,  
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ipl 37
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ipl 43: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ipl 41: layout 33
wskbd0 at comkbd0: console keyboard
com0 at ebus0 addr 3062f8-3062ff ipl 42: mouse: ns16550a, 16 byte fifo
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ipl  
34: polled
"fdthree" at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003  
ipl 39 not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f,  
722000-722003 ipl 35 ipl 36: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address  
08:00:20:ff:b5:f1
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
vgafb0 at pci1 dev 2 function 0 "ATI Mach64 GP" rev 0x5c
wsdisplay0 at vgafb0: console (std, sun emulation), using wskbd0
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03:  
DMA, channel 0 configured to native-PCI, channel 1 configured to  
native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LITE-ON, LTR-52246S, 6S0F> SCSI0 5/
cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 disabled (no drives)
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
siop0 at pci2 dev 1 function 0 "Symbios Logic 53c875" rev 0x14: ivec  
0x7d0, using 4K of on-board RAM
scsibus1 at siop0: 16 targets
sd0 at scsibus1 targ 0 lun 0: <FUJITSU, MAU3036NP, 0104> SCSI3 0/
direct fixed
sd0: 35068MB, 49158 cyl, 2 head, 730 sec, 512 bytes/sec, 71819496 sec  
total
siop1 at pci2 dev 1 function 1 "Symbios Logic 53c875" rev 0x14: ivec  
0x7d1, using 4K of on-board RAM
scsibus2 at siop1: 16 targets
pcons at mainbus0 not configured
No counter-timer -- using %tick at 440MHz as system clock.
root on sd0a
siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
rootdev=0x700 rrootdev=0x1100 rawdev=0x1102


Any pointers to where I am going wrong, or how I can fix this, would  
be very appreciated.


Shane J Pearson
shanejp netspace net au

Reply | Threaded
Open this post in threaded view
|

Re: error in if_em.c building -stable kernel on sparc64

Jason LaRiviere-2
Shane J Pearson wrote:
> Hello,
>
> I am getting an error in if_em.c when trying to build a -stable kernel
> on sparc64.  It stops with this error:
>
> /usr/src/sys/dev/pci/if_em.c: In function `em_rxeof':
> /usr/src/sys/dev/pci/if_em.c:2446: error: structure has no member named
> `align_buf_len'

The correct header file seems to have been committed. You should cvs up
and try again.
--
jason

Reply | Threaded
Open this post in threaded view
|

Re: error in if_em.c building -stable kernel on sparc64

Shane J Pearson
Hello,

On 08/11/2006, at 11:01 AM, Jason LaRiviere wrote:

> Shane J Pearson wrote:
>> Hello,
>>
>> I am getting an error in if_em.c when trying to build a -stable  
>> kernel
>> on sparc64.  It stops with this error:
>>
>> /usr/src/sys/dev/pci/if_em.c: In function `em_rxeof':
>> /usr/src/sys/dev/pci/if_em.c:2446: error: structure has no member  
>> named
>> `align_buf_len'
>
> The correct header file seems to have been committed. You should  
> cvs up
> and try again.

I have updated and the new -stable GENERIC compiles and boots fine.

Thanks Theo, Brad and the others who gave me the heads up.


Shane J Pearson
shanejp netspace net au