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

make[1]: *** No rule to make target 'modules'. Stop. #124

Open
OPSTime opened this issue Jun 2, 2020 · 0 comments
Open

make[1]: *** No rule to make target 'modules'. Stop. #124

OPSTime opened this issue Jun 2, 2020 · 0 comments

Comments

@OPSTime
Copy link

OPSTime commented Jun 2, 2020

OS: PVE 6.1-7
$ uname -a
Linux dragon 5.3.18-2-pve #1 SMP PVE 5.3.18-2 (Sat, 15 Feb 2020 15:11:52 +0100) x86_64 GNU/Linux

$ cat /etc/debian_version
10.3

$ DRV_NAME=rtl8812AU
$ DRV_VERSION=5.6.4
$ mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}

$ wget http://download.proxmox.wiki/debian/pve/dists/buster/pve-no-subscription/binary-amd64/pve-headers-5.3.18-2-pve_5.3.18-2_amd64.deb

$ dpkg -i pve-headers-5.3.18-2-pve_5.3.18-2_amd64.deb

$ dkms build -m ${DRV_NAME} -v ${DRV_VERSION} --kernelsourcedir /usr/src/linux-headers-5.3.18-2-pve

Preparing kernel 5.3.18-2-pve for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper...(bad exit status: 2)
Warning: using /usr/src/linux-headers-5.3.18-2-pve/.config
(I hope this is the correct config for this kernel)
make oldconfig...(bad exit status: 2)
make prepare-all...(bad exit status: 2)

Building module:
cleaning build area...
'make' KVER=5.3.18-2-pve...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.3.18-2-pve (x86_64)
Consult /var/lib/dkms/rtl8812AU/5.6.4/build/make.log for more information.
root@dragon:/usr/src/rtl8812AU-5.6.4# less /var/lib/dkms/rtl8812AU/5.6.4/build/make.log
root@dragon:/usr/src/rtl8812AU-5.6.4# cat /var/lib/dkms/rtl8812AU/5.6.4/build/make.log
DKMS make.log for rtl8812AU-5.6.4 for kernel 5.3.18-2-pve (x86_64)
Tue 02 Jun 2020 10:30:47 PM CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.18-2-pve/build M=/var/lib/dkms/rtl8812AU/5.6.4/build modules
make[1]: Entering directory '/usr/lib/modules/5.3.18-2-pve/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.3.18-2-pve/build'
make: *** [Makefile:2289: modules] Error 2

$ cat /var/lib/dkms/rtl8812AU/5.6.4/build/make.log

DKMS make.log for rtl8812AU-5.6.4 for kernel 5.3.18-2-pve (x86_64)
Tue 02 Jun 2020 10:30:47 PM CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.18-2-pve/build M=/var/lib/dkms/rtl8812AU/5.6.4/build modules
make[1]: Entering directory '/usr/lib/modules/5.3.18-2-pve/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.3.18-2-pve/build'
make: *** [Makefile:2289: modules] Error 2

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