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

Issue with make modules_install #360

Closed
Kzimir opened this issue May 22, 2022 · 2 comments
Closed

Issue with make modules_install #360

Kzimir opened this issue May 22, 2022 · 2 comments

Comments

@Kzimir
Copy link

Kzimir commented May 22, 2022

Hi,

It's not an issue with xpadneo itself but with the git repo.
I tried more times and i still have the same issue.
After to download the git repo, i run :

  • make modules
make -C /home/kazimir/Projets/Kernel/linux INSTALL_MOD_DIR="kernel/drivers/hid" LD=ld.bfd M=/home/kazimir/Projets/xpadneo/hid-xpadneo/src VERSION="v0.9-102-ga279cc4-dirty" modules
make[1] : on entre dans le répertoire « /home/kazimir/Projets/Kernel/linux »
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Debian 11.3.0-1) 11.3.0
  You are using:           gcc (Debian 11.3.0-3) 11.3.0
  CC [M]  /home/kazimir/Projets/xpadneo/hid-xpadneo/src/xpadneo.o
  CC [M]  /home/kazimir/Projets/xpadneo/hid-xpadneo/src/xpadneo/core.o
  CC [M]  /home/kazimir/Projets/xpadneo/hid-xpadneo/src/xpadneo/consumer.o
  LD [M]  /home/kazimir/Projets/xpadneo/hid-xpadneo/src/hid-xpadneo.o
  MODPOST /home/kazimir/Projets/xpadneo/hid-xpadneo/src/Module.symvers
  CC [M]  /home/kazimir/Projets/xpadneo/hid-xpadneo/src/hid-xpadneo.mod.o
  LD [M]  /home/kazimir/Projets/xpadneo/hid-xpadneo/src/hid-xpadneo.ko
make[1] : on quitte le répertoire « /home/kazimir/Projets/Kernel/linux »
rm ../VERSION

The issue is with this last command :

  • sudo make modules_install.
Error: fatal: unsafe repository ('/home/kazimir/Projets/xpadneo' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /home/kazimir/Projets/xpadneo
make: *** [Makefile:9 : ../VERSION] Erreur 128
rm ../VERSION

Of course the git config command does not solve the issue.

@kakra
Copy link
Collaborator

kakra commented May 22, 2022

Checkout the git repository as root, it should work then. This is due to a security update to git. Duplicate of #346

@kakra kakra closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2022
@kakra
Copy link
Collaborator

kakra commented May 25, 2022

Of course the git config command does not solve the issue.

Well, it does, if you run it with the same permissions as you do for the make command. See d6b35a5

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

2 participants