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?) Secondly I commented out the entire WLAN section from within GENERIC but for some reason it looks this module is still being compiled I am lost for directions. Please help -- Best Regards, Aijaz Baig
Herbert J. Skuhra
2017-Aug-20 08:51 UTC
Error building kernel on 10.3 (building ATH module)
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 compiledTo include/exclude modules from the build you have to set MODULES_OVERRIDE or WITHOUT_MODULES. This is explained in make.conf(5). -- Herbert
Hi Yes the sources are from the DVD that I used to install the system. Then again I am trying to update the sources over svn but at some or the other point it just fails with a connection reset error even though I am on a pretty fast connection Is there an alternative? On Sun, Aug 20, 2017 at 12:47 PM, 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?) > > Secondly I commented out the entire WLAN section from within GENERIC but > for some reason it looks this module is still being compiled > > I am lost for directions. Please help > > > -- > > Best Regards, > Aijaz Baig >-- Best Regards, Aijaz Baig