Bug 512890 - Kstars 3.8.0 fails to build
Summary: Kstars 3.8.0 fails to build
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.8.0
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-03 00:39 UTC by Steve Cossette
Modified: 2025-12-10 04:18 UTC (History)
0 users

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


Attachments
Build Log (114.96 KB, application/gzip)
2025-12-03 00:40 UTC, Steve Cossette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Cossette 2025-12-03 00:39:05 UTC
Upon building on Fedora rawhide, build fails in the last 10%. Please see the attached build log for the error.
Comment 1 Steve Cossette 2025-12-03 00:40:35 UTC
Created attachment 187317 [details]
Build Log
Comment 2 Jasem Mutlaq 2025-12-03 04:06:22 UTC
I see this:

/builddir/build/BUILD/kstars-3.8.0-build/kstars-3.8.0/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp: In member function ‘void GP::infer()’:
/builddir/build/BUILD/kstars-3.8.0-build/kstars-3.8.0/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp:202:5: error: ‘assert’ was not declared in this scope
  202 |     assert(data_loc_.rows() > 0 && "Error: the GP is not yet initialized!");
      |     ^~~~~~
/builddir/build/BUILD/kstars-3.8.0-build/kstars-3.8.0/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp:24:1: note: ‘assert’ is defined in header ‘<cassert>’; this is probably fixable by adding ‘#include <cassert>’

Can you check if adding #include <cassert> in that file fixes the build? It's building fine on Debian/Ubuntu and Arch so this is a Fedora specific issue.
Comment 3 Steve Cossette 2025-12-04 02:06:22 UTC
Yep, looks like that indeed made it work!
Comment 4 Steve Cossette 2025-12-04 02:09:32 UTC
Oh FYI, this might be related to GCC15.
Comment 5 Jasem Mutlaq 2025-12-04 04:14:12 UTC
Git commit 3d10e7bd5ca7d6d5625c8d2bae87496defc0608c by Jasem Mutlaq.
Committed on 04/12/2025 at 04:14.
Pushed by mutlaqja into branch 'master'.

Fix build issue on GCC 15.
FIXED-IN:3.8.1

M  +1    -0    kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp

https://invent.kde.org/education/kstars/-/commit/3d10e7bd5ca7d6d5625c8d2bae87496defc0608c
Comment 6 Jasem Mutlaq 2025-12-10 04:18:48 UTC
Git commit 771aacd68d93588d29701600248db05c5224df5f by Jasem Mutlaq.
Committed on 10/12/2025 at 04:18.
Pushed by mutlaqja into branch 'stable-3.8.0'.

Fix build issue on GCC 15.
FIXED-IN:3.8.1

M  +1    -0    kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp

https://invent.kde.org/education/kstars/-/commit/771aacd68d93588d29701600248db05c5224df5f