Bug 515361 - error: cannot use 'throw' with exceptions disabled; error: unknown type name 'slots'
Summary: error: cannot use 'throw' with exceptions disabled; error: unknown type name ...
Status: REPORTED
Alias: None
Product: glaxnimate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.5.80
Platform: FreeBSD Ports FreeBSD
: NOR normal (vote)
Target Milestone: ---
Assignee: Mattia Basaglia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-31 20:05 UTC by Yuri
Modified: 2026-01-31 20:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2026-01-31 20:05:55 UTC
SUMMARY
Build fails:

In file included from /usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/src/QtColorWidgets/harmony_color_wheel.cpp:24:
/usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/include/QtColorWidgets/harmony_color_wheel.hpp:39:50: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
   39 |     explicit HarmonyColorWheel(QWidget *parent = 0);
      |                                                  ^
      |                                                  nullptr
/usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/src/QtColorWidgets/harmony_color_wheel.cpp:109:9: error: cannot use 'throw' with exceptions disabled
  109 |         throw std::out_of_range("incorrect call to addSymmetricHarmony: harmony number out of range");
      |         ^
/usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/src/QtColorWidgets/harmony_color_wheel.cpp:122:9: error: cannot use 'throw' with exceptions disabled
  122 |         throw std::out_of_range("incorrect call to addOppositeHarmony: harmony number out of range");
      |         ^       
2 warnings and 2 errors generated. 

The -fno-exceprions flag is added to compiler aregs.
This is likely done in /usr/local/share/ECM/kde-modules/KDECompilerSettings.cmake

Another compilation error:
In file included from /usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/src/QtColorWidgets/color_delegate.cpp:22:
/usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/include/QtColorWidgets/color_delegate.hpp:76:8: error: expected ':'
   76 | private slots:
      |        ^
      |        :
/usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/include/QtColorWidgets/color_delegate.hpp:76:9: error: unknown type name 'slots'
   76 | private slots:
      |         ^
/usr/ports/graphics/glaxnimate/work/glaxnimate-0.5.80/external/Qt-Color-Widgets/include/QtColorWidgets/color_delegate.hpp:77:10: error: expected '(' for function-style cast or type construction
   77 |     void close_editor();
      |     ~~~~ ^



STEPS TO REPRODUCE
build

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
kf6-extra-cmake-modules-6.22.0
FreeBSD 15 STABLE