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

The build has failed! received after upgrading to Linux Mint 21 (Vanessa) #165

Open
jalsin82 opened this issue Apr 16, 2023 · 6 comments
Open

Comments

@jalsin82
Copy link

Below is the terminal history for trying to update the driver after updating Mint. Please help me get it to compile correctly.

p:~$ uname -a
Linux p 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

p:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 21
Release: 21
Codename: vanessa

p:~$ lsudo apt-get install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

p:~$ lgit clone https://github.com/FreedomBen/rtl8188ce-linux-driver.git && cd rtl8188ce-linux-driver && ./install.sh
Cloning into 'rtl8188ce-linux-driver'...
remote: Enumerating objects: 9892, done.
remote: Counting objects: 100% (829/829), done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 9892 (delta 632), reused 789 (delta 613), pack-reused 9063
Receiving objects: 100% (9892/9892), 21.71 MiB | 5.49 MiB/s, done.
Resolving deltas: 100% (7684/7684), done.

[*] So you want to live on the wild side and try a different driver for your RealTek wireless card eh? Awesome! I'll help you do it.

[*] We are going to build and install the driver from source code, compiled specifically for your machine.

[*] If you want to do the build/install manually, there are instructions in the "README.md" file.

[*] Please report any bugs/problems at https://github.com/FreedomBen/rtl8188ce-linux-driver

[] You will need sudo privileges in order to complete this install.
[
] Press when ready to begin, or <Ctrl+C> to quit

