abperiasamy / rtl8812AU_8821AU_linux

rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter
GNU General Public License v2.0
1.23k stars 434 forks source link

Compilation issue for kernel higher than 4.5 #134

Open sukanyach opened 8 years ago

sukanyach commented 8 years ago

Hi,

I am trying to compile this driver on ubuntu with kernel version higher than 4.5 (4.5.0-040500-generic). But it fails on my system.

Here I am attaching my error message for reference.

Error - "Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler"

harshavardhana commented 8 years ago

We have never tested this on 4.5 kernel, feel free to send a patch @sukanyach

nharia commented 8 years ago

Hi, Am trying to compile this driver on kali linux kernel 4.0.0-kali1-amd64. this is the error i get

root@kali:~/Downloads/rtl8812AU_8821AU_linux-master# dkms build -m rtl8812AU_8821AU_linux -v 1.0 Error! echo Your kernel headers for kernel 4.0.0-kali1-amd64 cannot be found at /lib/modules/4.0.0-kali1-amd64/build or /lib/modules/4.0.0-kali1-amd64/source.

There is no build or source folder in the /lib/modules/4.0.0 folder.

harshavardhana commented 8 years ago

root@kali:~/Downloads/rtl8812AU_8821AU_linux-master# dkms build -m rtl8812AU_8821AU_linux -v 1.0 Error! echo Your kernel headers for kernel 4.0.0-kali1-amd64 cannot be found at /lib/modules/4.0.0-kali1-amd64/build or /lib/modules/4.0.0-kali1-amd64/source.

you need to install kernel headers @nharia most probably

apt install linux-headers
harshavardhana commented 8 years ago

Error - "Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler"

This looks like a compiler error more than the driver bug here..

dullroar commented 7 years ago

I don't see a space in the path to the project above, but if there is one, it will cause this very error. Really. I was tearing my hair out until I saw the answer about spaces in the path to the project causing issues here. Sounds stupid, I know. FWIW, this was on Linux Mint 18, 4.4.0.47 X86_64 kernel, gcc v5.4.0.