Skip to content

[Feature]: Workaround for a build issue I was experiencing #54

@PacketOperator

Description

@PacketOperator

The Pitch

First of all, thank you so very much for taking the time to write a driver for the Allen & Heath XONE:DB4.

I just wanted to share my experience building the driver and the workarounds I implemented to get it to build successfully.

I was receiving the error message below when building, I think anyone trying to build this driver for linux at this time (2/1/2026) is likely to have the same issue. This is what I did to get it to build.

The error: make[4]: *** No rule to make target '../common/ploytec.o', needed by 'snd-usb-xonedb4.o'. Stop.

To get around this error, in the source code directory, copy the ploytech files located in legacy/common: ploytech.c and ploytech.h to common.

In other words, there are two common folders related to the linux source; one in the project root, and another in the legacy folder, just copy legacy/common/ploytech.h and legacy/common/ploytech.c to common.

After copying the files, run the build process again and everything should compile.

I also had another distro specific issue. I am running CachyOS and they built the kernel using clang. The build was failing with the following errors:

warning: the compiler differs from the one used to build the kernel
The kernel was built by: clang version 21.1.6
You are using: gcc (GCC) 15.2.1 20260103
CC [M] chip.o
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.8-3-cachyos/build/scripts/Makefile.build:287: chip.o] Error 1
make[3]: *** [/usr/lib/modules/6.18.8-3-cachyos/build/Makefile:2016: .] Error 2
make[2]: *** [/usr/lib/modules/6.18.8-3-cachyos/build/Makefile:248: __sub-make] Error 2

What I needed to do to get this to work: add some parameters to the make command: make CC=clang LD=lld.ld

After that, everything compiled without issue. You could probably edit the install script and add those parameters to the part of the script where the make command gets executed (line 21)

Instead of using the script, I manually installed by running:

sudo mkdir -p /lib/modules/<kernel_version>/kernel/sound/usb/ploytec

sudo cp snd-usb-xonedb4.ko /lib/modules/<kernel_version>/kernel/sound/usb/ploytec/

sudo depmod -a

sudo modprobe snd-usb-xonedb4

I hope this helps anyone who might be experiencing build issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions