Skip to content

Add cmath header for mathematical functions (e.g. std::isfinite())#3

Open
rpw wants to merge 1 commit into
poolsideai:lagunafrom
rpw:patch-1
Open

Add cmath header for mathematical functions (e.g. std::isfinite())#3
rpw wants to merge 1 commit into
poolsideai:lagunafrom
rpw:patch-1

Conversation

@rpw

@rpw rpw commented Jul 21, 2026

Copy link
Copy Markdown

Overview

Fix compile error with gcc 15.2.0:

Requirements

  • AI usage disclosure: NO

@philpax

philpax commented Jul 22, 2026

Copy link
Copy Markdown

Can confirm that I had to apply this patch to build with the Nix flake.

@KewaiiGamer

Copy link
Copy Markdown

Please merge this 🙏

Forgetting to import cmath is crazy work 😭

@crusaderky

Copy link
Copy Markdown

confirmed from me too. this fixes gcc15 for me (conda-forge build chain).

@Weschera

Copy link
Copy Markdown

Hit the same build error on DGX Spark (CUDA 13, aarch64, sm_121). This patch fixes it. Been serving Laguna S-2.1 Q4_K_M on a single Spark with it since yesterday, no issues. Would be great to see this merged.

@interwebologist

interwebologist commented Jul 23, 2026

Copy link
Copy Markdown

Same on Strix Halo Ubuntu building poolsideai/llama.cpp both vulkan / ROCm backends. Added the line and we are off to the races

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants