net-wireless/broadcom-sta- issue

Hi all,

I’m having issues with this:

 Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver
 * Emerging net-wireless/broadcom-sta- ...                                                                                                           [ ok ]
 * Installing app-emulation/virtualbox-modules-5.1.2 ...                                                                                                            [ ok ]
/var/calculate/tmp/portage/net-wireless/broadcom-sta- In function ‘wl_ch_to_chanspec’:
/var/calculate/tmp/portage/net-wireless/broadcom-sta- warning: comparison between pointer and integer
   if (chan->band == IEEE80211_BAND_2GHZ) {
/var/calculate/tmp/portage/net-wireless/broadcom-sta- warning: comparison between pointer and integer
   else if (chan->band == IEEE80211_BAND_5GHZ) {
/var/calculate/tmp/portage/net-wireless/broadcom-sta- In function ‘wl_update_wiphybands’:
/var/calculate/tmp/portage/net-wireless/broadcom-sta- error: array subscript is not an integer
   wiphy->bands[IEEE80211_BAND_5GHZ] = &__wl_band_5ghz_n;
/var/calculate/tmp/portage/net-wireless/broadcom-sta- warning: statement with no effect [-Wunused-value]
   wiphy->bands[IEEE80211_BAND_5GHZ] = &__wl_band_5ghz_n;
scripts/ recipe for target '/var/calculate/tmp/portage/net-wireless/broadcom-sta-' failed
make[1]: *** [/var/calculate/tmp/portage/net-wireless/broadcom-sta-] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1628: recipe for target 'wl.ko' failed
make: *** [wl.ko] Error 2
make: Leaving directory '/usr/src/linux-4.7.0-calculate'
 * ERROR: net-wireless/broadcom-sta- failed (compile phase):
 *   emake failed

==emerge --info =net-wireless/broadcom-sta-
Portage 2.2.28 (python 3.4.3-final-0, !../../var/lib/layman/distros/profiles/CLDX/amd64, gcc-4.9.3, glibc-2.22-r4, 4.7.0-calculate x86_64)
                         System Settings
System uname: Linux-4.7.0-calculate-x86_64-AMD_Athlon-tm-_II_X3_455_Processor-with-gentoo-15.17
KiB Mem:     4048040 total,   1799276 free
KiB Swap:    4050940 total,   4050940 free
Timestamp of repository gentoo: Fri, 12 Aug 2016 06:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo

    location: /usr/portage
    sync-type: git
    sync-uri: git://
    priority: -1000

    location: /var/lib/layman/distros
    masters: calculate gentoo
    priority: 0

    location: /var/lib/layman/calculate
    masters: gentoo
    priority: 1

Installed sets: @custom
CFLAGS="-O2 -march=native -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
EMERGE_DEFAULT_OPTS=" --quiet-build=n --with-bdeps=y --binpkg-respect-use=y --jobs=4 --jobs=3 --load-average=2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
MAKEOPTS="-j3 -l2"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="3dnow 3dnowext X a52 aac acl acpi aes alsa amd64 amr audiofile avi avx berkdb bittorrent bluetooth bzip2 cairo cdda cddb cdparanoia cdr chm cli consolekit cpudetection cracklib crypt css cue cups cxx dbus djvu dri dv dvd dvdr dvdread ebook encode exif faac ffmpeg flac flash fma3 fma4 foomaticdb fortran ftp gd gdbm gif gphoto2 gpm gstreamer gtk hunspell iconv id3tag ieee1394 imagemagick imap introspection ios ipod ipv6 irc jabber jpeg jpeg2k libnotify libwww lm_sensors logrotate lzo mad matroska mbox mikmod mmx mmxext modules mp3 mpeg mplayer multilib musepack ncurses networkmanager nfs nls nptl nsplugin ogg oggvorbis openal opencore-amr openexr opengl openmp oscar padlock pam pcre pdf png policykit popcnt portaudio ppp pulseaudio qt3support quicktime raw rdesktop readline real samba scanner sdl seccomp semantic-desktop session smp speex spell srt sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 svg taglib tcpd tga theora threads tiff truetype udev udisks unicode usb userlocales v4l v4l2 vaapi vcd vdpau vhosts vorbis wavpack webkit webp wimax win32codecs wmf wxwindows x264 x265 xanim xattr xcomposite xinerama xmp xop xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="* ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx sse sse2 * mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 efi-32 pc" INPUT_DEVICES="keyboard mouse evdev mutouch synaptics" KERNEL="linux" L10N="en be be_BY bg bg_BG bs cs cs_CZ da da_DK de de_DE en_GB es es_AR es_ES es_LA es_UY es_VE et et_EE fi fi_FI fr fr_CA fr_FR hr hr_HR hu hu_HU it it_IT kk kk_KZ lt lt_LT lv lv_LV nl nl_NL pl pl_PL pt pt_BR pt_PT ro ro_RO ru ru_RU sk sk_SK sl sl_SI sq sq_AL sr sr_RS sv sv_SE uk uk_UA de-1901 en-GB pt-BR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en be be_BY bg bg_BG bs cs cs_CZ da da_DK de de_DE en_GB es es_AR es_ES es_LA es_UY es_VE et et_EE fi fi_FI fr fr_CA fr_FR hr hr_HR hu hu_HU it it_IT kk kk_KZ lt lt_LT lv lv_LV nl nl_NL pl pl_PL pt pt_BR pt_PT ro ro_RO ru ru_RU sk sk_SK sl sl_SI sq sq_AL sr sr_RS sv sv_SE uk uk_UA" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" THEMES="CLDX" USERLAND="GNU" VIDEO_CARDS="amdgpu i915 i965 intel nouveau nv nvidia r100 r200 r300 r600 radeon radeonsi vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

                        Package Settings

net-wireless/broadcom-sta- was built with the following:
USE="" ABI_X86="64"
 emerge -pqv =net-wireless/broadcom-sta-

Local copy of remote index is up-to-date and will be used.
[ebuild   R   ] net-wireless/broadcom-sta-

Any advise how to fix this?

uname -a
Linux pozitano 4.7.0-calculate #1 SMP PREEMPT Fri Jul 29 22:11:03 EEST 2016 x86_64 AMD Athlon™ II X3 455 Processor AuthenticAMD GNU/Linux

If you do not use net-wireless/broadcom-sta, then simply remove the package. Otherwise, the kernel version should be lowered to stable until the support for new kernels.

Cool,10x for the advice.