emilyst / hid-nx-dkms

Alternative Linux kernel HID driver for Nintendo Switch controllers
GNU General Public License v2.0
40 stars 6 forks source link

not installing using pacman method with zen kernel... #13

Closed Apep-the-snek closed 1 year ago

Apep-the-snek commented 1 year ago

==> Making package: hid-nx-dkms v1.14-1 (Fri 26 May 2023 09:17:23 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Makefile
  -> Found hid-nx.c
  -> Found hid-ids.h
  -> Found dkms.conf
  -> Found 99-joycond-ignore.rules
==> Validating source files with sha256sums...
    Makefile ... Passed
    hid-nx.c ... Passed
    hid-ids.h ... Passed
    dkms.conf ... Passed
    99-joycond-ignore.rules ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "hid-nx-dkms"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: hid-nx-dkms v1.14-1 (Fri 26 May 2023 09:17:24 PM CEST)
==> Installing package hid-nx-dkms with pacman -U...
[sudo] password for flatlander:
loading packages...
resolving dependencies...
looking for conflicting packages...
:: hid-nx-dkms and hid-nintendo-dkms are in conflict. Remove hid-nintendo-dkms? [y/N] y

Packages (2) hid-nintendo-dkms-3.2-2 [removal]  hid-nx-dkms-v1.14-1

Total Installed Size:   0.13 MiB
Net Upgrade Size:      -0.03 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                       [################################################] 100%
(1/1) checking package integrity                                                     [################################################] 100%
(1/1) loading package files                                                          [################################################] 100%
(1/1) checking for file conflicts                                                    [################################################] 100%
(2/2) checking available disk space                                                  [################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove hid-nintendo/3.2
:: Processing package changes...
(1/1) removing hid-nintendo-dkms                                                     [################################################] 100%
(1/1) installing hid-nx-dkms                                                         [################################################] 100%
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms install --no-depmod hid-nx/v1.14 -k 6.3.4-zen1-1-zen
Error! Bad return status for module build on kernel: 6.3.4-zen1-1-zen (x86_64)
Consult /var/lib/dkms/hid-nx/v1.14/build/make.log for more information.
==> WARNING: `dkms install --no-depmod hid-nx/v1.14 -k 6.3.4-zen1-1-zen' exited 10
==> ERROR: Missing 6.3.2-zen1-1-zen kernel headers for module hid-nx/v1.14.
==> ERROR: Missing 6.3.3-artix1-1 kernel modules tree for module hid-nx/v1.14.
==> ERROR: Missing 6.3.1-zen1-1-zen kernel headers for module hid-nx/v1.14.
==> ERROR: Missing 6.3.3-zen1-1-zen kernel headers for module hid-nx/v1.14.
==> Cleaning up...```

this is on artix, but it shouldn't make a difference in this case.
emilyst commented 1 year ago

Do you happen to have the output from /var/lib/dkms/hid-nx/v1.14/build/make.log available to share?

Would you be willing to try building this for the mainline kernel? I suspect there's some incompatibility with the newer kernel versions and the DKMS build process as I have implemented it here. If your issue goes away with an earlier kernel version, then I believe this build problem probably duplicates issue #12.

Apep-the-snek commented 1 year ago

what i said at dkms-hid-nintendo: https://github.com/nicman23/dkms-hid-nintendo/issues/65 after leaving this issue here yesteday, i found that uname -r showed me using 6.3.3 instead of what i have installed which is 6.3.4. i shut down my pc and restarted today, and i retried installing this program the official way with git (which is already did previously), but this time it gave me an option to use --force as an option when it got an error and failed to build, after building and installing with --force, it just works now, i even tested it if my controller can input, and it does. I'll give you the the log file, but it probably would have worked if I just did the same except building hid-nx again. make.log /var/lib/dkms/hid-nx/kernel-6.3.4-zen1-1-zen-x86_64/log/make.log make.log /var/lib/dkms/hid-nx/v1.14/6.3.4-zen1-1-zen/x86_64/log idk if these are the same or not, i just found them in vaguely a similar directory to /var/lib/dkms/hid-nx/v1.14/build/make.log but not completely matching