-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netcdf-c FTBFS on ocdump.c with Homebrew Clang 19.1.7 on MacOS 15.3 #3083
Comments
Interesting; I work in MacOS and have not encountered this with the |
Yes, that's curious. Thanks for looking into this. LMK if I can provide any other information...
|
Thanks Charlie, llvm was hiding there in plain sight. 4.9.3 is going out tomorrow but I will see if I can figure this out, and it it reflects something in the source code itself. I'll also see what happens with clang 19 in a Linux VM. |
Ok, I can replicate this. Thanks @czender. I'm not sure what to do about it, other than to make a note of it. Do you have XCode/Apple-supplied developer tools installed? Or are you working in a homebrew-only development environment? I'm trying to establish some fenceposts around this issue. How curious. I have the Apple dev tools installed, which include their own clang, so I'm wondering if this is some conflict between homebrew-supplied |
I'm relieved I'm not the only one seeing ghosts in the compiler. I also have the normal (free) Xcode tools installed, though my development environment paths give precedence to Homebrew. I have not filed a bug report with |
It now occurs to me that you cannot install homebrew without first installing MacOS devtools, so I can stop setting up the VM to replicate a 'homebrew-only' environment. In a linux VM, I installed clang: (forgive the screenshot, copy and paste from my VM isn't working and this was expedient). I'm not seeing this issue using clang 19.x on Linux. This makes me wonder if th |
@czender I will be happy to open it, although it will be largely cutting and pasting the information you have provided. Thanks! |
I'm curious, as an aside, why you prefer the |
I want to use Homebrew-provided C++ or Fortran90 libraries with your C++/F90 code, so it's safer to compile using the same compilers. Less chance of compiler mis-match errors. Also Homebrew updates on a rolling schedule, much less lag than Apple updates. |
A few months ago my default build environment on MacOS stopped working due to a Clang compiler error on the file
ocdump.c
. I usually do not report compiler errors because they have nothing to do with netCDF per se, and the compiler authors usually resolved these things eventually. So consider this a heads-up and feel free to resolve without taking action. However, note that this particular compiler error on this particular file has been there for ~3-4 months, and survived many patch releases of Clang. So it may be something that prevents other users from building/testing netCDF 4.9.3. Everything here (Clang, MacOS, and the netCDF-main branch are the latest available as of today.The text was updated successfully, but these errors were encountered: