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

unable to "make" in ubuntu #43

Open
test2a opened this issue Aug 17, 2020 · 7 comments
Open

unable to "make" in ubuntu #43

test2a opened this issue Aug 17, 2020 · 7 comments

Comments

@test2a
Copy link

test2a commented Aug 17, 2020

sudo make
make -C /lib/modules/4.15.0-112-generic/build M=/home/user/Downloads/lo/Macro Solution/veikk-linux-driver-2.0 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-112-generic'
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
arch/x86/Makefile:157: CONFIG_X86_X32 enabled but no binutils support
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent
make[1]: *** No rule to make target 'Solution/veikk-linux-driver-2.0'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-112-generic'
make: *** [Makefile:8: all] Error 2

@James-E-A
Copy link

I'm on Fedora, and I had a lot better luck using DKMS instead of manually accessing Make myself. (Ubuntu has this, too.)

Try something like the following:

  1. sudo apt install dkms
  2. sudo git clone https://github.com/jlam55555/veikk-linux-driver.git /usr/src/input-veikk-git
  3. sudoedit /usr/src/input-veikk-git/dkms.conf
    • paste this in:
      PACKAGE_NAME="input-veikk"
      PACKAGE_VERSION="git"
      BUILT_MODULE_NAME[0]="veikk"
      DEST_MODULE_LOCATION[0]="/extra/"
      AUTOINSTALL="yes"
  4. sudo dkms install input-veikk/git
  5. reboot

This worked for me, and unlike using make yourself, you don't have to re-do it every single kernel update.

(Also, don't run sudo make; that'll create a bunch of root-owned files in your home folder. If you're going to run make, run it as your user; save sudo for make install. But don't do that, either, if you're using dkms. In fact, you should run sudo make uninstall from within your current copy of the code, before setting up dkms.)

@snoopiedoom
Copy link

@JamesTheAwesomeDude following your instructions on fedora 33 I get the following console output:


Creating symlink /var/lib/dkms/input-veikk/git/source ->
                 /usr/src/input-veikk-git

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j6 KERNELRELEASE=5.9.8-200.fc33.x86_64 -C /lib/modules/5.9.8-200.fc33.x86_64/build M=/var/lib/dkms/input-veikk/git/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.9.8-200.fc33.x86_64 (x86_64)
Consult /var/lib/dkms/input-veikk/git/build/make.log for more information.

and the following in make.log:

Sat 21 Nov 22:46:28 CET 2020
make: Entering directory '/usr/src/kernels/5.9.8-200.fc33.x86_64'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make: *** [Makefile:719: include/config/auto.conf] Error 1
make: Leaving directory '/usr/src/kernels/5.9.8-200.fc33.x86_64'```

help would be greatly appreciated (using tablet VEIKK s640)

@James-E-A
Copy link

include/generated/autoconf.h or include/config/auto.conf are missing.

@SnoopTheDog Try

@snoopiedoom
Copy link

done, no difference. Updated output:

[snoopie@localhost veikk-linux-driver]$ make
make -C /lib/modules/5.9.10-200.fc33.x86_64/build M=/home/snoopie/veikk-linux-driver modules
make[1]: Entering directory '/usr/src/kernels/5.9.10-200.fc33.x86_64'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: *** [Makefile:719: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/kernels/5.9.10-200.fc33.x86_64'
make: *** [Makefile:8: all] Error 2

@James-E-A
Copy link

@SnoopTheDog Are you certain you've installed kernel-devel and since rebooted?

What is the output of the following?

find /usr/src -name autoconf.h -o -name auto.conf -exec rpm -qf {} \;

@snoopiedoom
Copy link

Output:

[snoopie@localhost Downloads]$ find /usr/src -name autoconf.h -o -name auto.conf -exec rpm -qf {} \;
kernel-devel-5.9.8-200.fc33.x86_64
kernel-devel-5.9.10-200.fc33.x86_64

Also output of dnf install kernel-devel

[snoopie@localhost Downloads]$ dnf install kernel-devel
Error: This command has to be run with superuser privileges (under the root user on most systems).
[snoopie@localhost Downloads]$ sudo dnf install kernel-devel
[sudo] password for snoopie: 
Last metadata expiration check: 0:48:54 ago on Mon 30 Nov 2020 22:15:51 CET.
Package kernel-devel-5.9.8-200.fc33.x86_64 is already installed.
Package kernel-devel-5.9.10-200.fc33.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

@asl97
Copy link

asl97 commented Dec 1, 2020

@SnoopTheDog You shouldn't hijack someone else issue, you aren't even on ubuntu.
Their issue is that they have a whitespace in their path.

make -C /lib/modules/4.15.0-112-generic/build M=/home/user/Downloads/lo/Macro Solution/veikk-linux-driver-2.0 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-112-generic'
/bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent

Not sure on your issue

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

4 participants