Bug 514676

Summary: Build failure on macOS 15 (Apple Silicon): <cmath> vs <math.h> header conflict / unqualified-id errors
Product: [Frameworks and Libraries] frameworks-kdoctools Reporter: varunsajithdas
Component: generalAssignee: Documentation Editorial Team <kde-doc-english>
Status: NEEDSINFO WAITINGFORINFO    
Severity: normal CC: kde, kdelibs-bugs-null, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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