Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build broken for port-amd64



On Sun, 9 Dec 2012, Paul Goyette wrote:

With sources updated just minutes ago,

/build/netbsd-local/src/sys/arch/x86/x86/cpu.c:191:31: error: 'MP_TRAMPOLINE' undeclared here (not in a function)
/build/netbsd-local/src/sys/arch/x86/x86/cpu.c: In function 'cpu_attach':
/build/netbsd-local/src/sys/arch/x86/x86/cpu.c:458:6: error: 'mp_verbose' undeclared (first use in this function) /build/netbsd-local/src/sys/arch/x86/x86/cpu.c:458:6: note: each undeclared identifier is reported only once for each function it appears in
*** [cpu.o] Error code 1


I suspect the following commit:

Module Name:    src
Committed By:   kiyohara
Date:           Sat Dec  8 12:36:31 UTC 2012

Modified Files:
       src/sys/arch/i386/i386: db_interface.c trap.c
       src/sys/arch/x86/x86: bus_dma.c cpu.c platform.c

Log Message:
#ifdef - #endif-ed. NMCA, NISA, NNPX, NIOAPIC, LAPIC, MPBIOS and MULTIPROCESSOR.


BTW, this error occurs on a _custom_ amd64 kernel, which was working just fine yesterday. The configuration file is attached.


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------
include "arch/amd64/conf/std.amd64"

#ident  "GENERIC-$Revision: 1.365 $"
ident   "WHOOPPEE (shared) 2012-12-09 16:48:40"

options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary

config          netbsd root on ? type ffs

maxusers        64              # estimated number of users

options         INSECURE        # disable kernel security levels - X needs this
options         RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
options         NTP             # NTP phase/frequency locked loop
options         KTRACE          # system call tracing via ktrace(1)
#options        SYSTRACE        # system call vetting via systrace(1)

# Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
options         SYSVMSG         # System V-like message queues
options         SYSVSEM         # System V-like semaphores
options         SYSVSHM         # System V-like memory sharing

options         MODULAR         # new style module(7) framework
options         QUOTA           # legacy UFS quotas
options         QUOTA2          # new, in-filesystem UFS quotas
options         VGA_POST        # in-kernel support for VGA POST
options         BUFQ_PRIOCSCAN

options         USERCONF        # userconf(4) support
options         SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
options         CPU_UCODE       # cpu ucode loading support

# These are provided by modules
no options      EXEC_ELF64
no options      EXEC_SCRIPT
no options      COREDUMP
no options      AIO
no options      MQUEUE

# Kernel compat options - these need to be built-in for dnetc to work
options         COMPAT_40
options         COMPAT_50
options         COMPAT_60
options         COMPAT_BSDPTY

#
# Debugging options
#

#options        DIAGNOSTIC      # expensive kernel consistency checks
#options        DEBUG           # expensive debugging checks/support
#options        LOCKDEBUG       # expensive locking checks/support
#options        KMEMSTATS       # kernel memory statistics (vmstat -m)

# Because gcc omits the frame pointer for any -O level, the line below
# is needed to make backtraces in DDB work.

makeoptions     COPTS="-O2 -fno-omit-frame-pointer"
makeoptions     DEBUG="-g"      # compile full symbol table

options         DDB             # in-kernel debugger
options         DDB_ONPANIC=2   # see also sysctl(8): `ddb.onpanic'
options         DDB_HISTORY_SIZE=512    # enable history editing in DDB
options         DDB_COMMANDONENTER="call ddb_vgapost; bt"

#options        KGDB            # remote debugger
#options        KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600

#
# Networking options
#
pseudo-device   loop                    # network loopback
pseudo-device   gif                     # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device  ipfilter                # IP filter (firewall) and NAT

options         GATEWAY         # packet forwarding
options         INET            # IP + ICMP + TCP + UDP
options         INET6           # IPv6

#
# wscons options
#
pseudo-device   wsmux                   # mouse & keyboard multiplexor
pseudo-device   wsfont

