Module Building fails
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 888
- Forks
- 436
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I am trying to install mt76-dkms-git package from the AUR to see if it fixes an issue I am having with bluetooth.
I have a Gigabyte B550 motherboard with MEDIATEK Corp. MT7921K (RZ608) Wi-Fi 6E 80MHz network controller
Going through the steps to enable mt76 after installing the package and when I try to run sudo dkms build -m mt76 -v r4389.51a1c0a0 I get
Deprecated feature: CLEAN (/var/lib/dkms/mt76/r4389.51a1c0a0/source/dkms.conf)
Sign command: /usr/lib/modules/6.16.4-2-cachyos/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.16.4-2-cachyos -C /lib/modules/6.16.4-2-cachyos/build M=/var/lib/dkms/mt76/1.0/build LLVM=1Error! Bad return status for module build on kernel: 6.16.4-2-cachyos (x86_64)
Consult /var/lib/dkms/mt76/r4389.51a1c0a0/build/make.log for more information.
Upon looking at the make.log file it says
DKMS (dkms-3.2.1) make.log for mt76/r4389.51a1c0a0 for kernel 6.16.4-2-cachyos (x86_64)
Mon Sep 1 01:02:18 PM EDT 2025Building module(s)
command: make -j16 KERNELRELEASE=6.16.4-2-cachyos -C /lib/modules/6.16.4-2-cachyos/build M=/var/lib/dkms/mt76/1.0/build LLVM=1
make: Entering directory '/usr/lib/modules/6.16.4-2-cachyos/build'
Makefile:199: *** specified external module directory "/var/lib/dkms/mt76/1.0/build" does not exist. Stop.
make: Leaving directory '/usr/lib/modules/6.16.4-2-cachyos/build'exit code: 2
elapsed time: 00:00:00
Went to see if there were any directories in /var/lib/dkms/mt76/ and found that instead of 1.0 folder that it is apparently looking for I have a r4389.51a1c0a0 folder which then contains the build folder. I would think that the other steps I ran before getting to the build step would have made sure the right directories were being used ... Do I just need to create a 1.0 folder under mt76 directory and re-run or is there something else I need to do? If I just run the next command will it end up working?
Please let me know and if any other information is required I'll be happy to provided
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported DKMS command and /var/lib/dkms/mt76/r4389.51a1c0a0/build/make.log, then inspect the package's dkms.conf and version paths. Reproduce the build on kernel 6.16.4-2-cachyos and determine why the command uses /var/lib/dkms/mt76/1.0/build; done means the reported mt76 module build completes or the issue is narrowed to the package configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100