Missing -lpio dependence with 7.0 version

Questions about modifying the MPAS-Atmosphere code, and general discussion of MPAS code structure and development
Post Reply
Carl Ponder
Posts: 15
Joined: Mon Jun 22, 2020 7:55 am

Missing -lpio dependence with 7.0 version

Post by Carl Ponder » Mon Oct 26, 2020 5:49 pm

Building MPAS-A 7.0 with PIO 2.5.2 I get this error

Code: Select all

/usr/bin/ld: cannot find -lpio
I fixed the problem by commenting these lines out of the Makefile:

Code: Select all

    461    ifneq ($(wildcard $(PIO_LIB)/libpio\.*), )
    462            LIBS += -lpio
    463    endif
Thre is no plain "libpio.a" or "libpio.so" in any of the PIO versions I've built. Is there an option in the PIO build for this?

Regardless, I'm guessing that the test here is not formulated correctly.
I don't see the problem with the MPAS-A 6.0 source code, but the Makefile rule is formulated differently than with 7.0.

Carl Ponder
Posts: 15
Joined: Mon Jun 22, 2020 7:55 am

Re: Missing -lpio dependence with 7.0 version

Post by Carl Ponder » Mon Oct 26, 2020 5:49 pm

MPAS-O 7.0 shows the same problem.

mgduda
Posts: 458
Joined: Mon Feb 26, 2018 7:35 pm

Re: Missing -lpio dependence with 7.0 version

Post by mgduda » Mon Oct 26, 2020 6:27 pm

I think PR #707 should address this issue. Could you try merging the 'framework/fix_pio_lib_checks' branch from that PR into your local working branch to see whether that resolves the issue for you?
NCAR/MMM

Post Reply

Return to “Code development”