options         WSEMUL_VT100            # VT100 / VT220 emulation
options         WS_KERNEL_FG=WSCOL_GREEN
options         WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
options         WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
options         WSDISPLAY_COMPAT_USL            # wsconscfg VT handling
options         WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
options         PCDISPLAY_SOFTCURSOR
options         WSDISPLAY_SCROLLSUPPORT

#
# Miscellaneous options
#
options         PAX_MPROTECT=0          # PaX mprotect(2) restrictions
options         PAX_ASLR=0              # PaX Address Space Layout Randomization

options         DKWEDGE_AUTODISCOVER    # Automatically add dk(4) instances
options         DKWEDGE_METHOD_GPT      # Supports GPT partitions as wedges

options         ACPI_SCANPCI            # find PCI roots using ACPI

options         WAPBL           # File system journaling support

#
# Pseudo-Devices
#

# crypto pseudo-devices
pseudo-device   crypto                  # /dev/crypto device
pseudo-device   swcrypto                # software crypto implementation

# disk/mass storage pseudo-devices
pseudo-device   cgd             4       # cryptographic disk devices

# miscellaneous pseudo-devices
pseudo-device   pty                     # pseudo-terminals
pseudo-device   sequencer       1       # MIDI sequencer
pseudo-device   clockctl                # user control of clock subsystem
pseudo-device   ksyms                   # /dev/ksyms
pseudo-device   lockstat                # lock profiling
pseudo-device   drvctl                  # userland interface to drivers, incl.
                                        # autoconf and properties retrieval
pseudo-device   swwdog                  # software watchdog timer

#
# Common mainbus configuration
#
mainbus0        at root
cpu*            at mainbus?
ioapic*         at mainbus?
acpi*           at mainbus?
pci0            at mainbus? bus 0

# ACPI devices - provided via modules
#acpicpu*       at cpu?
#acpibut*       at acpi?
#acpifan*       at acpi?
#acpipmtr*      at acpi?                # ACPI Power Meter (experimental)
#acpiwdrt*      at acpi?                # ACPI Watchdog Resource Table
#acpitz*        at acpi?
#acpiwmi*       at acpi?
#asus*          at acpi?
#aibs*          at acpi?
#hpet*          at acpi?

# ACPI devices
attimer*        at acpi?
acpiec*         at acpi?
pckbc*          at acpi?
com*            at acpi?
lpt*            at acpi?
pcppi*          at acpi?
midi*           at pcppi?
sysbeep*        at pcppi?

# USB devices

uhci*           at pci? dev ? function ?
ehci*           at pci? dev ? function ?
ohci*           at pci? dev ? function ?
usb*            at uhci?
usb*            at ehci?
usb*            at ohci?
uhub*           at usb?

uhub*           at uhub? port ?
ugen*           at uhub? port ? 
uaudio*         at uhub? port ? configuration ?
uaudio*         at usbifif?
ulpt*           at uhub? port ? configuration ? interface ?
umass*          at uhub? port ? configuration ? interface ?
uhidev*         at uhub? port ? configuration ? interface ?
uhid*           at uhidev? reportid ?
ukbd*           at uhidev? reportid ?
wskbd*          at ukbd? console ? mux 1
ums*            at uhidev? reportid ? 
wsmouse*        at ums? mux 0

# Common PCI Configuration

ppb*            at pci? dev ? function ?
pci*            at ppb?
pchb*           at pci? dev ? function ?
pcib*           at pci? dev ? function ?

# Network devices
re*             at pci? dev ? function ?        # QUICKY, SPEEDY, LIGHTNING, &
                                                # ZIPPY
wm*             at pci? dev ? function ?        # SCREAMER

# Video
vga*            at pci? dev ? function ?

# PS/2 keyboard and mouse
# (need this to get sysbeep!)

isa*            at pcib?
pckbc*          at isa?
pckbd*          at pckbc?
wskbd*          at pckbd? mux 1
pms*            at pckbc?
wsmouse*        at pms? mux 0

