mpip / pfft

Parallel fast Fourier transforms
GNU General Public License v3.0
54 stars 23 forks source link

Fails to find -lfftw3_mpi because of undefined references ompi_xx #35

Closed yurivict closed 5 years ago

yurivict commented 5 years ago

On FreeBSD I am getting:

configure:20297: checking for fftw_mpi_init in -lfftw3_mpi
configure:20330: cc -o conftest -O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fno-omit-frame-pointer -isystem /usr/local/include   -fstack-protector-strong -L/usr/local/lib   conftest.c -lfftw3_mpi  -lfftw3 -lm -lmpi  >&5
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_sum
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_comm_null
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_unsigned
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to MPI_Comm_f2c
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_land
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_unsigned_long
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_lor
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_char
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_int
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_double
ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_max
cc: error: linker command failed with exit code 1 (use -v to see invocation)
mpip commented 5 years ago

Looks like linker fails because of missing MPI symbols. Is the path to libmpi correctly set? Did you ever compile a MPI program on this machine? Did you try to compile a FFTW program with MPI? If yes, the used paths would be interesting.

yuri@FreeBSD notifications@github.com schrieb am Sa., 18. Mai 2019, 19:22:

On FreeBSD I am getting:

configure:20297: checking for fftw_mpi_init in -lfftw3_mpi configure:20330: cc -o conftest -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer -isystem /usr/local/include -fstack-protector-strong -L/usr/local/lib conftest.c -lfftw3_mpi -lfftw3 -lm -lmpi >&5 ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_sum ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_comm_null ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_unsigned ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to MPI_Comm_f2c ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_land ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_unsigned_long ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_lor ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_char ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_int ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_double ld: error: /usr/local/lib/libfftw3_mpi.so: undefined reference to ompi_mpi_op_max cc: error: linker command failed with exit code 1 (use -v to see invocation)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mpip/pfft/issues/35?email_source=notifications&email_token=AA66KQVOB4FCKRCDUUVVPHLPWA3OTA5CNFSM4HN2W522YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURMV7A, or mute the thread https://github.com/notifications/unsubscribe-auth/AA66KQQJ6LHAENBENPQEPD3PWA3OTANCNFSM4HN2W52Q .

yurivict commented 5 years ago

This looks like a bug in fftw3 package. I reported it there. Sorry for the disturbance!