Date: Sun, 15 Apr 2007 17:01:58 -0500 From: Troy Kocher <tkocher@mtadistributors.com> To: freebsd-questions@freebsd.org Subject: 6.2 custom kernel build HELP Message-ID: <EF9259F4-C1A0-4B3A-9628-1A5F02212D44@mtadistributors.com>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-14-798822909 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x441d<SSE3,RSVD2,MON,DS_CPL,CNTX-ID,<b14>> AMD Features=0x20000000<LM> Logical CPUs per core: 2 real memory = 3489071104 (3327 MB) avail memory = 3414265856 (3256 MB) ACPI APIC Table: <PTLTD APIC > 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 <Version 2.0> irqs 0-23 on motherboard ioapic1 <Version 2.0> irqs 24-47 on motherboard ioapic2 <Version 2.0> irqs 48-71 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: <PTLTD RSDT> 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: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 cpu2: <ACPI CPU> on acpi0 cpu3: <ACPI CPU> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pci0: <unknown> at device 0.1 (no driver attached) pci0: <base peripheral> at device 1.0 (no driver attached) pcib1: <ACPI PCI-PCI bridge> irq 16 at device 2.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pcib2: <ACPI PCI-PCI bridge> irq 16 at device 3.0 on pci0 pci2: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> at device 0.0 on pci2 pci3: <ACPI PCI bus> on pcib3 asr0: <Adaptec Caching SCSI RAID> 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: <base peripheral, interrupt controller> at device 0.1 (no driver attached) pcib4: <ACPI PCI-PCI bridge> at device 0.2 on pci2 pci4: <ACPI PCI bus> on pcib4 em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x2000-0x203f mem 0xda300000-0xda31ffff irq 54 at device 2.0 on pci4 em0: Ethernet address: 00:30:48:68:8e:dc em1: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x2040-0x207f mem 0xda320000-0xda33ffff irq 55 at device 2.1 on pci4 em1: Ethernet address: 00:30:48:68:8e:dd pci2: <base peripheral, interrupt controller> at device 0.3 (no driver attached) pcib5: <ACPI PCI-PCI bridge> irq 16 at device 4.0 on pci0 pci5: <ACPI PCI bus> on pcib5 pcib6: <ACPI PCI-PCI bridge> irq 16 at device 6.0 on pci0 pci6: <ACPI PCI bus> on pcib6 uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0x1400-0x141f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: <Intel 82801EB (ICH5) USB controller USB-A> 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: <Intel 82801EB (ICH5) USB controller USB-B> port 0x1420-0x143f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: <Intel 82801EB (ICH5) USB controller USB-B> 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: <Intel 82801EB (ICH5) USB controller USB-C> port 0x1440-0x145f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: <Intel 82801EB (ICH5) USB controller USB-C> 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: <Intel 82801EB (ICH5) USB controller USB-D> port 0x1460-0x147f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: <Intel 82801EB (ICH5) USB controller USB-D> 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: <Intel 82801EB/R (ICH5) USB 2.0 controller> 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: <Intel 82801EB/R (ICH5) USB 2.0 controller> 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: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci7: <ACPI PCI bus> on pcib7 pci7: <display, VGA> at device 1.0 (no driver attached) isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x14a0-0x14af at device 31.1 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 pci0: <serial bus, SMBus> at device 31.3 (no driver attached) acpi_button0: <Power Button> on acpi0 ppc0: <ECP parallel printer port> 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: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> 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: <floppy drive controller> 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: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff, 0xc9000-0xcefff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> 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 <MATSHITADVD-RAM SW-9572/F100> at ata0-master UDMA33 ses0 at asr0 bus 0 target 6 lun 0 ses0: <SUPER GEM318 0> Fixed Processor SCSI-2 device ses0: SAF-TE Compliant Device ses1 at asr0 bus 1 target 6 lun 0 ses1: <SUPER GEM318 0> Fixed Processor SCSI-2 device ses1: SAF-TE Compliant Device da0 at asr0 bus 0 target 0 lun 0 da0: <ADAPTEC RAID-5 3B0A> 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 --Apple-Mail-14-798822909 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFGIqDW7N3ahyl93usRAlfhAKCF3k/erG3FYfKWiG7xwSV8kR8/VgCghqhT ILMUrL7/rc+Taj/76Fops8s= =+Gew -----END PGP SIGNATURE----- --Apple-Mail-14-798822909--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EF9259F4-C1A0-4B3A-9628-1A5F02212D44>