wsdisplay0      at vga0 kbdmux 1
wsdisplay*      at wsemuldisplaydev?

# i2c/SMBus devices

piixpm*         at pci? dev ? function ?
iic*            at i2cbus?              # piixpm doesn't support rescan, so
                                        # modular iic(4) doesn't do anything

####
# The following i2c devices have proper "probe" routines
# and won't match unless the right device is at the right
# address.
#
# These have been modularized:
#       sdtemp* at addr 0x18 thru 0x1f
#       spdmem* at addr 0x50 thru 0x57
#
# Unknown or unidentified i2c devices
#
# Addresses 0x30 through 0x33 seem to be related to
# DDR3 DIMMs' spdmem Software Write-Protect.
#
#       xxx     at iic0 addr 0x20       # Lightning and Screamer
#       xxx     at iic0 addr 0x21       # Screamer
#       xxx     at iic0 addr 0x38       # Lightning and Screamer
#       xxx     at iic0 addr 0x69       # Quicky, Speedy, Lightning, and Zippy
#
####

# Firewire

fwohci*         at pci? dev ? function ?
ieee1394if*     at fwohci?
fwip*           at ieee1394if?

# Miscellaneous

audio*          at audiobus?

brgphy*         at mii?
igphy*          at mii?
makphy*         at mii?
rgephy*         at mii?
ukphy*          at mii?
atapibus*       at atabus?
atapibus*       at umass?
scsibus*        at umass?
wd*             at umass?
wd*             at atabus? drive ?
cd*             at atapibus? drive ?
cd*             at scsibus? target ? lun ?
st*             at atapibus? drive ?
st*             at scsibus? target ? lun ?
sd*             at atapibus? drive ?
sd*             at scsibus? target ? lun ?

ipmi*           at mainbus?

#
# Machine-specific disk device configuration
# We hard-wire all of these to make sure that devices match what is in
# /etc/fstab
#

# All machines have ahcisata
ahcisata0       at pci0 dev 17 function 0

atabus0         at ahcisata0 channel 0
atabus1         at ahcisata0 channel 1
atabus2         at ahcisata0 channel 2
atabus3         at ahcisata0 channel 3
atabus4         at ahcisata0 channel 4
atabus5         at ahcisata0 channel 5

# SCREAMER and LIGHTNING also have ixpide
ixpide0         at pci0 dev 20 function 1
atabus6         at ixpide0 channel 0
atabus7         at ixpide0 channel 1

# QUICKY, SPEEDY, and ZIPPY also have pciide
pciide0         at pci2 dev 0 function ?
atabus6         at pciide0 channel 0
atabus7         at pciide0 channel 1

# SCREAMER also has jmide
jmide0          at pci4 dev 0 function 0
ahcisata1       at jmide0
atabus8         at ahcisata1 channel 0
atabus9         at ahcisata1 channel 1

atabus10        at jmide0 channel 1

# BOLT has a second jmide for eSATA and Power-eSATA
jmide1          at pci6 dev 0 function 0
ahcisata2       at jmide1
atabus10        at ahcisata2 channel 0
atabus11        at ahcisata2 channel 1

wd0             at atabus0  drive 0
wd1             at atabus1  drive 0
wd2             at atabus2  drive 0
wd3             at atabus3  drive 0
wd4             at atabus4  drive 0
wd5             at atabus5  drive 0
wd6             at atabus6  drive 0
wd7             at atabus7  drive 0
wd8             at atabus8  drive 0
wd9             at atabus9  drive 0
wd10            at atabus10 drive 0

# SCREAMER runs RAID-1
pseudo-device   raid 4
options         RAID_AUTOCONFIG

# All systems have radeon video boards, so enable radeondrm (needs agp, too)

agp*            at pchb?
radeondrm*      at drm?

# Provide a place for amdtemp module to attach its device instances

amdnb_misc*     at pci?


Home | Main Index | Thread Index | Old Index