Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2025 11:41:44 -0700
From:      Chris <bsd-lists@bsdforge.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: /usr/src/sys/dev/imcsmb/imcsmb_var.h:52:10: fatal error
Message-ID:  <690c2c6a7843225c67636cc0f912c36e@bsdforge.com>
In-Reply-To: <FA37AB52-9D2F-40E7-9472-3CF9822B3581@yahoo.com>
References:  <8E088E3D-2617-4B0A-BAE0-E9199DDA4F1B@yahoo.com> <ffc166a710f590558ba1c6ab5df1a3c2@bsdforge.com> <FA37AB52-9D2F-40E7-9472-3CF9822B3581@yahoo.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 2025-04-17 00:19, Mark Millard wrote:
> [Note: Your Email handling rejects my Emails, probably
> because of Yahoo being involved.]
Looks like sonic317-22.consmr.mail.gq1.yahoo.com
Sorry. Looks like you were the victim of using the same IP
as a recent attacker. Filters against yahoo are short lived.
I've cleared it for you. :)

> 
> On Apr 16, 2025, at 23:46, Chris <bsd-lists@BSDforge.com> wrote:
> 
>> On 2025-04-16 22:40, Mark Millard wrote:
>>> 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 <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?
>>> 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
>> Performing the same here returns nothing. In an effort to ensure adequate
>> space prior to the build. I clobbered /usr/obj. :(
> 
> Do you have any paths that involve:
> 
Thanks for all your work here, Mark.
I ran a grep -RF against /usr/src to get some clues. I discovered
much the same as you. It appears the missing file is created during
the build process. But apparently not, in my case.. I clobbered /usr/obj
after my last reply in hopes it was an incidental read/write hiccup.
But the build failed. While the missing file was reported as the cause.
The error was slightly different. At this point I'm inclined to simply
grab a fresh copy of src and try this again. I'll report my findings in
a couple/three hours when it should then be complete.

Thank you again, for all your time and efforts here!

--Chris
> sys/modules/i2c/controllers/imcsmb/
> 
> ? Do you have the likes of ( you likely
> have /usr/src/, not /usr/main-src/ ):
> 
> # more /usr/main-src/sys/modules/i2c/controllers/imcsmb/Makefile
> .PATH:          ${SRCTOP}/sys/dev/imcsmb
> KMOD            = imcsmb
> SRCS            = device_if.h bus_if.h pci_if.h smbus_if.h \
>                   imcsmb.c imcsmb_pci.c imcsmb_reg.h imcsmb_var.h
> 
> .include <bsd.kmod.mk>
> 
> # grep -rl imcsmb /usr/main-src/sys/ | more
> /usr/main-src/sys/modules/i2c/controllers/imcsmb/Makefile
> /usr/main-src/sys/modules/i2c/controllers/Makefile
> /usr/main-src/sys/x86/conf/NOTES
> /usr/main-src/sys/dev/imcsmb/imcsmb_reg.h
> /usr/main-src/sys/dev/imcsmb/imcsmb.c
> /usr/main-src/sys/dev/imcsmb/imcsmb_var.h
> /usr/main-src/sys/dev/imcsmb/imcsmb_pci.c
> /usr/main-src/sys/conf/files.x86
> 
> # grep imcsmb /usr/main-src/sys/x86/conf/NOTES 
> /usr/main-src/sys/conf/files.x86
> /usr/main-src/sys/x86/conf/NOTES:# imcsmb integrated Memory Controller (iMC) 
> SMBus
> controller
> /usr/main-src/sys/x86/conf/NOTES:device imcsmb
> /usr/main-src/sys/conf/files.x86:dev/imcsmb/imcsmb.c optional imcsmb
> /usr/main-src/sys/conf/files.x86:dev/imcsmb/imcsmb_pci.c optional imcsmb pci
> 
>>> (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.
>> Really appreciate the clues here, Mark. I'll keep investigating. The
>> build worked last time with this kernconf. So there must be a way.
> 
> ===
> Mark Millard
> marklmi at yahoo.com

-- 
sent from hardware written from and running on FreeBSD
[-- Attachment #2 --]
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBGf/G0IBCADARuJc6IcwOe3jv7dQsP1X/EIHvCFExPbTmlMNFMXbMMccQUnV
o8ayEn+wmTvPhw7uL3PDk7DQs16W1sN2b8UMFc804cVWNGtoG3rA+Np+TFEYlXJx
eh5Q42VHptkuwzHKl+q2utkpRlS7uHyfjsInQAoHxLyi/wrsaZTHHhDbLLhJ5Ez0
arohQ2Q1w0M5e9rW8Fy5rpC7RpC6uO1SZMxcbdqURI/BBqxbiD1iW62cDWFkfFX+
dtaEXghFV7BIBMDSrgIunGoEfdMZgXys7O6bPWn8z0cuOZIPj4HrjoCYARyQ+sdc
rjz/k06SLM/UvEZDorJhT4DbYrwMNvaPWJiPABEBAAG0HkNocmlzIDxic2QtbGlz
dHNAYnNkZm9yZ2UuY29tPokBNQQQAQgAHwUCZ/8bQgYLCQcIAwIEFQgKAgMWAgEC
GQECGwMCHgEACgkQVKBqaOUSci8bSwf/fK3QcTYXRMrv82HIp4SiGCSD7/bRmyWr
ipv2vzknGFHxPBN4AEWI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RCcgkfwD7QR+nSZ0thWOGMpcnivjuReeVRkz/webUF47
BXJ/Tge07nrxdtyTIHBbp35fPIriaKaII6YWc2Ufdxwv+cD8PADS6gQWAlgrWLmn
VmYtyHs4kwtiPZyUyuBdWnZal2GyYY0WVwYjvbk95eInwOaIdoTjesJ7ZhUFu155
r4hh9GlvM0uv8WJ5Mw9wvHa5fIM205I5g0IWC7yvTwwwKHlV4JQQOqMwfv569OEl
1GKqA12nSVziB1+UV+I0NqOABWi/MOi+IySPzYP+XgdPfRNx4vmoHYZwWOQ3t4Jd
TEM=
=oj6y
-----END PGP PUBLIC KEY BLOCK-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?690c2c6a7843225c67636cc0f912c36e>