klog icon indicating copy to clipboard operation
klog copied to clipboard

klog-2.3.4 build fails with gcc-c++-14.0

Open barjac opened this issue 1 year ago • 1 comments

src/hamlibclass.cpp:546:20: error: invalid conversion from 'int ()(const rig_caps, void*)' to 'int ()(rig_caps, void*)' [-fpermissive]

Full log: http://mtf.duckdns.org/pub/linux/barjac/distrib/cauldron/x86_64/log/klog-2.3.4-1.5.mga.src.rpm/build.x86_64.0.20241003174146.log

Help porting to 14.0: https://gcc.gnu.org/gcc-14/porting_to.html

barjac avatar Oct 04 '24 10:10 barjac

This build issue come from hamlib, especially since this commit: https://github.com/Hamlib/Hamlib/commit/74062c6aba1650f0f4f5f77883e2cc3d25dc4da7 which now rig_caps is no longer constant.

david-geiger avatar Oct 20 '24 04:10 david-geiger

I am compiling wit GCC with no issue.

$ dpkg -l|grep gcc ii gcc 4:14.2.0-1 amd64 GNU C compiler ii gcc-14 14.2.0-19 amd64 GNU C compiler ii gcc-14-base:amd64 14.2.0-19 amd64 GCC, the GNU Compiler Collection (base package) ii gcc-14-x86-64-linux-gnu 14.2.0-19 amd64 GNU C compiler for the x86_64-linux-gnu architecture ii gcc-x86-64-linux-gnu 4:14.2.0-1 amd64 GNU C compiler for the amd64 architecture

ea4k avatar Apr 15 '25 18:04 ea4k