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

workaround for: No rule to make target 'tools/objtool/objtool', needed by '/usr/src/applespi-0.1/applespi.o'. #67

Open
wheelcomplex opened this issue Jul 3, 2018 · 1 comment · May be fixed by #68

Comments

@wheelcomplex
Copy link

root@davidws:/usr/src/applespi-0.1# make
make -C /lib/modules/4.17.0-qemu-4.17-1+/build M=/usr/src/applespi-0.1 modules
make[1]: Entering directory '/usr/src/linux-headers-4.17.0-qemu-4.17-1+'
make[2]: *** No rule to make target 'tools/objtool/objtool', needed by '/usr/src/applespi-0.1/applespi.o'.  Stop.
Makefile:1571: recipe for target '_module_/usr/src/applespi-0.1' failed
make[1]: *** [_module_/usr/src/applespi-0.1] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.17.0-qemu-4.17-1+'
Makefile:11: recipe for target 'all' failed
make: *** [all] Error 2

workaround from https://lists.debian.org/debian-knoppix/2017/01/msg00002.html

root@davidws:/usr/src/applespi-0.1# make CONFIG_STACK_VALIDATION=
make -C /lib/modules/4.17.0-qemu-4.17-1+/build M=/usr/src/applespi-0.1 modules
make[1]: Entering directory '/usr/src/linux-headers-4.17.0-qemu-4.17-1+'
  CC [M]  /usr/src/applespi-0.1/applespi.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/applespi-0.1/applespi.mod.o
  LD [M]  /usr/src/applespi-0.1/applespi.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.17.0-qemu-4.17-1+'
wheelcomplex added a commit to wheelcomplex/macbook12-spi-driver that referenced this issue Jul 3, 2018
@wheelcomplex wheelcomplex linked a pull request Jul 3, 2018 that will close this issue
@arno01
Copy link

arno01 commented Sep 18, 2018

I had the same issue, it was due to a missing libelf-dev package. While watching the compilation process, make command printed the following message:

...
  DEPMOD  4.17.0-ubuntu-4.17
Makefile:972: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  SIGN [M] ./debian/tmp/lib/modules/4.17.0-ubuntu-4.17/kernel/arch/x86/crypto/aesni-intel.ko
  SIGN [M] ./debian/tmp/lib/modules/4.17.0-ubuntu-4.17/kernel/arch/x86/crypto/aes-x86_64.ko
...

Having the libelf-dev installed, solved this issue. No workaround was needed.

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

Successfully merging a pull request may close this issue.

2 participants