View Issue Details

IDProjectCategoryView StatusLast Update
0006707Kali Linux[All Projects] General Bugpublic2020-09-08 08:06
Reportervizt3r Assigned To 
PrioritynormalSeverityminorReproducibilityunable to reproduce
Status newResolutionopen 
Product Version2020.3 
Target VersionFixed in Version 
Summary0006707: Error when compiling with `make` command
DescriptionSo i just upgraded the kernel version to 5.7.0 on kali 2020.3. And i wanted to installing wifi driver with rtl8723de chipset on my kali. When i am type "make" command on the terminal.. the error said "gcc: error: unrecognized command-line option `--param=allow-store-data-races=0`; did you mean `--allow-store-data-races`?".

I have opening issue on his github repository and he says don't know how to fix it, so he told me contact to bug report on kali.
Here is the repository of the wifi driver : https://github.com/lwfinger/rtw88

Here are some people who have had the same problem :
1. https://github.com/lwfinger/rtw88/issues/17
2. https://github.com/lwfinger/rtw88/issues/16
3. https://github.com/lwfinger/rtw88/issues/18
Steps To ReproduceError when trying to compile with "make" command

Activities

vizt3r

2020-09-06 07:09

reporter  

steev

2020-09-06 18:54

developer   ~0013397

This looks like it's coming from upstream - https://lore.kernel.org/patchwork/patch/472180/ is the patch to the kernel that added it.

A workaround for the moment is to comment that line out in /usr/src/linux-headers-5.7.0-kali3-common/Makefile - this will allow the rtw88 driver to build, but I don't have the hardware to test that it works, unfortunately.

vizt3r

2020-09-07 01:35

reporter   ~0013398

Yes it works now on my kali machine. Thank you so much!

rhertzog

2020-09-07 15:02

administrator   ~0013399

The linux kernel that we ship is built with gcc 9 and that version still support that option. However the default gcc has changed to gcc 10 and that version has dropped the option, thus leading to this error.

Quoting /usr/share/doc/gcc-10/NEWS.gz:

    * The --param allow-store-data-races internal parameter has been removed in
      favor of a new official option -fallow-store-data-races. While default
      behavior is unchanged and the new option allows to correctly maintain a
      per compilation unit setting across link-time optimization, alteration of
      the default via --param allow-store-data-races will now be diagnosed and
      build systems have to be adjusted accordingly.

rhertzog

2020-09-08 08:06

administrator   ~0013401

It turns out it's really a bug in rtw88 build machinery. The makefile overrides the CC variable with "gcc" instead of letting the kernel build system take care of initializing it to the value that it has been configured with (which in our case is gcc-9).

See https://github.com/lwfinger/rtw88/issues/18#issuecomment-688579122 (this is a comment of Ben Hutchings, a Debian kernel maintainer).

Issue History

Date Modified Username Field Change
2020-09-06 07:09 vizt3r New Issue
2020-09-06 07:09 vizt3r File Added: Screenshot_2020-09-03_06-56-50.png
2020-09-06 18:54 steev Note Added: 0013397
2020-09-07 01:35 vizt3r Note Added: 0013398
2020-09-07 15:02 rhertzog Note Added: 0013399
2020-09-08 08:06 rhertzog Note Added: 0013401