Cannot build 2.9.3, get "different exception specifier"

More
16 Aug 2024 00:08 #307852 by CNC_Tinkerer
I upgraded to Debian 12 and LinuxCNC v2.9.3 and find I can no longer build.

Linux debian2 6.1.0-22-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux
Downloaded 2.9.3 tarball from git yesterday.

I kept pretty good notes on building with 2.8.x and can't find anything I previously encountered related to this. I can Make just my own code but when I do the full Make I get the following:
user1@debian2:~/linuxcnc-dev/src$ make
Reading 54/210 dependency files
Done reading dependencies
Reading 0/238 realtime dependency files
Done reading realtime dependencies
cp ../scripts/rtapi.conf ../tests/uspace/spawnv-root/rtapi.conf
Compiling rtapi/uspace_rtai.cc
In file included from rtapi/uspace_rtai.cc:10:
/usr/include/x86_64-linux-gnu/sys/io.h:38:12: error: declaration of ‘int iopl(int) noexcept’ has a different exception specifier
   38 | extern int iopl (int __level) __THROW;
      |            ^~~~
In file included from /usr/include/rtai/rtai_lxrt.h:522,
                 from rtapi/uspace_rtai.cc:6:
/usr/include/rtai/asm/rtai_lxrt.h:170:38: note: from previous declaration ‘int iopl(int)’
  170 | #define rtai_iopl()  do { extern int iopl(int); iopl(3); } while (0)
      |                                      ^~~~
/usr/include/rtai/rtai_lxrt.h:605:9: note: in expansion of macro ‘rtai_iopl’
  605 |         rtai_iopl();
      |         ^~~~~~~~~
make: *** [Makefile:288: objects/rtapi/uspace_rtai.o] Error 1

I'd appreciate if someone could suggest how to proceed. This doesn't seem to involve any code under my control.

Please Log in or Create an account to join the conversation.

More
16 Aug 2024 00:55 #307858 by CNC_Tinkerer
Looks like I had conflicts because I needed to remove
linux-image-4.19.0.9-rt-amd64
Now it builds as expected.

I thought I followed the upgrade instructions exactly, but either I missed that step or they did not mention it.
The following user(s) said Thank You: tommylight, rodw

Please Log in or Create an account to join the conversation.

More
16 Aug 2024 01:10 #307861 by tommylight
You actually upgraded an existing Debian 10 installation to Debian 12 ?
I thought it was a new install, despite the statement, sorry.
Personally, i never ever upgrade existing installations since Ubuntu 10.04 to 11.04, it failed miserably, so i never bothered, i just do a clean install, much faster and does not come with baggage! :)
The following user(s) said Thank You: cornholio

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum