Okay, thanks. I'm just using __builtin::is_nan and __builtin::is_inf for now. By the way, maybe this is intersting for You: https://github.com/svenbieg/Clusters You can possibly speed up compilation and linking. Have a look at the benchmarks! Best regards, Sven Bieg Gesendet von Outlook für Android<https://aka.ms/AAb9ysg> ________________________________ From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx> Sent: Tuesday, July 30, 2024 4:36:57 PM To: Sven Bieg <svenbieg@xxxxxx> Cc: gcc-help@xxxxxxxxxxx <gcc-help@xxxxxxxxxxx> Subject: Re: cmath On Tue, 30 Jul 2024 at 15:31, Sven Bieg via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > Thank You! I don't think libm has any dependencies, does it? Why do i get this error-message without trying to link? Because most of <cmath> can't work without libm, so it's simply disabled for freestanding. Compiling something that can't actually be linked or run wouldn't be very helpful. But as I said, there's a bug report about it and it should be addressed so that we don't just fail immediately. Some uses of <cmath> in freestanding might work in some environments. But it needs work to support it properly.