[*] Let's install any dependencies you will need in order to build the driver.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
gcc is already the newest version (4:11.2.0-1ubuntu1).
linux-headers-5.15.0-69-generic is already the newest version (5.15.0-69.76).
linux-headers-generic is already the newest version (5.15.0.69.67).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[] 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.15.x based on your kernel version (5.15.0-69-generic)
Should I switch it to generic-5.15.x for you? (y/n): y
Branch 'generic-5.15.x' set up to track remote branch 'generic-5.15.x' from 'origin'.
Switched to a new branch 'generic-5.15.x'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/base.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/usb.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rc.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/debug.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/regd.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/efuse.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/cam.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/ps.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/core.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/stats.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/pci.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtlwifi.o
MODPOST /home/jalsin82/rtl8188ce-linux-driver/Module.symvers
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtlwifi.mod.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtlwifi.ko
BTF [M] /home/jalsin82/rtl8188ce-linux-driver/rtlwifi.ko
Skipping BTF generation for /home/jalsin82/rtl8188ce-linux-driver/rtlwifi.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: Entering directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192c'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver/rtl8192c modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/main.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/dm_common.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/fw_common.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/phy_common.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/rtl8192c_common.o
MODPOST /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/Module.symvers
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/rtl8192c_common.mod.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/rtl8192c_common.ko
BTF [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/rtl8192c_common.ko
Skipping BTF generation for /home/jalsin82/rtl8188ce-linux-driver/rtl8192c/rtl8192c_common.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: Leaving directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192c'
make[1]: Entering directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192ce'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver/rtl8192ce modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/hw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/table.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/sw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/trx.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/led.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/phy.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/rf.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/dm.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/rtl8192ce.o
MODPOST /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/Module.symvers
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/rtl8192ce.mod.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/rtl8192ce.ko
BTF [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/rtl8192ce.ko
Skipping BTF generation for /home/jalsin82/rtl8188ce-linux-driver/rtl8192ce/rtl8192ce.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: Leaving directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192ce'
make[1]: Entering directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192cu'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver/rtl8192cu modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/dm.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/hw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/led.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/mac.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/phy.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/rf.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/sw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/table.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/trx.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/rtl8192cu.o
MODPOST /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/Module.symvers
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/rtl8192cu.mod.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/rtl8192cu.ko
BTF [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/rtl8192cu.ko
Skipping BTF generation for /home/jalsin82/rtl8188ce-linux-driver/rtl8192cu/rtl8192cu.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: Leaving directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192cu'
make[1]: Entering directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192se'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver/rtl8192se modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/hw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/table.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/sw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/trx.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/led.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/fw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/phy.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/rf.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/dm.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/rtl8192se.o
MODPOST /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/Module.symvers
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/rtl8192se.mod.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/rtl8192se.ko
BTF [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/rtl8192se.ko
Skipping BTF generation for /home/jalsin82/rtl8188ce-linux-driver/rtl8192se/rtl8192se.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: Leaving directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192se'
make[1]: Entering directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192de'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver/rtl8192de modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/hw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/table.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/sw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/trx.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/led.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/fw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/phy.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/rf.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/dm.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/rtl8192de.o
MODPOST /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/Module.symvers
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/rtl8192de.mod.o
LD [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/rtl8192de.ko
BTF [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/rtl8192de.ko
Skipping BTF generation for /home/jalsin82/rtl8188ce-linux-driver/rtl8192de/rtl8192de.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: Leaving directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8192de'
make[1]: Entering directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8188ee'
make -C /lib/modules/5.15.0-69-generic/build M=/home/jalsin82/rtl8188ce-linux-driver/rtl8188ee modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-69-generic'
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/hw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/table.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/sw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/trx.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/led.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/fw.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/phy.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/rf.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/dm.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/pwrseq.o
CC [M] /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/pwrseqcmd.o
/home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/pwrseqcmd.c: In function ‘rtl88_hal_pwrseqcmdparsing’:
/home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/pwrseqcmd.c:70:17: error: implicit declaration of function ‘RT_TRACE’; did you mean ‘RTA_SPACE’? [-Werror=implicit-function-declaration]
70 | RT_TRACE( rtlpriv, COMP_INIT, DBG_TRACE,
| ^~~~~~~~
| RTA_SPACE
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:297: /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee/pwrseqcmd.o] Error 1
make[2]: *** [Makefile:1906: /home/jalsin82/rtl8188ce-linux-driver/rtl8188ee] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-69-generic'
make[1]: *** [Makefile:33: default] Error 2
make[1]: Leaving directory '/home/jalsin82/rtl8188ce-linux-driver/rtl8188ee'
make: *** [Makefile:41: 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)

@jalsin82
Copy link
Author

Also tried the DKMS install with these results:

p:~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

p:~$ git clone https://github.com/FreedomBen/rtl8188ce-linux-driver.git
Cloning into 'rtl8188ce-linux-driver'...
remote: Enumerating objects: 9892, done.
remote: Counting objects: 100% (829/829), done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 9892 (delta 632), reused 770 (delta 613), pack-reused 9063
Receiving objects: 100% (9892/9892), 21.71 MiB | 8.23 MiB/s, done.
Resolving deltas: 100% (7684/7684), done.

p:~$ sudo apt-get install gcc build-essential linux-headers-generic linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
gcc is already the newest version (4:11.2.0-1ubuntu1).
linux-headers-5.15.0-69-generic is already the newest version (5.15.0-69.76).
linux-headers-generic is already the newest version (5.15.0.69.67).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

p:~$ cd rtl8188ce-linux-driver && ./verify_branch.sh
Verifying a sane branch for your kernel version...
No (Current branch master)
Recommended branch is generic-5.15.x based on your kernel version (5.15.0-69-generic)
Should I switch it to generic-5.15.x for you? (y/n): y
Branch 'generic-5.15.x' set up to track remote branch 'generic-5.15.x' from 'origin'.
Switched to a new branch 'generic-5.15.x'

p:~/rtl8188ce-linux-driver$ sudo dkms install rtlwifi/1.0.0
Error! The /var/lib/dkms/rtlwifi/1.0.0/5.15.0-69-generic/x86_64/dkms.conf for module rtlwifi includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
This indicates that it should not be built.

@Ayush-Kumar-web
Copy link

Follow this guide bro

#160

I encountered the same issue
and solved it using this guide
Contact me If you need any further assistance.

@jalsin82
Copy link
Author

jalsin82 commented Apr 22, 2023 via email

@jalsin82
Copy link
Author

jalsin82 commented Apr 22, 2023 via email

@Ayush-Kumar-web
Copy link

Ayush-Kumar-web commented Oct 14, 2023

sorry for such a long late reply
What is the condition now is it working?
@jalsin82

@thefangeddeity
Copy link

thefangeddeity commented Oct 19, 2023 via email

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

3 participants