Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #76507 > unrolled thread

Bug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6

Started byGT <grandtoubab@msn.com>
First post2022-10-17 11:50 +0200
Last post2022-10-17 19:10 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6 GT <grandtoubab@msn.com> - 2022-10-17 11:50 +0200
    Processed: Re: Bug#1021912: linux-headers-6.0.0-1-amd64: failed  to build broadcom module , error on cfg80211, with linux kernel 6 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-10-17 19:10 +0200
    Bug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6 Diederik de Haas <didi.debian@cknow.org> - 2022-10-17 19:10 +0200

#76507 — Bug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6

FromGT <grandtoubab@msn.com>
Date2022-10-17 11:50 +0200
SubjectBug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6
Message-ID<FhuUV-eOMw-1@gated-at.bofh.it>
Package: linux-headers-6.0.0-1-amd64
Version: 6.0.2-1
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
Try to install linux kernel 6 on my Debian 12 Bookworm aka testing Pc
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
sudo apt install linux-image-6.0.0-1-amd64-unsigned linux-headers-6.0.0-1-amd64
[sudo] Mot de passe de guy :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
  linux-compiler-gcc-12-x86 linux-headers-6.0.0-1-common linux-kbuild-6.0
Paquets suggérés :
  linux-doc-6.0 debian-kernel-handbook
Paquets recommandés :
  apparmor
Les NOUVEAUX paquets suivants seront installés :
  linux-compiler-gcc-12-x86 linux-headers-6.0.0-1-amd64 linux-
headers-6.0.0-1-common linux-image-6.0.0-1-amd64-unsigned
  linux-kbuild-6.0
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 82,1 Mo dans les archives.
Après cette opération, 538 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n]
Réception de :1 https://cdn-aws.deb.debian.org/debian sid/main amd64 linux-
compiler-gcc-12-x86 amd64 6.0.2-1 [513 kB]
Réception de :2 https://cdn-aws.deb.debian.org/debian sid/main amd64 linux-
headers-6.0.0-1-common all 6.0.2-1 [9 609 kB]
Réception de :3 https://cdn-aws.deb.debian.org/debian sid/main amd64 linux-
kbuild-6.0 amd64 6.0.2-1 [769 kB]
Réception de :4 https://cdn-aws.deb.debian.org/debian sid/main amd64 linux-
headers-6.0.0-1-amd64 amd64 6.0.2-1 [1 000 kB]
Réception de :5 https://cdn-aws.deb.debian.org/debian sid/main amd64 linux-
image-6.0.0-1-amd64-unsigned amd64 6.0.2-1 [70,3 MB]
82,1 Mo réceptionnés en 52s (1 575 ko/s)
Sélection du paquet linux-compiler-gcc-12-x86 précédemment désélectionné.
(Lecture de la base de données... 192972 fichiers et répertoires déjà
installés.)
Préparation du dépaquetage de .../linux-compiler-gcc-12-x86_6.0.2-1_amd64.deb
...
Dépaquetage de linux-compiler-gcc-12-x86 (6.0.2-1) ...
Sélection du paquet linux-headers-6.0.0-1-common précédemment désélectionné.
Préparation du dépaquetage de .../linux-headers-6.0.0-1-common_6.0.2-1_all.deb
...
Dépaquetage de linux-headers-6.0.0-1-common (6.0.2-1) ...
Sélection du paquet linux-kbuild-6.0 précédemment désélectionné.
Préparation du dépaquetage de .../linux-kbuild-6.0_6.0.2-1_amd64.deb ...
Dépaquetage de linux-kbuild-6.0 (6.0.2-1) ...
Sélection du paquet linux-headers-6.0.0-1-amd64 précédemment désélectionné.
Préparation du dépaquetage de .../linux-headers-6.0.0-1-amd64_6.0.2-1_amd64.deb
...
Dépaquetage de linux-headers-6.0.0-1-amd64 (6.0.2-1) ...
Sélection du paquet linux-image-6.0.0-1-amd64-unsigned précédemment
désélectionné.
Préparation du dépaquetage de .../linux-
image-6.0.0-1-amd64-unsigned_6.0.2-1_amd64.deb ...
Dépaquetage de linux-image-6.0.0-1-amd64-unsigned (6.0.2-1) ...
Paramétrage de linux-compiler-gcc-12-x86 (6.0.2-1) ...
Paramétrage de linux-headers-6.0.0-1-common (6.0.2-1) ...
Paramétrage de linux-kbuild-6.0 (6.0.2-1) ...
Paramétrage de linux-headers-6.0.0-1-amd64 (6.0.2-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.0.0-1-amd64:Sign command:
/usr/lib/linux-kbuild-6.0/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j2 KERNELRELEASE=6.0.0-1-amd64 KVER=6.0.0-1-amd64.......(bad exit status:
2)
Error! Bad return status for module build on kernel: 6.0.0-1-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more
information.


   * What was the outcome of this action?
Wifi unavailable

cat /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 6.0.0-1-amd64 (x86_64)
lun. 17 oct. 2022 11:19:21 CEST
CFG80211 API is prefered for this kernel version
Makefile:89: Neither CFG80211 nor Wireless Extension is enabled in kernel
KBUILD_NOPEDANTIC=1 make -C /lib/modules/6.0.0-1-amd64/build M=`pwd`
make[1]: avertissement : jobserver n'est pas disponible : utilisation de -j1.
Ajouter « + » à la règle parent du make.
make[1] : on entre dans le répertoire « /usr/src/linux-headers-6.0.0-1-amd64 »
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o
In file included from /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_linux.c:81:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.h:73: warning:
"isprint" redefined
   73 | #define isprint(c) bcm_isprint(c)
      |
In file included from /usr/src/linux-
headers-6.0.0-1-common/include/linux/string_helpers.h:6,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/seq_file.h:7,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/seq_file_net.h:5,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/net/net_namespace.h:191,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/netdevice.h:38,
                 from /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/include/linuxver.h:69,
                 from /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
/usr/src/linux-headers-6.0.0-1-common/include/linux/ctype.h:30: note: this is
the location of the previous definition
   30 | #define isprint(c)      ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0)
      |
In file included from /usr/src/linux-
headers-6.0.0-1-common/include/linux/string.h:253,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/bitmap.h:11,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/cpumask.h:12,
                 from /usr/src/linux-
headers-6.0.0-1-common/arch/x86/include/asm/cpumask.h:5,
                 from /usr/src/linux-
headers-6.0.0-1-common/arch/x86/include/asm/msr.h:11,
                 from /usr/src/linux-
headers-6.0.0-1-common/arch/x86/include/asm/processor.h:22,
                 from /usr/src/linux-
headers-6.0.0-1-common/arch/x86/include/asm/timex.h:5,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/timex.h:67,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/time32.h:13,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/time.h:60,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/stat.h:19,
                 from /usr/src/linux-
headers-6.0.0-1-common/include/linux/module.h:13,
                 from /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/include/linuxver.h:40:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In
function ‘wl_attach’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:650:43:
warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
  650 |         bcopy(&wl->pub->cur_etheraddr, dev->dev_addr, ETHER_ADDR_LEN);
/usr/src/linux-headers-6.0.0-1-common/include/linux/fortify-string.h:378:27:
note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);
\
      |                           ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:41:
