-
Notifications
You must be signed in to change notification settings - Fork 24
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
Bugfix: Problem compiling MET on MacOS using GCC 12.3.0 #2615
Comments
The problem happens with gnu/12.1.0. The solution is adding the header file <array> at pb2nc.cc
|
@jprestop @georgemccabe @JohnHalleyGotway Interesting Thank you @hsoh-u |
Can you let me know when to test the 11.0.2 and 11.1 scripts |
@HathewayWill You are welcome to test the changes if you'd like, but please don't feel any obligation to test. Because this is a code change and we don't have a tar file for you to grab the testing would be different than usual for you. You would run the following:
Then you'd open ./src/tools/other/pb2nc/pb2nc.cc with the editor of your choice. Search for "#include <netcdf>" and add "#include <array>" above it. Save the file. Then:
Then you'd run the compilation script again. |
I'll wait for the tar file to be ready then I will test. I try to avoid going into codes that I don't understand fully because if I make a mistake I can replicate the errors. Hope that is okay? |
@HathewayWill Yes, that is fine. There will likely be an rc2 release for testing. Otherwise, this change will be included in the official release tarfile. |
I vote for rc2 since if their is a bug with it then there won't need to be a 11.1.1 patch right away. But I understand the timeline and schedule that has to be kept. |
@HathewayWill This change itself doesn't really create a need for an rc2 release since it's been implemented and tested by two developers, but we have another PR that may need some further testing by the Met Office, which we will likely prepare an rc2 release for and this change will be included. |
@jprestop sounds good I'll keep an eye out for it. Just let me know how I can help |
Describe the Problem
The compilation of MET-11.1.0-rc1 on the MacOS fails when compiling with gcc 12.3.0, but succeeds with gcc 11.3.0. The error in the make.log file (attached) is the following when making pb2nc:
met.make.log
Note that a libbufr.a file is created from the BUFRLIB compilation, but I noticed this in the log file:
bufr.make.log
Another user, @HathewayWill, also tested on a Mac using gcc 12.3.0 and received the same error his met.make.log file. A copy of his files are linked to in his comment on another issue.
Expected Behavior
MET-11.1.0-rc1 should build on the MacOS using gcc 12.3.0.
Environment
Describe your runtime environment:
1. Machine: Mac Laptop
2. OS: MacOS Monterey version 12.6.7
3. Software version number: MET-11.1.0-rc1
To Reproduce
Describe the steps to reproduce the behavior:
Attempt to install MET and its dependent libraries using the compilation script here or after this PR is merged, using the script in main_v11.1, on a MacOS using gcc 12.3.0.
Relevant Deadlines
Preferably before the 11.1.0 release.
Funding Source
2792543
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Select: Reviewer(s) and Development issue
Select: Organization level software support Project for the current coordinated release
Select: Milestone as the next bugfix version
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issue
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: