FreeBSD stable/13 の buildkernel も手元の環境が壊れていた様だ ― 2022年02月24日 13時00分33秒
出ていたエラーは以下の通り。
git でコードを見ていた時に rtwn 等のファイルに変更が無いのを見てから、手元を疑った。
/usr/src/sys/dev/rtwn/usb/rtwn_usb_attach.c:103:49: error: invalid application o
f 'sizeof' to an incomplete type 'const struct usb_device_id []'
return (usbd_lookup_id_by_uaa(rtwn_devs, sizeof(rtwn_devs), uaa));
^~~~~~~~~~~
/usr/src/sys/dev/rtwn/usb/rtwn_usb_attach.c:490:1: error: invalid application of
'sizeof' to an incomplete type 'const struct usb_device_id []'
USB_PNP_HOST_INFO(rtwn_devs);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/dev/usb/usbdi.h:346:12: note: expanded from macro 'USB_PNP_HOST_INF
O'
sizeof(table) / sizeof(table[0]))
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/module.h:187:16: note: expanded from macro 'MODULE_PNP_INFO'
.num_entry = n
取り敢えず、usb か rtwn の名前を含むファイルを削除。
運良くこれで、コンパイルが通るようになった。
% find /usr/obj -type f -name '*usb*' -or -name '*rtwn*' | xargs rm
最近のコメント