View Issue Details

IDProjectCategoryView StatusLast Update
0006707Kali LinuxGeneral Bugpublic2021-06-02 10:11
Reportervizt3r Assigned To 
PrioritynormalSeverityminorReproducibilityunable to reproduce
Status closedResolutionopen 
Product Version2020.3 
Summary0006707: Error when compiling with make command
Description

So 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 Reproduce

Error when trying to compile with "make" command

Attached Files

Activities

steev

steev

2020-09-06 18:54

manager   ~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

vizt3r

2020-09-07 01:35

reporter   ~0013398

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

rhertzog

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

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).

steev

steev

2020-10-01 16:42

manager   ~0013516

I sent a pull request to rtw88 - https://github.com/lwfinger/rtw88/pull/21 which was merged, to remove this. It should work properly now, without editing the Makefile. I would suggest reverting the change to the Makefile, and pulling in the latest rtw88 git and testing it.

g0tmi1k

g0tmi1k

2021-06-02 10:11

administrator   ~0014635

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.
Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?
If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

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
2020-10-01 16:42 steev Note Added: 0013516
2021-06-02 10:11 g0tmi1k Note Added: 0014635
2021-06-02 10:11 g0tmi1k Status new => closed