Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to install via script #170

Open
azagthoth1 opened this issue Jan 15, 2024 · 0 comments
Open

Error trying to install via script #170

azagthoth1 opened this issue Jan 15, 2024 · 0 comments

Comments

@azagthoth1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant