Cannot compile in kernel 5.x

https://www.merging.com/products/alsa_r ... s67_driver
Forum rules
The Merging Technologies team cannot be held responsible for support queries logged on the public forums. If a support query is logged here and only here, it may not be found and dealt with by the appropriate team.
If you need assistance please contact tech support.
hifi25nl
Posts: 8
Joined: Wed Feb 27, 2019 10:52

Cannot compile in kernel 5.x

Postby hifi25nl » Tue Aug 06, 2019 12:16

Still does not compile on kernel 5.x

Code: Select all

[audiolinux@archlinux driver]$ make
make -C /lib/modules/5.2.0-rt1-8-rt-bfq/build/ M=/media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver modules
make[1]: Entering directory '/usr/lib/modules/5.2.0-rt1-8-rt-bfq/build'
  CC [M]  /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.o
In file included from ./include/linux/atomic.h:7,
                 from ./include/linux/jump_label.h:246,
                 from ./arch/x86/include/asm/string_64.h:6,
                 from ./arch/x86/include/asm/string.h:5,
                 from ./include/linux/string.h:20,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/MTAL_stdint.h:68,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.h:35,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.c:32:
./arch/x86/include/asm/atomic.h: In function ‘arch_atomic_try_cmpxchg’:
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
  200 |  return try_cmpxchg(&v->counter, old, new);
      |  ^~~~~~
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
In file included from ./arch/x86/include/asm/atomic.h:262,
                 from ./include/linux/atomic.h:7,
                 from ./include/linux/jump_label.h:246,
                 from ./arch/x86/include/asm/string_64.h:6,
                 from ./arch/x86/include/asm/string.h:5,
                 from ./include/linux/string.h:20,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/MTAL_stdint.h:68,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.h:35,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.c:32:
./arch/x86/include/asm/atomic64_64.h: In function ‘arch_atomic64_try_cmpxchg’:
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
  186 |  return try_cmpxchg(&v->counter, old, new);
      |  ^~~~~~
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
make[2]: *** [scripts/Makefile.build:279: /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.o] Error 1
make[1]: *** [Makefile:1595: _module_/media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.2.0-rt1-8-rt-bfq/build'
make: *** [Makefile:14: modules] Error 2

hifi25nl
Posts: 8
Joined: Wed Feb 27, 2019 10:52

Re: Cannot compile in kernel 5.x

Postby hifi25nl » Fri Oct 04, 2019 18:42

Still not compiling. ERROR undefined named operand ‘new’

Code: Select all

[audiolinux@archlinux driver]$ make
make -C /lib/modules/5.2.17-rt9-1-rt-bfq/build/ M=/media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver modules
make[1]: Entering directory '/usr/lib/modules/5.2.17-rt9-1-rt-bfq/build'
  CC [M]  /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/c_wrapper_lib.o
In file included from ./include/linux/atomic.h:7,
                 from ./include/linux/jump_label.h:246,
                 from ./arch/x86/include/asm/string_64.h:6,
                 from ./arch/x86/include/asm/string.h:5,
                 from ./include/linux/string.h:20,
                 from /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/MTAL_stdint.h:68,
                 from /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/c_wrapper_lib.h:35,
                 from /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/c_wrapper_lib.c:32:
./arch/x86/include/asm/atomic.h: In function ‘arch_atomic_try_cmpxchg’:
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
  200 |  return try_cmpxchg(&v->counter, old, new);
      |  ^~~~~~
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
In file included from ./arch/x86/include/asm/atomic.h:262,
                 from ./include/linux/atomic.h:7,
                 from ./include/linux/jump_label.h:246,
                 from ./arch/x86/include/asm/string_64.h:6,
                 from ./arch/x86/include/asm/string.h:5,
                 from ./include/linux/string.h:20,
                 from /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/MTAL_stdint.h:68,
                 from /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/c_wrapper_lib.h:35,
                 from /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/c_wrapper_lib.c:32:
./arch/x86/include/asm/atomic64_64.h: In function ‘arch_atomic64_try_cmpxchg’:
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
  186 |  return try_cmpxchg(&v->counter, old, new);
      |  ^~~~~~
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
make[2]: *** [scripts/Makefile.build:279: /media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver/c_wrapper_lib.o] Error 1
make[1]: *** [Makefile:1597: _module_/media/linux/Downloads/MyPackages/aur4/ravenna-alsa-lkm-dkms/src/ravenna-alsa-lkm/driver] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.2.17-rt9-1-rt-bfq/build'
make: *** [Makefile:14: modules] Error 2
[audiolinux@archlinux driver]$

antoszka
Posts: 22
Joined: Wed Dec 03, 2008 12:17

Re: Cannot compile in kernel 5.x

Postby antoszka » Sat Jan 18, 2020 10:00

There have been no updates to the codebase since 2019-06-28. At least nothing pushed to the publicly available branches.

Butler does not run (please link it statically in the future so that it's not dependent on system-present libraries) and yeah, the kernel driver is using the timer API that's been completely changed. I was trying to patch it manually and had mixed results, I got the drive to compile and load, but since Butler wouldn't work anyway and nobody responded to emails I lost motivation.

I've been trying ping the team by e-mail for the last 3 or 4 months (since I had my Anubis) but I didn't receive any response. Guess they're too busy with other stuff.

robertopisa
Posts: 27
Joined: Tue Feb 24, 2015 20:38

Re: Cannot compile in kernel 5.x

Postby robertopisa » Sat Jan 25, 2020 04:19

By pinging the team by email do you mean contacting tech support as written in the forum rules?
-R

P.S. I wrote my ASIO app for Windows and wanted to switch to Linux but I am a bit discouraged by the fact the ALSA Linux driver is not updated as frequently as the ASIO Ravenna Windows driver :(

The Merging Technologies team cannot be held responsible for support queries logged on the public forums. If a support query is logged here and only here, it may not be found and dealt with by the appropriate team.
If you need assistance please contact tech support.

antoszka
Posts: 22
Joined: Wed Dec 03, 2008 12:17

Re: Cannot compile in kernel 5.x

Postby antoszka » Mon Apr 20, 2020 22:18

Yes, I think I've contacted pretty much every address and contact I had over the course of numerous months...