Error building kernel on 10.3 (building ATH module)

Herbert J. Skuhra herbert at mailbox.org
Sun Aug 20 08:51:57 UTC 2017


On Sun, 20 Aug 2017 09:17:21 +0200,
Aijaz Baig <aijazbaig1 at gmail.com> wrote:
> 
> I am getting an error while compiling the kernel. The log is as follows:
> 
> --------------------------------------------------------------
> >>> stage 3.1: making dependencies
> --------------------------------------------------------------
> 
> In file included from /usr/src/sys/modules/ath/../../dev/ath/if_ath.c:99:
> In file included from @/dev/ath/if_athvar.h:40:
> @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found
> #include "ah_osdep.h"
>          ^
> 1 error generated.
> In file included from
> /usr/src/sys/modules/ath/../../dev/ath/if_ath_debug.c:81:
> In file included from @/dev/ath/if_athvar.h:40:
> @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found
> #include "ah_osdep.h"
>          ^
> 1 error generated.
> In file included from
> /usr/src/sys/modules/ath/../../dev/ath/if_ath_keycache.c:76:
> In file included from @/dev/ath/if_athvar.h:40:
> @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found
> #include "ah_osdep.h"
> 
> and a LOT of similar errors with the same 'ah_osdep.h' file not found
> 
> ...
> 
> then there is this as well:
> 
> 1 error generated.
> /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_attach.c:21:10:
> fatal error: 'ah.h' file not found
> #include "ah.h"
>          ^
> 1 error generated.
> /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_beacon.c:21:10:
> fatal error: 'ah.h' file not found
> #include "ah.h"
>          ^
> 1 error generated.
> /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_interrupts.c:21:10:
> fatal error: 'ah.h' file not found
> #include "ah.h"
>  .....
> 
> I am unable to fathom how such an error would have escaped the developers
> of this module (or am I missing something?)

Probably the latter.

Are you sure that your src tree is complete? Have you checked out your
src tree with svn? What's the output of 'svn st' and 'svn info'? Have
you tried with a clean /usr/obj? What commands do you use to build
world/kernel?  

> Secondly I commented out the entire WLAN section from within GENERIC but
> for some reason it looks this module is still being compiled

To include/exclude modules from the build you have to set
MODULES_OVERRIDE or WITHOUT_MODULES. This is explained in
make.conf(5).

--
Herbert


More information about the freebsd-stable mailing list