-
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: Unknown ld Flag on Macos causes MET compilation to fail #2596
Comments
@jprestop I am not able to reproduce this problem on Cheyenne using gcc-12.1.0. Note the user is on a MacOS and is using gcc-12.3.0. Will need to set up similar environment to test. |
If you have virtual machine, i can send you the image |
Hi @HathewayWill. I don't have a VM, but I was able to get gcc 12.3.0 using MacPorts and was able to reproduce the problem you are experiencing. I'll get a fix in place and will update here once it's ready. |
@jprestop did this fix get merged into the main branch or the next release? |
Hi @HathewayWill. No, it did not. On Monday, after fixing this problem, I discovered that HDF5 wasn't compiling successfully on my Mac. I wanted to get that issue resolved before merging in the changes in case additional changes to the script were necessary. I haven't been able to get back to this task, so it is not yet complete. |
@jprestop I cansend my hdf5 commands for Mac ports
…On Wed, Jul 5, 2023, 9:37 PM jprestop ***@***.***> wrote:
Hi @HathewayWill <https://github.com/HathewayWill>. No, it did not. On
Monday, after fixing this problem, I discovered that HDF5 wasn't compiling
successfully on my Mac. I wanted to get that issue resolved before merging
in the changes in case additional changes to the script were necessary. I
haven't been able to get back to this task, so it is not yet complete.
—
Reply to this email directly, view it on GitHub
<#2596 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4FUT5UIOT3BSMRD65BYYKLXOYQGXANCNFSM6AAAAAAZZ3VCQM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks, @HathewayWill. That is kind of you. However, I'm hoping to get the compilation working via the script. I'd like users who don't have access to MacPorts and don't have much IT support still be able to install MET and its dependent libraries, |
@jprestop sounds good. Hopefully something will work out without too much pain. |
Is it merged into the main branch or next update I'll test it out |
@HathewayWill It has been merged into main_v11.0 (current official release), but not yet main_v11.1 (official release scheduled for 7/31). |
I can confirm that the fix for #2600 works for homebrew gcc. See attached log |
@HathewayWill Thank you for the confirmation! Reopening as the work isn't complete for the main_v11.1 branch. |
@HathewayWill Would you be able to test the compile_MET_all.sh script (linked) from my branch with the MET-11.1.0-rc1 release (linked)? |
Testing it right now. So far it has some bugs but I'm not sure if it is the MAKE_ARGS variable causing it or something else. I sent a email to @jprestop |
MET fails to build at NETCDF-CXX. Log files and script used to test the code on mac is attached in a zip file. |
It seems that when MET fails to build due to the unknown ld flag "--disable-new-dtags" is not a gcc 12 problem, but rather a Mac problem. When I was compiling with gcc 11.3.0 on my Mac I had the same problem. I have modified the code and will submit a new pull request. |
Great looking forward to testing it.
Do you want to do another webcall when I do? We can real time test
…On Wed, Jul 19, 2023, 5:04 PM jprestop ***@***.***> wrote:
It seems that when MET fails to build due to the unknown ld flag
"--disable-new-dtags" is not a gcc 12 problem, but rather a Mac problem.
When I was compiling with gcc 11.3.0 on my Mac I had the same problem. I
have modified the code and will submit a new pull request.
—
Reply to this email directly, view it on GitHub
<#2596 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4FUT5RABZDHOBHNFTWESPDXRBKVTANCNFSM6AAAAAAZZ3VCQM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
@HathewayWill Please feel free to test whenever it's convenient for you. If you'd like to use the script from the branches below are the links for easy access: For main_v11.0: https://raw.githubusercontent.com/dtcenter/MET/bugfix_2596_main_v11.0_rpath_compilation/internal/scripts/installation/compile_MET_all.sh For main_v11.1: |
Results from #2613 (PASSES) Results from #2614 (FAILS)
Worth noting new commands that work well:
|
Thanks @HathewayWill for confirming that for #2614 you were able to compile the dependent libraries, but noted that MET also fails for you. These errors, while different from mine, also seem unrelated to the script. I have noted your errors along with mine in issue #2615. |
@HathewayWill I just wanted to send an update. I thought that your errors were different from mine, but it turns out that you had additional warnings in your file, but the actual error was the same. I have updated the description in issue #2615 to note that we did, indeed, receive the same error. It's great that you were able to reproduce the same error I received. |
I added a few comments to the other issues. Also someone found a solution to 11.1 due to a header issue. |
Describe the Problem
When using GCC@12 from the homebrew package manager MET fails to build due to an unknown ld flag --disable-new-dtags. Gives an error thatC compiler cannot create executables.
All the libraries appear to have built successfully.
Expected Behavior
MET tools should be able to determine what ld flags are needed based on OS.
Environment
Describe your runtime environment:
1. Machine: Virtual Mac Laptop
*2. OS: Mac OS 13.1.4
*3. Software version number(s) MET 11.0.2
To Reproduce
Describe the steps to reproduce the behavior:
` echo "MET INSTALLING"
brew install wget
brew install git
brew install gcc@12
brew install libtool
brew install automake
brew install autoconf
brew install make
brew install m4
brew install java
brew install ksh
brew install grads
brew install ksh
brew install tcsh
brew install snap
brew install python@3.11
brew install cmake
brew install xorgproto
brew install xorgrgb
brew install xauth
brew install curl
brew install flex
brew install byacc
brew install bison
brew install gnu-sed
pip3.11 install python-dateutil
wget -c -4 https://raw.githubusercontent.com/dtcenter/MET/main_v11.0/internal/scripts/installation/compile_MET_all.sh
config.log
configure.log
compile_MET_all.log
Relevant Deadlines
NONE.
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: