Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI users] openmpi linking problem
From: Sergii Veremieiev (s.veremieiev_at_[hidden])
Date: 2014-06-09 13:14:25


Dear Sir/Madam,

I'm trying to link a C/FORTRAN code on Cygwin with Open MPI 1.7.5 and GCC
4.8.2:

mpicxx ./lib/Multigrid.o ./lib/GridFE.o ./lib/Data.o ./lib/GridFD.o
./lib/Parameters.o ./lib/MtInt.o ./lib/MtPol.o ./lib/MtDob.o -o
Test_cygwin_openmpi_gcc -L./external/MUMPS/lib -ldmumps_cygwin_openmpi_gcc
-lmumps_common_cygwin_openmpi_gcc -lpord_cygwin_openmpi_gcc
-L./external/ParMETIS -lparmetis_cygwin_openmpi_gcc
-lmetis_cygwin_openmpi_gcc -L./external/SCALAPACK
-lscalapack_cygwin_openmpi_gcc -L./external/BLACS/LIB
-lblacs-0_cygwin_openmpi_gcc -lblacsF77init-0_cygwin_openmpi_gcc
-lblacsCinit-0_cygwin_openmpi_gcc -lblacs-0_cygwin_openmpi_gcc
-L./external/BLAS -lblas_cygwin_openmpi_gcc -lmpi -lgfortran

The following error messages are returned:

./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o): In
function `dmumps_127_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:6068:
undefined reference to `mpi_send_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:6068:(.text+0x1d3):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_send_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:6077:
undefined reference to `mpi_send_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:6077:(.text+0x2b8):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_send_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o): In
function `dmumps_244_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2046:
undefined reference to `mpi_allreduce_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2046:(.text+0xda62):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_allreduce_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o): In
function `dmumps_269_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2123:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2123:(.text+0xdebe):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2126:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2126:(.text+0xdef6):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2129:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2129:(.text+0xdf2e):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2132:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2132:(.text+0xdf66):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2135:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2135:(.text+0xdf9e):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o):/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2160:
more undefined references to `mpi_unpack_' follow
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o): In
function `dmumps_269_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2160:(.text+0xe3ec):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:2176:(.text+0xeb3c):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`mpi_unpack_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o): In
function `dmumps_126_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5747:
undefined reference to `mpi_bcast_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5747:(.text+0x1b0f1):
additional relocation overflows omitted from the output
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5842:
undefined reference to `mpi_probe_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5854:
undefined reference to `mpi_get_count_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5857:
undefined reference to `mpi_recv_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5988:
undefined reference to `mpi_recv_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5997:
undefined reference to `mpi_recv_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5847:
undefined reference to `mpi_get_count_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:5850:
undefined reference to `mpi_recv_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part3.o): In
function `dmumps_f77_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part3.F:6305:
undefined reference to `mpi_bcast_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part1.o): In
function `dmumps_280_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:5345:
undefined reference to `mpi_get_count_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:5356:
undefined reference to `mpi_recv_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part1.o): In
function `dmumps_322_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:4962:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:5144:
undefined reference to `mpi_recv_'
./external/MUMPS/lib/libdmumps_cygwin_openmpi_gcc.a(dmumps_part1.o): In
function `dmumps_264_':
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:4024:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:4026:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:4034:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:4091:
undefined reference to `mpi_unpack_'
/cygdrive/d/Sergey/Research/Codes/Thinfilmsolver/external/MUMPS/src/dmumps_part1.F:4095:
undefined reference to `mpi_unpack_'

Could you please advise me what further libraries should I include on
linking? Thank you.

Best regards,

Sergii