nixpkgs
nixpkgs copied to clipboard
Build failure: xpadneo
Steps To Reproduce
Steps to reproduce the behavior:
- build xpadneo
Build log
Build Log
sudo nixos-rebuild switch --flake .
warning: Git tree '/home/user/personal/nix/nixos-config' is dirty
building the system configuration...
warning: Git tree '/home/user/personal/nix/nixos-config' is dirty
evaluating derivation 'git+file:///home/user/personal/nix/nixos-config#nixosConfigurations."derror: builder for '/nix/store/6k4b8p88lhc2k3b92gpsw5n1a9xy2vjp-xpadneo-0.9.6.drv' failed with exit code 2;
last 20 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/05jj42j9d24b8shwl5dx99r98739z5wa-source
> source root is /build/source/hid-xpadneo/src
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> no configure script, doing nothing
> Running phase: buildPhase
> build flags: SHELL=/nix/store/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj-bash-5.2p37/bin/bash O=\$\(buildRoot\) CC=/nix/store/3ix5h74n7ar9950vwzp4dxmil70pmx0k-gcc-wrapper-13.3.0/bin/cc HOSTCC=/nix/store/3ix5h74n7ar9950vwzp4dxmil70pmx0k-gcc-wrapper-13.3.0/bin/cc HOSTLD=/nix/store/9bacph866qhmr2zfib1h49jixq5hhd01-binutils-wrapper-2.43.1/bin/ld ARCH=x86_64 -C /nix/store/lacdcr5zi7w59f8xsq4cfi41mzgc6dcn-linux-6.12-dev/lib/modules/6.12.0/build M=\$\(sourceRoot\) VERSION=0.9.6 modules
> make: Entering directory '/nix/store/lacdcr5zi7w59f8xsq4cfi41mzgc6dcn-linux-6.12-dev/lib/modules/6.12.0/build'
> CC [M] /build/source/hid-xpadneo/src/hid-xpadneo.o
> /build/source/hid-xpadneo/src/hid-xpadneo.c:1266:25: error: initialization of 'const __u8 * (*)(struct hid_device *, __u8 *, unsigned int *)' {aka 'const unsigned char * (*)(struct hid_device *, unsigned char *, unsigned int *)'} from incompatible pointer type 'u8 * (*)(struct hid_device *, u8 *, unsigned int *)' {aka 'unsigned char * (*)(struct hid_device *, unsigned char *, unsigned int *)'} [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;]
> 1266 | .report_fixup = xpadneo_report_fixup,
> | ^~~~~~~~~~~~~~~~~~~~
> /build/source/hid-xpadneo/src/hid-xpadneo.c:1266:25: note: (near initialization for 'xpadneo_driver.report_fixup')
> cc1: some warnings being treated as errors
> make[2]: *** [/nix/store/lacdcr5zi7w59f8xsq4cfi41mzgc6dcn-linux-6.12-dev/lib/modules/6.12.0/source/scripts/Makefile.build:229: /build/source/hid-xpadneo/src/hid-xpadneo.o] Error 1
> make[1]: *** [/nix/store/lacdcr5zi7w59f8xsq4cfi41mzgc6dcn-linux-6.12-dev/lib/modules/6.12.0/source/Makefile:1936: /build/source/hid-xpadneo/src] Error 2
> make: *** [/nix/store/lacdcr5zi7w59f8xsq4cfi41mzgc6dcn-linux-6.12-dev/lib/modules/6.12.0/source/Makefile:224: __sub-make] Error 2
> make: Leaving directory '/nix/store/lacdcr5zi7w59f8xsq4cfi41mzgc6dcn-linux-6.12-dev/lib/modules/6.12.0/build'
For full logs, run 'nix log /nix/store/6k4b8p88lhc2k3b92gpsw5n1a9xy2vjp-xpadneo-0.9.6.drv'.
error: 1 dependencies of derivation '/nix/store/p9lqb04mzb1997n0hpjli6014f7yahz6-linux-6.12-modules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dvbl38c8nc3s4jhrvpdrszqqb186crj9-nixos-system-user-d-25.05.20241119.23e89b7.drv' failed to build
Additional context
Metadata
- system:
"x86_64-linux" - host os:
Linux 6.11.8, NixOS, 25.05 (Warbler), 25.05.20241115.5e4fbfb - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.24.10 - channels(root):
"nixos" - nixpkgs:
/nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source
Notify maintainers
@kira-bruneau
Note for maintainers: Please tag this issue in your PR.
Add a :+1: reaction to issues you find important.
This has been reported upstream as well https://github.com/atar-axis/xpadneo/issues/498