Chris <bsd-lists_at_bsdforge.com>  wrote on
Date: Thu, 17 Apr 2025 05:06:35 UTC :

> 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 <galla...@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?

I've no explicit use of such but when I looked on
a system here, I found a imcsmb/smbus_if.h inside
a build tree from a buildkernel :

# find -s / -name smbus_if.h -print | grep imcsmb
/usr/obj/BUILDs/main-ZNV4-nodbg-clang/usr/main-src/amd64.amd64/sys/GENERIC-NODBG/modules/usr/main-src/sys/modules/i2c/controllers/imcsmb/smbus_if.h

(Some of the naming and upper-level path structure is
unusual. See what is normal in your context.)

So it appears that sys/modules/i2c/controllers/imcsmb/smbus_if.h
needs to have been built first and that a -I PATH or such needs
to be used to find the file.

===
Mark Millard
marklmi at yahoo.com


Reply via email to