NetBSD-Bugs archive

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

kern/52314: Cannot build GENERIC kernel without wscons and friends



>Number:         52314
>Category:       kern
>Synopsis:       Numerous undefined symbols when building GENERIC w/o wscons
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 19 02:45:00 +0000 2017
>Originator:     Paul Goyette
>Release:        NetBSD 8.99.1
>Organization:
+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+
>Environment:
	
	
System: NetBSD speedy.whooppee.com 8.99.1 NetBSD 8.99.1 (SPEEDY 2017-06-18 08:18:56 UTC) #0: Sun Jun 18 09:27:50 UTC 2017 paul%speedy.whooppee.com@localhost:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
A GENERIC kernel without wscons components fails to link.
>How-To-Repeat:
1. Create a kernel configuration:

# cat << EOF > TEST
include	"arch/amd64/conf/GENERIC"

ident		"TEST 2017-06-18 08:18:56 UTC"

wsbell* at spkr? mux 1

no wsbell*
no wsmouse*
no wsdisplay*
no wskbd
no pseudo-device wsmux
EOF
#

2. Try to build the kernel


# ./build.sh -T /build/netbsd-local/tools/x86_64/amd64 \
_ -D /build/netbsd-local/dest/amd64 \
_ -O /build/netbsd-local/obj/amd64 \
_ -R /build/netbsd-local/release \
_ -V RELEASEMACHINEDIR=amd64 -V MKKDEBUG=yes \
_ -U -u -x -m amd64 -j1 kernel=TEST
#

3. Observe failure

