The nxusb kernel module doesn’t compile on Manjaro Arch Linux Kernel 6.4.7-1

Forum / NoMachine for Linux / The nxusb kernel module doesn’t compile on Manjaro Arch Linux Kernel 6.4.7-1

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45060
    ki5fty
    Participant

    I am trying to compile the usb module on Manjaro running the 6.4.7-1 kernel and get the following error:

    make -C /lib/modules/6.4.7-1-MANJARO/build M=/usr/NX/share/src/nxusb
    CC [M]  /usr/NX/share/src/nxusb/nxusb-vhci-hcd.o
    In file included from :
    ././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
    5 | #include 
    |          ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [scripts/Makefile.build:252: /usr/NX/share/src/nxusb/nxusb-vhci-hcd.o] Error 1
    make[1]: *** [Makefile:2032: /usr/NX/share/src/nxusb] Error 2
    make: *** [Makefile:8: all] Error 2

    #45067
    pfitas
    Participant

    Hi
    First make sure that you kernel and linux-headers are exact same version. If not sure do:
    sudo pacman -S linux-headers

    After that go to /usr/NX/share/src/nxusb and do as root(you have to login as root and not use sudo):

    make clean
    make

    Let me know if that worked for you

    #45078
    ki5fty
    Participant

    Headers were already installed, pacman re-installed.  Logged into as from the terminal, same error:

    ././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory

    #45104
    Giorgi-G.
    Contributor

    Hi,

    perhaps the issue is because of the missing /usr/lib/modules/<kernel>/build/include/generated/autoconf.h file. Could you please check if the file is there? If not please do the following steps:

    1. Uninstall NoMachine.

    2. Uninstall all linux-headers by running this command:

    pacman -Rs linux-headers

    3. Install linux-headers by running this command:

    pacman -S linux-headers

    4. Check if the file /usr/lib/modules/<kernel>/build/include/generated/autoconf.h is present.

    5. Install NoMachine.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic was marked as solved, you can't post.