Re: /usr/src/sys/dev/imcsmb/imcsmb_var.h:52:10: fatal error
- In reply to: Gary Jennejohn : "Re: /usr/src/sys/dev/imcsmb/imcsmb_var.h:52:10: fatal error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Apr 2025 18:48:24 UTC
On 2025-04-17 00:45, Gary Jennejohn wrote: > On Wed, 16 Apr 2025 22:06:35 -0700 > Chris <bsd-lists@bsdforge.com> wrote: > >> In an attempt to take advantage of all the work >> done on iwlwifi recently. I pulled a fresh copy of src >> at: >> >> commit b836c229aa5ac345114f5986b6034ad3ed760da1 (HEAD -> main, >> freebsd/main, >> freebsd/HEAD) >> Author: Andrew Gallatin <gallatin@FreeBSD.org> >> Date: Tue Apr 15 19:37:06 2025 -0400 >> >> and proceeded to build world/kernel. The buildkernel stage >> stopped at: >> >> In file included from /usr/src/sys/dev/imcsmb/imcsmb.c:52: >> /usr/src/sys/dev/imcsmb/imcsmb_var.h:52:10: fatal error: 'smbus_if.h' file >> not found >> 52 | #include "smbus_if.h" >> 1 error generated. >> >> I used the same kernconf I used for the kernel I'm using now. >> A trip to /usr/src and a search with find(1) confirms the file doesn't >> exist. How would I best proceed? >> >> Thank you for any direction on this. >> > > smbus_if.h is created from > /sys/conf/files:dev/smbus/smbus_if.m optional smbus Great clue here, Gary. Thanks! > > You need device smbus in your kernel config file so that it will be created. Right. As I mentioned. I'm using the same kernconf I used to build the kernel I'm currently using. dmesg(8) reports: smbios0: <System Management BIOS> at iomem 0x40084000-0x4008401e smbios0: Version: 3.3, BCD Revision: 3.3 ichsmb0: <Intel Alder Lake SMBus controller> port 0xefa0-0xefbf mem 0x6001144000-0x60011440ff at device 31.4 on pci0 smbus0: <System Management Bus> on ichsmb0 So it appears that my system uses it. Now, if I can only get my OS to provide it. ;) Thanks for that great clue and all your time here, Gary! --Chris > > I don't have smbus in my file and as a result I don't have smbus_if.h on > my system. -- sent from hardware written from and running on FreeBSD