Bug 514676 - Build failure on macOS 15 (Apple Silicon): <cmath> vs <math.h> header conflict / unqualified-id errors
Summary: Build failure on macOS 15 (Apple Silicon): <cmath> vs <math.h> header conflic...
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: frameworks-kdoctools
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-16 04:00 UTC by varunsajithdas
Modified: 2026-01-19 12:35 UTC (History)
3 users (show)

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 varunsajithdas 2026-01-16 04:00:07 UTC
SUMMARY
When attempting to build KDocTools on macOS 15.0 (Sequoia) using AppleClang 17.0.0 via kde-builder, the build fails during the compilation of `loggingcategory.cpp` and `xslt_kde.cpp`.

The error indicates a conflict between the C++ standard library headers and the macOS system SDK math headers, specifically regarding `std::isinf`, `std::isnan`, and `abs`.

STEPS TO REPRODUCE
1. Setup kde-builder on macOS 15 (Apple Silicon M-series).
2. Attempt to build kdoctools (`./kde-builder kdoctools`).
3. Build fails at cmake targeting Ninja.

OBSERVED RESULT
Compilation errors regarding "expected unqualified-id" in cmath.

SOFTWARE/OS VERSIONS
macOS: 15.0 (Sequoia)
Processor: Apple Silicon (M-series)
Compiler: AppleClang 17.0.0.17000603
Qt Version: 6.8.1 (via Homebrew)
KDE Frameworks Version: master (latest git)
Comment 1 David Redondo 2026-01-16 08:41:10 UTC
Can you post the whole build log?
Comment 2 Nicolas Fella 2026-01-19 12:35:31 UTC
Please attach the full build log