Clang warning after update to MacOS 26 #6413
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
How do you run Fortran code? How is brew involved in it? |
Beta Was this translation helpful? Give feedback.
-
This is actually not an insignificant warning. I had the same this morning while compiling my (extensive) C++ library, and even though the compilation seems to go well modulo this warning, the output of my code is completely broken (it creates NAN where I previously had proper numbers). It's ok if I compile my library with clang, but then I cannot benefit from all its dependencies (some do not compile with clang). |
Beta Was this translation helpful? Give feedback.
-
Yes, I was probably quick in identifying the issue. This particular warning may be harmless, but something else happened when I did the update to Xcode 26. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the advice. I've re-installed gcc from sources (which only took about 15min actually) but the result is the same. Here is my brew config: HOMEBREW_VERSION: 4.6.13 |
Beta Was this translation helpful? Give feedback.
-
It's C++, so quite intricate. I tried reducing the level of optimisation, no luck. I'll need to investigate more to find the source, but at least I seem to see the issue at every level (even on simpler calculations). |
Beta Was this translation helpful? Give feedback.
May be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120645, which @fxcoudert fixed upstream.
Will likely go away when GCC 15.2 update is done in future PR (will take some more time due to rebasing patch).
You can ignore warning as it is just saying Clang is doing the right thing, i.e. auto-correcting macOS 16 to macOS 26.