(from log file)
...
#      link  TEST/netbsd
/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-ld -Map netbsd.map --cref -T netbsd.ldscript -Ttext 0xffffffff80200000 -e start -z max-page-size=0x200000 -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
pci_machdep.o: In function `x86_genfb_setmode':
/build/netbsd-local/src_ro/sys/arch/x86/pci/pci_machdep.c:970: undefined reference to `x86_genfb_mtrr_init'
vga_pci.o: In function `vga_pci_ioctl':
/build/netbsd-local/src_ro/sys/dev/pci/vga_pci.c:316: undefined reference to `wsdisplayio_busid_pci'
genfb_pci.o: In function `pci_genfb_ioctl':
/build/netbsd-local/src_ro/sys/dev/pci/genfb_pci.c:226: undefined reference to `wsdisplayio_busid_pci'
pckbd.o: In function `pckbd_input':
/build/netbsd-local/src_ro/sys/dev/pckbport/pckbd.c:985: undefined reference to `wskbd_input'
/build/netbsd-local/src_ro/sys/dev/pckbport/pckbd.c:980: undefined reference to `wskbd_rawinput'
pckbd.o: In function `pckbdattach':
/build/netbsd-local/src_ro/sys/dev/pckbport/pckbd.c:412: undefined reference to `wskbddevprint'
pckbd.o: In function `pckbd_cnattach':
/build/netbsd-local/src_ro/sys/dev/pckbport/pckbd.c:1083: undefined reference to `wskbd_cnattach'
pms.o: In function `pmsattach':
/build/netbsd-local/src_ro/sys/dev/pckbport/pms.c:223: undefined reference to `wsmousedevprint'
pms.o: In function `pmsinput':
/build/netbsd-local/src_ro/sys/dev/pckbport/pms.c:640: undefined reference to `wsmouse_input'
synaptics.o: In function `pms_synaptics_process_packet':
/build/netbsd-local/src_ro/sys/dev/pckbport/synaptics.c:1387: undefined reference to `wsmouse_input'
synaptics.o: In function `pms_synaptics_passthrough':
/build/netbsd-local/src_ro/sys/dev/pckbport/synaptics.c:829: undefined reference to `wsmouse_input'
elantech.o: In function `pms_elantech_input':
/build/netbsd-local/src_ro/sys/dev/pckbport/elantech.c:292: undefined reference to `wsmouse_input'
/build/netbsd-local/src_ro/sys/dev/pckbport/elantech.c:265: undefined reference to `wsmouse_input'
ukbd.o: In function `ukbd_detach':
/build/netbsd-local/src_ro/sys/dev/usb/ukbd.c:578: undefined reference to `wskbd_cndetach'
ukbd.o: In function `ukbd_decode':
/build/netbsd-local/src_ro/sys/dev/usb/ukbd.c:884: undefined reference to `wskbd_input'
/build/netbsd-local/src_ro/sys/dev/usb/ukbd.c:867: undefined reference to `wskbd_rawinput'
ukbd.o: In function `ukbd_attach':
/build/netbsd-local/src_ro/sys/dev/usb/ukbd.c:490: undefined reference to `wskbddevprint'
/build/netbsd-local/src_ro/sys/dev/usb/ukbd.c:465: undefined reference to `wskbd_cnattach'
ums.o: In function `ums_attach':
/build/netbsd-local/src_ro/sys/dev/usb/ums.c:388: undefined reference to `wsmousedevprint'
ums.o: In function `ums_intr':
/build/netbsd-local/src_ro/sys/dev/usb/ums.c:467: undefined reference to `wsmouse_input'
uts.o: In function `uts_attach':
/build/netbsd-local/src_ro/sys/dev/usb/uts.c:238: undefined reference to `wsmousedevprint'
uts.o: In function `uts_intr':
/build/netbsd-local/src_ro/sys/dev/usb/uts.c:396: undefined reference to `wsmouse_input'
uep.o: In function `uep_intr':
/build/netbsd-local/src_ro/sys/dev/usb/uep.c:457: undefined reference to `wsmouse_input'
uep.o: In function `uep_attach':
/build/netbsd-local/src_ro/sys/dev/usb/uep.c:226: undefined reference to `wsmousedevprint'
udl.o: In function `udl_eraserows':
/build/netbsd-local/src_ro/sys/dev/usb/udl.c:1112: undefined reference to `rasops_unpack_attr'
udl.o: In function `udl_erasecols':
/build/netbsd-local/src_ro/sys/dev/usb/udl.c:1054: undefined reference to `rasops_unpack_attr'
udl.o: In function `udl_putchar':
/build/netbsd-local/src_ro/sys/dev/usb/udl.c:995: undefined reference to `rasops_unpack_attr'
udl.o: In function `udl_alloc_screen':
/build/netbsd-local/src_ro/sys/dev/usb/udl.c:732: undefined reference to `rasops_init'
udl.o: In function `udl_attach':
/build/netbsd-local/src_ro/sys/dev/usb/udl.c:476: undefined reference to `wsemuldisplaydevprint'
btkbd.o: In function `btkbd_input':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btkbd.c:589: undefined reference to `wskbd_input'
/build/netbsd-local/src_ro/sys/dev/bluetooth/btkbd.c:573: undefined reference to `wskbd_rawinput'
btkbd.o: In function `btkbd_attach':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btkbd.c:239: undefined reference to `wskbddevprint'
btms.o: In function `btms_attach':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btms.c:330: undefined reference to `wsmousedevprint'
btms.o: In function `btms_input':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btms.c:438: undefined reference to `wsmouse_input'
btmagic.o: In function `btmagic_tapcallout':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btmagic.c:1684: undefined reference to `wsmouse_input'
btmagic.o: In function `btmagic_attach':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btmagic.c:409: undefined reference to `wsmousedevprint'
btmagic.o: In function `btmagic_input_basic':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btmagic.c:1225: undefined reference to `wsmouse_input'
btmagic.o: In function `btmagic_input_magict':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btmagic.c:1650: undefined reference to `wsmouse_input'
btmagic.o: In function `btmagic_input_magicm':
/build/netbsd-local/src_ro/sys/dev/bluetooth/btmagic.c:1421: undefined reference to `wsmouse_input'
vga.o: In function `vga_cnattach':
/build/netbsd-local/src_ro/sys/dev/ic/vga.c:705: undefined reference to `wsdisplay_cnattach'
vga.o: In function `vga_cndetach':
/build/netbsd-local/src_ro/sys/dev/ic/vga.c:724: undefined reference to `wsdisplay_cndetach'
vga.o: In function `vga_common_attach':
/build/netbsd-local/src_ro/sys/dev/ic/vga.c:663: undefined reference to `wsemuldisplaydevprint'
spic.o: In function `spic_intr':
/build/netbsd-local/src_ro/sys/dev/ic/spic.c:227: undefined reference to `wsmouse_input'
spic.o: In function `spic_attach':
/build/netbsd-local/src_ro/sys/dev/ic/spic.c:271: undefined reference to `wsmousedevprint'
drmfb_pci.o: In function `drmfb_pci_ioctl':
/build/netbsd-local/src_ro/sys/external/bsd/drm2/pci/drmfb_pci.c:141: undefined reference to `wsdisplayio_busid_pci'
genfb.o: In function `genfb_init_screen':
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:587: undefined reference to `rasops_init'
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:590: undefined reference to `rasops_reconfig'
genfb.o: In function `genfb_attach':
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:352: undefined reference to `wsemuldisplaydevprint'
genfb.o: In function `genfb_init_palette':
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:684: undefined reference to `rasops_cmap'
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:711: undefined reference to `rasops_cmap'
genfb.o: In function `genfb_attach':
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:292: undefined reference to `wsdisplay_cnattach'
genfb.o: In function `genfb_ioctl':
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:494: undefined reference to `wsdisplayio_get_fbinfo'
/build/netbsd-local/src_ro/sys/dev/wsfb/genfb.c:489: undefined reference to `wsdisplayio_get_edid'
radeondrmkmsfb.o: In function `radeonfb_genfb_ioctl':
/build/netbsd-local/src_ro/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c:257: undefined reference to `wsdisplayio_busid_pci'
*** [netbsd] Error code 1

>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index