You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS found this when I was building a complex set of libraries (incl. GSL) some with c and some with fortran hence was trying to use consistent gcc and gfortran throughout. Have used this distribution for a while - keep up the good work!
I found a curious bug when trying to use gcc 14.2 from here to build GSL on an Intel Sonoma iMac.
I was able to make this standalone code that reproduces the bug on the machine:
Here is the output:
So calling the same function directly vs indirectly produces a different value! (Even with no optimisation -O0).
Very odd! (For those interested the equivalent of this code was executing at line 2236 of gsl-2.7.1/integration/test.c and failing the test).
Works fine on Apple Silicon.
Works fine if you change the value to 2.0 or 5.0.
Works fine if you put '7.0' in to a variable and use that!
Not sure if this is easy to fix, probably obscure and particular compiler boojums, but sharing for fun & giggles, and the public record.
XCode 16.2 installed.
The text was updated successfully, but these errors were encountered: