Compile error when choosing Sabre as soundcard

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Posts: 1
Joined: Wed May 29, 2019 1:32 pm

Compile error when choosing Sabre as soundcard

Post by accessdenied »

When I select Sabre as my soundcard I get the following compile error in DietPi v6.24.1 on a RPi 3 Model B:

DietPi-Set hardware: make CC=gcc-4.9
- Exit code: 2
- DietPi version: v6.24.1 (Micha Ing/master) | HW_MODEL:3 | HW_ARCH:2 | DISTRO:4
- Image creator: DietPi Core Team
- Pre-image: Raspbian Lite

Log file contents:

/tmp/DietPi-Set_hardware/i-sabre-k2m_build/i-sabre-codec.c:200:16: error: dereferencing pointer to incomplete type
dev_err(codec->dev, "Bad frame size: %d",

./include/linux/device.h:1442:11: note: in definition of macro dev_err _dev_err(dev, dev_fmt(fmt), ##_VA_ARGS__)

In the previous version of DietPi there were no issues.
User avatar
Site Admin
Posts: 2896
Joined: Sat Nov 18, 2017 6:21 pm

Re: Compile error when choosing Sabre as soundcard

Post by MichaIng »

Thanks for your report.

Jep known issue with the latest kernel upgrade. However support for this device is baked into the kernel now, so you can simply do:

Code: Select all

dtoverlay i-sabre-q2m
echo 'dtoverlay=i-sabre-q2m' >> /DietPi/config.txt
- Note "q2m" instead of "k2m", but the latter is supported by this!

Do not touch soundcards with dietpi-config then until v6.25 where we fix it by using the above method.
Post Reply