Skip to content

Linking errors in MALI build on Perlmutter #946

@xylar

Description

@xylar

With both gnu and gnugpu, I'm seeing linking errors on Perlmutter when I try to build with the branch from #944:

ftn -O3 -m64  -fopenmp -o landice_model /global/homes/x/xylar/compass/switch-to-mache-deploy/MALI-Dev/components/mpas-albany-landice/../mpas-framework/src/driver/*.o -L/global/homes/x/xylar/compass/switch-to-mache-deploy/MALI-Dev/components/mpas-albany-landice/../mpas-framework/src -Lsrc -ldycore -lops -lframework -L/pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib -lpiof -lpioc -L/opt/cray/pe/netcdf-hdf5parallel/4.9.2.1/gnu/12.3/lib -lnetcdff -L/opt/cray/pe/netcdf-hdf5parallel/4.9.2.1/gnu/12.3/lib -lnetcdff -lnetcdf -L/opt/cray/pe/parallel-netcdf/1.12.3.19/gnu/12.3/lib -lpnetcdf -lstdc++ -I./external/esmf_time_f90 -L/global/homes/x/xylar/compass/switch-to-mache-deploy/MALI-Dev/components/mpas-albany-landice/../mpas-framework/src/external/esmf_time_f90 -lesmf_time
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_set_parameters':
Interface_velocity_solver.cpp:(.text+0x1b51): undefined reference to `velocity_solver_set_physical_parameters__(double const&, double const&, double const&, double const&, double const&, double const&, double const&, bool const&, double const&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_finalize_':
Interface_velocity_solver.cpp:(.text+0x1bc5): undefined reference to `velocity_solver_finalize__()'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_solve_fo_':
Interface_velocity_solver.cpp:(.text+0x55f2): undefined reference to `velocity_solver_solve_fo__(int, int, int, bool, bool, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, double, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&, int&, double const&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_extrude_3d_grid_':
Interface_velocity_solver.cpp:(.text+0x724a): undefined reference to `velocity_solver_extrude_3d_grid__(int, int, int, int, int, int, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, std::vector<double, std::allocator<double> > const&, std::vector<int, std::allocator<int> > const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, std::vector<bool, std::allocator<bool> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_compute_2d_grid_':
Interface_velocity_solver.cpp:(.text+0xf059): undefined reference to `velocity_solver_compute_2d_grid__(int)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_init_mpi_':
Interface_velocity_solver.cpp:(.text+0x1a93): undefined reference to `velocity_solver_init_mpi__(int)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: src/libdycore.a(Interface_velocity_solver.o): in function `velocity_solver_export_fo_velocity_':
Interface_velocity_solver.cpp:(.text+0x1bb7): undefined reference to `velocity_solver_export_fo_velocity__(int)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_inq_file.F90.o): in function `__spio_inq_file_MOD_pio_inquire_fh':
spio_inq_file.F90:(.text+0x487): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_inq_file.F90.o): in function `__spio_inq_file_MOD_pio_inq_unlimdim_fh':
spio_inq_file.F90:(.text+0x4de): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_inq_att.F90.o): in function `__spio_inq_att_MOD_pio_inq_att_fh_vid_offlen':
spio_inq_att.F90:(.text+0x31a): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_inq_att.F90.o): in function `__spio_inq_att_MOD_pio_inq_attlen_fh_varid_attid_offlen':
spio_inq_att.F90:(.text+0x8cf): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_inq_att.F90.o): in function `__spio_inq_att_MOD_pio_inq_atttype_fh_vid':
spio_inq_att.F90:(.text+0xf1c): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_inq_att.F90.o):spio_inq_att.F90:(.text+0x15c4): more undefined references to `PIOc_get_iosystem' follow
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_err.F90.o): in function `__spio_err_MOD_pio_file_warn':
spio_err.F90:(.text+0x58a): undefined reference to `PIOc_warn'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_err.F90.o): in function `__spio_err_MOD_pio_iosys_warn':
spio_err.F90:(.text+0x6aa): undefined reference to `PIOc_warn'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_err.F90.o): in function `__spio_err_MOD_pio_file_error':
spio_err.F90:(.text+0xa17): undefined reference to `PIOc_error'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_err.F90.o): in function `__spio_err_MOD_pio_iosys_error':
spio_err.F90:(.text+0xb07): undefined reference to `PIOc_error'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_init.F90.o): in function `__spio_init_MOD_pio_init_intercomm':
spio_init.F90:(.text+0x7dc): undefined reference to `PIOc_Init_Intercomm_from_F90'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_get_att.F90.o): in function `__spio_get_att_MOD_pio_get_att_fh_vid_1d_double':
spio_get_att.F90:(.text+0xd02): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_get_att.F90.o): in function `__spio_get_att_MOD_pio_get_att_fh_vid_0d_double':
spio_get_att.F90:(.text+0xe41): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_get_att.F90.o): in function `__spio_get_att_MOD_pio_get_att_fh_vid_1d_real':
spio_get_att.F90:(.text+0xf42): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_get_att.F90.o): in function `__spio_get_att_MOD_pio_get_att_fh_vid_0d_real':
spio_get_att.F90:(.text+0x1081): undefined reference to `PIOc_get_iosystem'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: /pscratch/sd/x/xylar/spack_test/dev_compass_2.0.0/var/spack/environments/compass_gnu_mpich/.spack-env/view/lib/libpiof.a(spio_get_att.F90.o): in function `__spio_get_att_MOD_pio_get_att_fh_vid_1d_int':

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions