FreedomBen / rtl8188ce-linux-driver

This modified version of the RealTek WiFi driver fixes some issues with RealTek cards on Linux.
GNU General Public License v2.0
491 stars 108 forks source link

Error trying to install via script #170

Open azagthoth1 opened 8 months ago

azagthoth1 commented 8 months ago

Sorry, I'm a newcomer to linux. I'm on Lubuntu 22.04.3 LTS (Jammy Jellyfish)

[*] Now let's compile the driver from source and copy the files to the right directories
if [ -e verify_branch.sh ] ; \ then \ ./verify_branch.sh ; \ fi; Verifying a sane branch for your kernel version... No (Current branch master) Recommended branch is generic-5.0.x based on your kernel version (6.5.0-14-generic) Should I switch it to generic-5.0.x for you? (y/n): y Branch 'generic-5.0.x' set up to track remote branch 'generic-5.0.x' from 'origin'. Switched to a new branch 'generic-5.0.x' make -C /lib/modules/6.5.0-14-generic/build M=/home/thierry/rtl8188ce-linux-driver modules make[1]: Entering directory '/usr/src/linux-headers-6.5.0-14-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using:
CC [M] /home/thierry/rtl8188ce-linux-driver/base.o gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ make[3]: [scripts/Makefile.build:251: /home/thierry/rtl8188ce-linux-driver/base.o] Error 1 make[2]: [/usr/src/linux-headers-6.5.0-14-generic/Makefile:2037: /home/thierry/rtl8188ce-linux-driver] Error 2 make[1]: [Makefile:234: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-14-generic' make: [Makefile:29: all] Error 2 [*] The build has failed! Please make sure you have all dependencies installed and you are building on the correct branch (kernel version, not linux distro version, is most important for the branch)

What do I need to do here? My wifi speed is stupidly slow on my old laptop and it seems that it has to do with the driver and I'd like to fix it even though it's not my main laptop.