From owner-freebsd-questions@FreeBSD.ORG Sun Apr 15 22:15:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7876316A401 for ; Sun, 15 Apr 2007 22:15:45 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 53F5E13C4B8 for ; Sun, 15 Apr 2007 22:15:45 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l3FMFiZa014039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 15 Apr 2007 15:15:44 -0700 X-Auth-Received: from [192.168.10.45] (c-24-7-142-221.hsd1.ca.comcast.net [24.7.142.221]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l3FMFhtx032108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 15 Apr 2007 15:15:43 -0700 Message-ID: <4622A42A.4020608@u.washington.edu> Date: Sun, 15 Apr 2007 15:16:10 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.4.15.150150 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P5 0, __CP_MEDIA_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_24 0, __STOCK_PHRASE_25 0, __USER_AGENT 0' Subject: Re: 6.2 custom kernel build HELP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2007 22:15:45 -0000 Troy Kocher wrote: > I'm trying to build my first custom kernel and it seems to be blowing up > each time I try to: > bsd#make buildkernel KERNCONF=SMP_TAOSCSI > > Here is the last part of the output when it blows up. . > > MAKE=make sh /usr/src/sys/conf/newvers.sh SMP-TAOSCSI_v1 > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. > -I/usr/src/sys -I/usr/src/sys/contrib/altq > -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf > -I/usr/src/sys/dev/ath -I/usr/src/sys/contrib/ngatm > -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include > opt_global.h -fno-common -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx > -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror vers.c > linking kernel.debug > udbp.o(.text+0x36d): In function `udbp_attach': > /usr/src/sys/dev/usb/udbp.c:357: undefined reference to `ng_newtype' > udbp.o(.text+0x39c):/usr/src/sys/dev/usb/udbp.c:363: undefined reference > to `ng_make_node_common' > udbp.o(.text+0x3d7):/usr/src/sys/dev/usb/udbp.c:366: undefined reference > to `ng_name_node' > udbp.o(.text+0x3ec):/usr/src/sys/dev/usb/udbp.c:367: undefined reference > to `ng_unref_node' > udbp.o(.text+0x506): In function `udbp_detach': > /usr/src/sys/dev/usb/udbp.c:431: undefined reference to `ng_rmnode_self' > udbp.o(.text+0x51b):/usr/src/sys/dev/usb/udbp.c:433: undefined reference > to `ng_unref_node' > udbp.o(.text+0x60b): In function `udbp_in_transfer_cb': > /usr/src/sys/dev/usb/udbp.c:512: undefined reference to `ng_package_data' > udbp.o(.text+0x621):/usr/src/sys/dev/usb/udbp.c:512: undefined reference > to `ng_address_hook' > udbp.o(.text+0x630):/usr/src/sys/dev/usb/udbp.c:512: undefined reference > to `ng_snd_item' > udbp.o(.text+0x8d7): In function `ng_udbp_rcvmsg': > /usr/src/sys/dev/usb/udbp.c:686: undefined reference to `M_NETGRAPH_MSG' > udbp.o(.text+0x98b):/usr/src/sys/dev/usb/udbp.c:714: undefined reference > to `ng_address_ID' > udbp.o(.text+0x99c):/usr/src/sys/dev/usb/udbp.c:714: undefined reference > to `ng_snd_item' > udbp.o(.text+0x9aa):/usr/src/sys/dev/usb/udbp.c:714: undefined reference > to `ng_free_item' > udbp.o(.text+0x9b9):/usr/src/sys/dev/usb/udbp.c:715: undefined reference > to `M_NETGRAPH_MSG' > udbp.o(.text+0x9ee): In function `ng_udbp_rcvdata': > /usr/src/sys/dev/usb/udbp.c:733: undefined reference to `ng_free_item' > udbp.o(.text+0xc6a): In function `ng_udbp_rmnode': > /usr/src/sys/dev/usb/udbp.c:796: undefined reference to `ng_unref_node' > udbp.o(.text+0xc78):/usr/src/sys/dev/usb/udbp.c:798: undefined reference > to `ng_make_node_common' > udbp.o(.text+0xca5):/usr/src/sys/dev/usb/udbp.c:801: undefined reference > to `ng_name_node' > udbp.o(.text+0xcb6):/usr/src/sys/dev/usb/udbp.c:802: undefined reference > to `ng_unref_node' > udbp.o(.text+0xd14): In function `ng_udbp_disconnect': > /usr/src/sys/dev/usb/udbp.c:838: undefined reference to `ng_rmnode_self' > udbp.o(.rodata+0x4): In function `udbp_match': > /usr/src/sys/dev/usb/udbp.c:225: undefined reference to > `ng_parse_int32_type' > udbp.o(.rodata+0x10):/usr/src/sys/dev/usb/udbp.c:227: undefined > reference to `ng_parse_int32_type' > udbp.o(.rodata+0x24):/usr/src/sys/dev/usb/udbp.c:239: undefined > reference to `ng_parse_struct_type' > udbp.o(.rodata+0x60):/usr/src/sys/dev/usb/udbp.c:250: undefined > reference to `ng_parse_int32_type' > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/SMP_TAOSCSI. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > > > -------------------- > bsd# cat /var/run/dmesg.boot > Copyright (c) 1992-2007 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 > root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2800.12-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 > > Features=0xbfebfbff > > Features2=0x441d> > AMD Features=0x20000000 > Logical CPUs per core: 2 > real memory = 3489071104 (3327 MB) > avail memory = 3414265856 (3256 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpu0 (BSP): APIC ID: 6 > cpu1 (AP): APIC ID: 0 > cpu2 (AP): APIC ID: 1 > cpu3 (AP): APIC ID: 7 > ioapic0 irqs 0-23 on motherboard > ioapic1 irqs 24-47 on motherboard > ioapic2 irqs 48-71 on motherboard > kbd1 at kbdmux0 > ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > cpu0: on acpi0 > cpu1: on acpi0 > cpu2: on acpi0 > cpu3: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pci0: at device 0.1 (no driver attached) > pci0: at device 1.0 (no driver attached) > pcib1: irq 16 at device 2.0 on pci0 > pci1: on pcib1 > pcib2: irq 16 at device 3.0 on pci0 > pci2: on pcib2 > pcib3: at device 0.0 on pci2 > pci3: on pcib3 > asr0: mem > 0xda200000-0xda2fffff,0xdd000000-0xddffffff,0xde000000-0xdfffffff irq 24 > at device 1.0 on pci3 > asr0: [GIANT-LOCKED] > asr0: ADAPTEC 2010S FW Rev. 3B0A, 2 channel, 256 CCBs, Protocol I2O > pci2: at device 0.1 (no driver > attached) > pcib4: at device 0.2 on pci2 > pci4: on pcib4 > em0: port > 0x2000-0x203f mem 0xda300000-0xda31ffff irq 54 at device 2.0 on pci4 > em0: Ethernet address: 00:30:48:68:8e:dc > em1: port > 0x2040-0x207f mem 0xda320000-0xda33ffff irq 55 at device 2.1 on pci4 > em1: Ethernet address: 00:30:48:68:8e:dd > pci2: at device 0.3 (no driver > attached) > pcib5: irq 16 at device 4.0 on pci0 > pci5: on pcib5 > pcib6: irq 16 at device 6.0 on pci0 > pci6: on pcib6 > uhci0: port 0x1400-0x141f > irq 16 at device 29.0 on pci0 > uhci0: [GIANT-LOCKED] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0x1420-0x143f > irq 19 at device 29.1 on pci0 > uhci1: [GIANT-LOCKED] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > uhci2: port 0x1440-0x145f > irq 18 at device 29.2 on pci0 > uhci2: [GIANT-LOCKED] > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub2: 2 ports with 2 removable, self powered > uhci3: port 0x1460-0x147f > irq 16 at device 29.3 on pci0 > uhci3: [GIANT-LOCKED] > usb3: on uhci3 > usb3: USB revision 1.0 > uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub3: 2 ports with 2 removable, self powered > ehci0: mem > 0xda001000-0xda0013ff irq 23 at device 29.7 on pci0 > ehci0: [GIANT-LOCKED] > usb4: EHCI version 1.0 > usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 > usb4: on ehci0 > usb4: USB revision 2.0 > uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > uhub4: 8 ports with 8 removable, self powered > pcib7: at device 30.0 on pci0 > pci7: on pcib7 > pci7: at device 1.0 (no driver attached) > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x14a0-0x14af at device 31.1 on pci0 > ata0: on atapci0 > ata1: on atapci0 > pci0: at device 31.3 (no driver attached) > acpi_button0: on acpi0 > ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq > 1 on acpi0 > ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/8 bytes threshold > ppbus0: on ppc0 > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 > sio0: type 16550A > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 > fdc0: [FAST] > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > pmtimer0 on isa0 > orm0: at iomem > 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xcefff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > Timecounters tick every 1.000 msec > acd0: DMA limited to UDMA33, controller found non-ATA66 cable > acd0: DVDR at ata0-master UDMA33 > ses0 at asr0 bus 0 target 6 lun 0 > ses0: Fixed Processor SCSI-2 device > ses0: SAF-TE Compliant Device > ses1 at asr0 bus 1 target 6 lun 0 > ses1: Fixed Processor SCSI-2 device > ses1: SAF-TE Compliant Device > da0 at asr0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: Tagged Queueing Enabled > da0: 1260126MB (2580738048 512 byte sectors: 255H 63S/T 160643C) > SMP: AP CPU #2 Launched! > SMP: AP CPU #3 Launched! > SMP: AP CPU #1 Launched! > Trying to mount root from ufs:/dev/da0s1a > em0: link state changed to UP > ------------------------------------------------ > > > bsd# cat /root/kernels/SMP_TAOSCSI > machine i386 > cpu I686_CPU > ident SMP-TAOSCSI_v1 > makeoptions DEBUG=-g # Build kernel with gdb(1) debug > symbols > options SCHED_4BSD # 4BSD scheduler > options PREEMPTION # Enable kernel thread preemption > options INET # InterNETworking > options FFS # Berkeley Fast Filesystem > options SOFTUPDATES # Enable FFS soft updates support > options UFS_ACL # Support for access control lists > options UFS_DIRHASH # Improve performance on big > directories > options MD_ROOT # MD is a potential root device > options NFSCLIENT # Network Filesystem Client > options NFSSERVER # Network Filesystem Server > options NFS_ROOT # NFS usable as /, requires > NFSCLIENT > options CD9660 # ISO 9660 Filesystem > options PROCFS # Process filesystem (requires > PSEUDOFS) > options PSEUDOFS # Pseudo-filesystem framework > options GEOM_GPT # GUID Partition Tables. > options COMPAT_43 # Compatible with BSD 4.3 [KEEP > THIS!] > options COMPAT_FREEBSD4 # Compatible with FreeBSD4 > options COMPAT_FREEBSD5 # Compatible with FreeBSD5 > options SCSI_DELAY=2000 # Delay (in ms) before probing SCSI > options KTRACE # ktrace(1) support > options SYSVMSG # SYSV-style message queues > options SYSVSEM # SYSV-style semaphores > options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time > extensions > options KBD_INSTALL_CDEV # install a CDEV entry in /dev > options ADAPTIVE_GIANT # Giant mutex is adaptive. > options SMP # Symmetric MultiProcessor Kernel > device apic # I/O APIC > device eisa > device pci > device ata > device atapicd # ATAPI CDROM drives > options ATA_STATIC_ID # Static device numbering > device scbus # SCSI bus (required for SCSI) > device da # Direct Access (disks) > device ses # SCSI Environmental Services (and SAF-TE) > device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID > device atkbdc # AT keyboard controller > device atkbd # AT keyboard > device kbdmux # keyboard multiplexer > device vga # VGA video card driver > device splash # Splash screen and screen saver support > device pmtimer > device sio # 8250, 16[45]50 based serial ports > device em # Intel PRO/1000 adapter Gigabit > Ethernet Card > device random # Entropy device > device ether # Ethernet support > device tun # Packet tunnel. > device pty # Pseudo-ttys (telnet etc) > device md # Memory "disks" > device gif # IPv6 and IPv4 tunneling > device uhci # UHCI PCI->USB interface > device ohci # OHCI PCI->USB interface > device ehci # EHCI PCI->USB interface (USB 2.0) > device usb # USB Bus (required) > device udbp # USB Double Bulk Pipe devices > device ugen # Generic > device uhid # "Human Interface Devices" > device ukbd # Keyboard > device umass # Disks/Mass storage - Requires scbus > and da > device ums # Mouse > > Troy Kocher > tkocher(at)mtadistributors(dot)com My guess is that you're missing "device ng" in your kernel (based on missing reference to ng_ noted above). I'd see the ng manpage for more info. -Garrett