Skip to content

PIO version check fails with PGI 18.10 compiler #207

Closed

Description

@mgduda

The check in the top-level Makefile for a working PIO library fails with the PGI 18.10 compiler, apparently because the source files need to be specified at the beginning of the compiler's command-line arguments.

As-is, we get the following error (for what should be a valid PIO2 library):

bash-4.2$ mpif90  -I/glade/work/duda/pio-2.3.1-pgi18.10/include -I/glade/work/duda/libs-pgi18.10-skylake/include -I/glade/work/duda/libs-pgi18.10-skylake/include -I/glade/work/duda/libs-pgi18.10-skylake/include -O3 -byteswapio -Mfree -O3 -L/glade/work/duda/pio-2.3.1-pgi18.10/lib -lpiof -lpioc -L/glade/work/duda/libs-pgi18.10-skylake/lib -lnetcdff -lnetcdf -L/glade/work/duda/libs-pgi18.10-skylake/lib -lpnetcdf -L/glade/work/duda/libs-pgi18.10-skylake/lib -lhdf5_hl -lhdf5 -ldl -lz -o pio2.out pio2.f90
/glade/scratch/duda/pgf90vUZc-XbvgynC.o: In function `.C1_283':
pio2.f90:(.data+0x4): undefined reference to `pio_'
pio2.f90:(.data+0x1c): undefined reference to `pio_support_'
pio2.f90:(.data+0x2c): undefined reference to `pio_kinds_'
pio2.f90:(.data+0x34): undefined reference to `pio_types_'
pio2.f90:(.data+0x3c): undefined reference to `pionfget_mod_'
pio2.f90:(.data+0x44): undefined reference to `pionfput_mod_'
pio2.f90:(.data+0x4c): undefined reference to `pionfatt_mod_'
pio2.f90:(.data+0x54): undefined reference to `pio_nf_'
pio2.f90:(.data+0x5c): undefined reference to `piodarray_'
pio2.f90:(.data+0x64): undefined reference to `piolib_mod_'

Moving the pio2.f90 argument to the beginning of the compiler arguments seems to resolve the issue:

bash-4.2$ mpif90 pio2.f90 -I/glade/work/duda/pio-2.3.1-pgi18.10/include -I/glade/work/duda/libs-pgi18.10-skylake/include -I/glade/work/duda/libs-pgi18.10-skylake/include -I/glade/work/duda/libs-pgi18.10-skylake/include -O3 -byteswapio -Mfree -O3 -L/glade/work/duda/pio-2.3.1-pgi18.10/lib -lpiof -lpioc -L/glade/work/duda/libs-pgi18.10-skylake/lib -lnetcdff -lnetcdf -L/glade/work/duda/libs-pgi18.10-skylake/lib -lpnetcdf -L/glade/work/duda/libs-pgi18.10-skylake/lib -lhdf5_hl -lhdf5 -ldl -lz -o pio2.out

Activity

  1. mgduda commented on Apr 13, 2019

    @mgduda
    ContributorAuthor

    @MiCurry If you'd like to do some testing with the PGI 18.10 compilers on Casper, you can start an interactive session with execdav -C skylake, then source /glade/work/duda/libs-pgi18.10-skylake/setup (assuming the bash shell).

  2. MiCurry commented on Apr 17, 2019

    @MiCurry
    Contributor

    @mgduda see PR #212.

  3. mgduda commented on Jun 18, 2019

    @mgduda
    ContributorAuthor

    Resolved by PR #212 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions