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

ld missing #85

Open
Querzion opened this issue Mar 11, 2024 · 3 comments
Open

ld missing #85

Querzion opened this issue Mar 11, 2024 · 3 comments

Comments

@Querzion
Copy link

make -C deps/hid-tminit KDIR="/lib/modules/6.7.9-206.fsync.fc39.x86_64/build" 
make[1]: Entering directory '/var/home/querzion/Git/hid-tmff2/deps/hid-tminit'
make -C /lib/modules/6.7.9-206.fsync.fc39.x86_64/build M=/var/home/querzion/Git/hid-tmff2/deps/hid-tminit modules
make[2]: Entering directory '/usr/src/kernels/6.7.9-206.fsync.fc39.x86_64'
  CC [M]  /var/home/querzion/Git/hid-tmff2/deps/hid-tminit/hid-tminit.o
  MODPOST /var/home/querzion/Git/hid-tmff2/deps/hid-tminit/Module.symvers
  CC [M]  /var/home/querzion/Git/hid-tmff2/deps/hid-tminit/hid-tminit.mod.o
  LD [M]  /var/home/querzion/Git/hid-tmff2/deps/hid-tminit/hid-tminit.ko
/bin/sh: line 1: ld: command not found
make[4]: *** [scripts/Makefile.modfinal:56: /var/home/querzion/Git/hid-tmff2/deps/hid-tminit/hid-tminit.ko] Error 127
make[3]: *** [/usr/src/kernels/6.7.9-206.fsync.fc39.x86_64/Makefile:1865: modules] Error 2
make[2]: *** [Makefile:246: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/kernels/6.7.9-206.fsync.fc39.x86_64'
make[1]: *** [Makefile:5: all] Error 2
make[1]: Leaving directory '/var/home/querzion/Git/hid-tmff2/deps/hid-tminit'
make: *** [Makefile:16: deps/hid-tminit] Error 2
@Querzion
Copy link
Author

What is usually ld?

@Kimplul
Copy link
Owner

Kimplul commented Mar 11, 2024

ld is the linker, a program that replaces references to symbols (functions, global variables) with their addresses. It's an essential part of compilation, and usually any compiler you install will automatically install the linker, so it seems like one or more of your packages are broken for whatever reason. Maybe try reinstalling your compiler?

@Kimplul Kimplul changed the title make failed ld missing Mar 11, 2024
@napaalm
Copy link

napaalm commented Mar 20, 2024

@Querzion I see that you probably have a Bazzite installation. I suggest you to open a feature request there to include ld.
Note that you still won't be able to build this kernel module because of ublue-os/bazzite#899, but I've already requested to layer all custom kernel modules for steering wheels in the image (see ublue-os/bazzite#901), so eventually we won't need to build them ourselves.

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

3 participants