Re: Kernel does not build on 10.0-CURRENT (amd64)

2012-01-06 Thread Adrian Chadd
i thought I had captured these.

just add

options AH_SUPPORT_AR5416

to your kernel.


Adrian

On 6 January 2012 09:14, Rainer Hurling rhur...@gwdg.de wrote:
 I am getting the following error when trying to build recent 10.0-CURRENT
 kernel (amd64)?

 [..snip..]
 cc -O2 -pipe -O2 -fno-strict-aliasing -pipe -msse3 -Werror -D_KERNEL
 -DKLD_MODULE -nostdinc  -I. -I/usr/src/sys/modules/ath/../../dev/ath
 -I/usr/src/sys/modules/ath/../../dev/ath/ath_hal
 -DHAVE_KERNEL_OPTION_HEADERS -include
 /usr/obj/usr/src/sys/RHURLIN/opt_global.h -I. -I@ -I@/contrib/altq
 -finline-limit=8000 --param inline-unit-growth=100 --param
 large-function-growth=1000 -fno-common  -fno-omit-frame-pointer
 -I/usr/obj/usr/src/sys/RHURLIN  -mno-sse -mcmodel=kernel -mno-red-zone
 -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
 -fstack-protector -std=iso9899:1999 -fstack-protector -Wall
 -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
 -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
 -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option    -c
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c: In function
 'ath_tx_aggr_comp_aggr':
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3136: error: 'struct
 ath_tx_status' has no member named 'ts_flags'
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3139: error: 'struct
 ath_tx_status' has no member named 'ts_ba_low'
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3140: error: 'struct
 ath_tx_status' has no member named 'ts_ba_high'
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3156: error: 'struct
 ath_tx_status' has no member named 'ts_tid'
 /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3158: error: 'struct
 ath_tx_status' has no member named 'ts_tid'
 *** Error code 1
 Stop in /usr/src/sys/modules/ath.
 *** Error code 1


 I observe this behaviour on three boxes. Any help is really appreciated.

 Thanks in advance,
 Rainer Hurling
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Kernel does not build on 10.0-CURRENT (amd64)

2012-01-06 Thread Rainer Hurling

On 06.01.2012 18:30 (UTC+1), Adrian Chadd wrote:

i thought I had captured these.

just add

options AH_SUPPORT_AR5416

to your kernel.


Ah, I indeed missed the new option in GENERIC, because I build with 
modified kernel config file.


I commented all wireless network drivers and their options out. But the 
error remains. Is it necessary to have this option uncommented even when 
the driver ath is commented out?


Many thanks for your fast response,
Rainer


Adrian

On 6 January 2012 09:14, Rainer Hurlingrhur...@gwdg.de  wrote:

I am getting the following error when trying to build recent 10.0-CURRENT
kernel (amd64)?

[..snip..]
cc -O2 -pipe -O2 -fno-strict-aliasing -pipe -msse3 -Werror -D_KERNEL
-DKLD_MODULE -nostdinc  -I. -I/usr/src/sys/modules/ath/../../dev/ath
-I/usr/src/sys/modules/ath/../../dev/ath/ath_hal
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/RHURLIN/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common  -fno-omit-frame-pointer
-I/usr/obj/usr/src/sys/RHURLIN  -mno-sse -mcmodel=kernel -mno-red-zone
-mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option-c
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c: In function
'ath_tx_aggr_comp_aggr':
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3136: error: 'struct
ath_tx_status' has no member named 'ts_flags'
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3139: error: 'struct
ath_tx_status' has no member named 'ts_ba_low'
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3140: error: 'struct
ath_tx_status' has no member named 'ts_ba_high'
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3156: error: 'struct
ath_tx_status' has no member named 'ts_tid'
/usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3158: error: 'struct
ath_tx_status' has no member named 'ts_tid'
*** Error code 1
Stop in /usr/src/sys/modules/ath.
*** Error code 1


I observe this behaviour on three boxes. Any help is really appreciated.

Thanks in advance,
Rainer Hurling

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Kernel does not build on 10.0-CURRENT (amd64)

2012-01-06 Thread Adrian Chadd
On 6 January 2012 10:19, Rainer Hurling rhur...@gwdg.de wrote:

 I commented all wireless network drivers and their options out. But the
 error remains. Is it necessary to have this option uncommented even when the
 driver ath is commented out?

Yes, because of how the wlan/ath modules are built. You need to have
AH_SUPPORT_AR5416 in the kernel config file, as the driver/module
currently doesn't build without it.

