Cannot build latest dev branch

Fedora 36 fully updated
Compiler: gcc version 12.2.1 20220819 (Red Hat 12.2.1-2) (GCC)
Source code: On branch dev
Your branch is up to date with ‘origin/dev’.

Problem: compiler gets stuck while compiling, had to press Ctrl+C

[ 5%] Building CXX object rtengine/CMakeFiles/rtengine.dir/
^Cmake[2]: *** [rtengine/CMakeFiles/rtengine.dir/build.make:1308: rtengine/CMakeFiles/rtengine.dir/] Interrupt
make[1]: *** [CMakeFiles/Makefile2:209: rtengine/CMakeFiles/rtengine.dir/all] Interrupt
make: *** [Makefile:136: all] Interrupt

I removed and recreated build directory a few times, reran cmake to no avail:
cmake -DCMAKE_BUILD_TYPE=Release …

RawTherapee does build, but it takes a while. See Speed up compilation for release builds with GCC 12.1 · Issue #6548 · Beep6581/RawTherapee · GitHub.

I installed it yesterday too… and it did work…

After 3 attempts - with everything closed down and it took all available processing power… having thought about it for about 15 minutes…

Thanks, everybody. This time I waited, waited and waited and the build went through eventually.