Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Encountered issues while compiling MPAS

panting

Member
Hello!

I'm currently compiling MPAS and encountered this error.
1742825732880.png
I suspect the error occurred because the Makefile script is looking for libpio.* files, but they weren't found in the configured PIO/lib directory.
1742825832388.png
1742825908296.pngMy question is:
Given that I've previously resolved this issue on other servers using this approach:An error occurred when building the MPAS. · Issue #695 · MPAS-Dev/MPAS-Model, is it possible to fix this problem by modifying the Makefile as well?
1742826588879.png

Or does this indicate a problem with the PIO library itself that would require me to reinstall PIO?Additionally, the version of PIO I have installed is 2.6.0.

Sincerely,
Pan.
 
Hello Pan,

Could you remind me what version of MPAS you are working with? Some v7.x code, correct? Could you also provide your `make TARGET core=CORE ...` line?

MPAS v8.x actually directs you how to investigate what went wrong with building the PIO test programs. For now, you may want to remove the leading '@' character from the lines in the pio_test in the Makefile so you can see how the test programs failed to build (except the comments, don't change the '@#' lines). Please also send some of the output if you try this.

Cheers,
Dylan
 
Hello Pan,

Could you remind me what version of MPAS you are working with? Some v7.x code, correct? Could you also provide your `make TARGET core=CORE ...` line?

MPAS v8.x actually directs you how to investigate what went wrong with building the PIO test programs. For now, you may want to remove the leading '@' character from the lines in the pio_test in the Makefile so you can see how the test programs failed to build (except the comments, don't change the '@#' lines). Please also send some of the output if you try this.

Cheers,
Dylan
Hello Dylan,

Thank you very much for your reply. My MPAS version is 7.0, and my command line is: `make ifort CORE=atmosphere >& mylog`. I have uploaded my Makefile and the compiled log file after removing the '@' before `pio_test`. I hope this can be helpful.

Wish you all the best,
Pan.
 

Attachments

  • Makefile.txt
    27.2 KB · Views: 1
  • mylog.txt
    1.3 KB · Views: 1
Pan,

Thank you that helps. I'm not seeing what I expected in 'mylog.txt', could you try using this 'Makefile_edited.txt'? This file should give me the info that would help determine why your builds aren't succeeding. The edits are:
  • removes the '@' characters as I expected in pio_test
  • also removes the &> /dev/null from the compile commands to give the output.
Cheers,
Dylan
 

Attachments

  • Makefile_edit.txt
    27.2 KB · Views: 3
Pan,

Thank you that helps. I'm not seeing what I expected in 'mylog.txt', could you try using this 'Makefile_edited.txt'? This file should give me the info that would help determine why your builds aren't succeeding. The edits are:
  • removes the '@' characters as I expected in pio_test
  • also removes the &> /dev/null from the compile commands to give the output.
Cheers,
Dylan
Hello Dylan,

I replaced my Makefile with the one you provided, and after addressing the errors based on the error messages, I was able to successfully compile. Thank you so much for your help!

Wish you all the best,
Pan.
 
Top