note: in expansion of macro ‘memcpy’
  156 |         #define bcopy(src, dst, len)    memcpy((dst), (src), (len))
      |                                         ^~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:650:9:
note: in expansion of macro ‘bcopy’
  650 |         bcopy(&wl->pub->cur_etheraddr, dev->dev_addr, ETHER_ADDR_LEN);
      |         ^~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:650:43:
note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  650 |         bcopy(&wl->pub->cur_etheraddr, dev->dev_addr, ETHER_ADDR_LEN);
/usr/src/linux-headers-6.0.0-1-common/include/linux/fortify-string.h:378:27:
note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);
\
      |                           ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:41:
note: in expansion of macro ‘memcpy’
  156 |         #define bcopy(src, dst, len)    memcpy((dst), (src), (len))
      |                                         ^~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:650:9:
note: in expansion of macro ‘bcopy’
  650 |         bcopy(&wl->pub->cur_etheraddr, dev->dev_addr, ETHER_ADDR_LEN);
      |         ^~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In
function ‘wl_set_mac_address’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1861:39:
warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
 1861 |                 bcopy(sa->sa_data, dev->dev_addr, ETHER_ADDR_LEN);
/usr/src/linux-headers-6.0.0-1-common/include/linux/fortify-string.h:378:27:
note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);
\
      |                           ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:41:
note: in expansion of macro ‘memcpy’
  156 |         #define bcopy(src, dst, len)    memcpy((dst), (src), (len))
      |                                         ^~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1861:17:
note: in expansion of macro ‘bcopy’
 1861 |                 bcopy(sa->sa_data, dev->dev_addr, ETHER_ADDR_LEN);
      |                 ^~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1861:39:
note: expected ‘void *’ but argument is of type ‘const unsigned char *’
 1861 |                 bcopy(sa->sa_data, dev->dev_addr, ETHER_ADDR_LEN);
/usr/src/linux-headers-6.0.0-1-common/include/linux/fortify-string.h:378:27:
note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);
\
      |                           ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:41:
note: in expansion of macro ‘memcpy’
  156 |         #define bcopy(src, dst, len)    memcpy((dst), (src), (len))
      |                                         ^~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1861:17:
note: in expansion of macro ‘bcopy’
 1861 |                 bcopy(sa->sa_data, dev->dev_addr, ETHER_ADDR_LEN);
      |                 ^~~~~
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.o
  CC [M]  /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:
In function ‘wl_bss_roaming_done’:
/var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:2383:18: error: ‘struct
cfg80211_roam_info’ has no member named ‘bssid’
 2383 |                 .bssid = wl->profile->bssid,
      |                  ^~~~~
In file included from /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:43:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:
In function ‘wl_set_auth_type’:
/var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.h:52:12: warning: this
statement may fall through [-Wimplicit-fallthrough=]
   52 |         if (wl_dbg_level & WL_DBG_DBG) {                        \
      |            ^
/var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:792:17: note: in
expansion of macro ‘WL_DBG’
  792 |                 WL_DBG(("network eap\n"));
      |                 ^~~~~~
/var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:794:9: note: here
  794 |         default:
      |         ^~~~~~~
make[2]: *** [/usr/src/linux-headers-6.0.0-1-common/scripts/Makefile.build:254
: /var/lib/dkms/broadcom-
sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o] Erreur 1
make[1]: *** [/usr/src/linux-headers-6.0.0-1-common/Makefile:1876 :
/var/lib/dkms/broadcom-sta/6.30.223.271/build] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-6.0.0-1-amd64 »
make: *** [Makefile:181 : all] Erreur 2

   * What outcome did you expect instead?
A smooth installation of kernel 6
*** End of the template - remove these template lines ***


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (990, 'stable-security'), (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-2-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-headers-6.0.0-1-amd64 depends on:
ii  linux-compiler-gcc-12-x86     6.0.2-1
ii  linux-headers-6.0.0-1-common  6.0.2-1
ii  linux-kbuild-6.0              6.0.2-1

linux-headers-6.0.0-1-amd64 recommends no packages.

linux-headers-6.0.0-1-amd64 suggests no packages.

-- no debconf information

[toc] | [next] | [standalone]


#76520 — Processed: Re: Bug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-10-17 19:10 +0200
SubjectProcessed: Re: Bug#1021912: linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6
Message-ID<FhBMJ-eTqd-9@gated-at.bofh.it>
In reply to#76507
Processing control commands:

> reassign -1 broadcom-sta-dkms
Bug #1021912 [linux-headers-6.0.0-1-amd64] linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6
Bug reassigned from package 'linux-headers-6.0.0-1-amd64' to 'broadcom-sta-dkms'.
No longer marked as found in versions linux/6.0.2-1.
Ignoring request to alter fixed versions of bug #1021912 to the same values previously set
> retitle -1 "broadcom-sta-dkms: Fails to build with kernel 6.0"
Bug #1021912 [broadcom-sta-dkms] linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6
Changed Bug title to '"broadcom-sta-dkms: Fails to build with kernel 6.0"' from 'linux-headers-6.0.0-1-amd64: failed to build broadcom module , error on cfg80211, with linux kernel 6'.

-- 
1021912: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021912
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#76521

FromDiederik de Haas <didi.debian@cknow.org>
Date2022-10-17 19:10 +0200
Message-ID<FhBMJ-eTqd-1@gated-at.bofh.it>
In reply to#76507

[Multipart message — attachments visible in raw view] — view raw

Control: reassign -1 broadcom-sta-dkms
Control: retitle -1 "broadcom-sta-dkms: Fails to build with kernel 6.0"

On maandag 17 oktober 2022 11:41:41 CEST GT wrote:
> Package: linux-headers-6.0.0-1-amd64
> Version: 6.0.2-1
> Severity: important
> 
>    * What led up to the situation?
> Try to install linux kernel 6 on my Debian 12 Bookworm aka testing Pc
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> sudo apt install linux-image-6.0.0-1-amd64-unsigned
> linux-headers-6.0.0-1-amd64 [sudo] Mot de passe de guy :
> Lecture des listes de paquets... Fait

FTR: if you prepend the command with "LANG=C" (iirc), then the output would be 
in English, which (far) more people will be able to understand.

> Paramétrage de linux-headers-6.0.0-1-amd64 (6.0.2-1) ...
> /etc/kernel/header_postinst.d/dkms:
> dkms: running auto installation service for kernel 6.0.0-1-amd64:Sign
> command: /usr/lib/linux-kbuild-6.0/scripts/sign-file
> Signing key: /var/lib/dkms/mok.key
> Public certificate (MOK): /var/lib/dkms/mok.pub
> 
> Building module:
> Cleaning build area...
> make -j2 KERNELRELEASE=6.0.0-1-amd64 KVER=6.0.0-1-amd64.......(bad exit
> status: 2)
> Error! Bad return status for module build on kernel: 6.0.0-1-amd64 (x86_64)
> Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more
> information.
> 
> cat /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log

DKMS sources often need to be updated to support a new kernel version.
So the problem you encountered isn't with the linux-headers package, but with 
the broadcom-sta-dkms package, thus reassigning accordingly.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web