I'll eventually fix that, but right now I just want to leave that
option in and not hack up the Makefile to define said option.
Otherwise other options (eg enabling 11n, enabling hal debugging, etc)
are completely ignored when building modules.

Same with IEEE80211_SUPPORT_MESH i believe. I should really re-verify that.


Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Kernel does not build on 10.0-CURRENT (amd64)

2012-01-06 Thread Alexander Yerenkow
2012/1/6 Adrian Chadd adr...@freebsd.org

 On 6 January 2012 10:19, Rainer Hurling rhur...@gwdg.de wrote:

  I commented all wireless network drivers and their options out. But the
  error remains. Is it necessary to have this option uncommented even when
 the
  driver ath is commented out?

 Yes, because of how the wlan/ath modules are built. You need to have
 AH_SUPPORT_AR5416 in the kernel config file, as the driver/module
 currently doesn't build without it.


I'm sorry for intruding in this topic, but it seems to me similar subject;
Did FreeBSD ever tried to make config variables structured and with
specified dependencies?
To make clear what I mean - is anyone tried to implement some deps spec
file (Or some special Makefile's sections, whatever), so if you specified
feature A in kernel, it can check if you also specified B (which is
required by A)?
In this way config could provide feedback when you trying to build kernel
without needed dependencies, and many peoples could save their time not
compiling non-buildable kernel.


 I'll eventually fix that, but right now I just want to leave that
 option in and not hack up the Makefile to define said option.
 Otherwise other options (eg enabling 11n, enabling hal debugging, etc)
 are completely ignored when building modules.

 Same with IEEE80211_SUPPORT_MESH i believe. I should really re-verify that.


 Adrian
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org




-- 
Regards,
Alexander Yerenkow
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Kernel does not build on 10.0-CURRENT (amd64)

2012-01-06 Thread Rainer Hurling

On 06.01.2012 22:42 (UTC+1), Adrian Chadd wrote:

On 6 January 2012 10:19, Rainer Hurlingrhur...@gwdg.de  wrote:


I commented all wireless network drivers and their options out. But the
error remains. Is it necessary to have this option uncommented even when the
driver ath is commented out?


Yes, because of how the wlan/ath modules are built. You need to have
AH_SUPPORT_AR5416 in the kernel config file, as the driver/module
currently doesn't build without it.


I just tested it with AH_SUPPORT_AR5416 enabled (but ath devices 
disabled) and it builds fine.



I'll eventually fix that, but right now I just want to leave that
option in and not hack up the Makefile to define said option.
Otherwise other options (eg enabling 11n, enabling hal debugging, etc)
are completely ignored when building modules.

Same with IEEE80211_SUPPORT_MESH i believe. I should really re-verify that.


Even with IEEE80211_SUPPORT_MESH disabled the kernel builds. So it seems 
this is not necessary to activate.


Thanks again for help and clarifying it,
Rainer


Adrian


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Kernel does not build on 10.0-CURRENT (amd64)

2012-01-06 Thread Rainer Hurling

On 06.01.2012 22:49 (UTC+1), Alexander Yerenkow wrote:

2012/1/6 Adrian Chadd adr...@freebsd.org mailto:adr...@freebsd.org

On 6 January 2012 10:19, Rainer Hurling rhur...@gwdg.de
mailto:rhur...@gwdg.de wrote:

  I commented all wireless network drivers and their options out.
But the
  error remains. Is it necessary to have this option uncommented
even when the
  driver ath is commented out?

Yes, because of how the wlan/ath modules are built. You need to have
AH_SUPPORT_AR5416 in the kernel config file, as the driver/module
currently doesn't build without it.


I'm sorry for intruding in this topic, but it seems to me similar subject;


No problem. I also sometimes have to try for functional configs, before 
kernel build again. Some kind of deps spec could be very useful. And 
also some kind of notification for relevant kernel config changes, 
introduced by updates, would be of help.



Did FreeBSD ever tried to make config variables structured and with
specified dependencies?
To make clear what I mean - is anyone tried to implement some deps spec
file (Or some special Makefile's sections, whatever), so if you
specified feature A in kernel, it can check if you also specified B
(which is required by A)?
In this way config could provide feedback when you trying to build
kernel without needed dependencies, and many peoples could save their
time not compiling non-buildable kernel.


I'll eventually fix that, but right now I just want to leave that
option in and not hack up the Makefile to define said option.
Otherwise other options (eg enabling 11n, enabling hal debugging, etc)
are completely ignored when building modules.

Same with IEEE80211_SUPPORT_MESH i believe. I should really
re-verify that.


Adrian


--
Regards,
Alexander Yerenkow


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org