jabbaqin / p3dfft

Automatically exported from code.google.com/p/p3dfft
GNU General Public License v3.0
0 stars 0 forks source link

configure fails when using gnu fortran compilers #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the source from the p3dfft-f90 branch, although the other configure
branch should yield the same results:

# ./configure --with-fftw="/usr/local" FCFLAGS="-O3" CFLAGS="-DGCC"
LDFLAGS="-lmpi -lmpi_f77 -lmpi_f90" 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable single precision... no
checking whether to enable 1D decomposition... no
checking whether to enable estimation... no
checking whether to enable the emasure algorithm... no
checking whehter to enable the patient algorithm... no
checking whether to enable C convention for processor dimensions... no
checking whether to reverse processor dimensions... yes
checking whether to use MPI_Alltoall instead of MPI_Alltotallv... no
checking whether to enable stride-1 data structures... no
checking whether to override default value of NBL_X... no
checking whether to override the default value of NBL_Y... no
checking whether to use ESSL library... no
checking whether to use FFTW library... yes
checking for mpif90... mpif90
checking for Fortran compiler default output file name... a.out
checking whether the Fortran compiler works... configure: error: cannot run
Fortran compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

configure:2207: $? = 0
configure:2209: mpif90 -v </dev/null >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
configure:2212: $? = 0
configure:2214: mpif90 -V </dev/null >&5
gfortran: '-V' option must have argument
configure:2217: $? = 1
configure:2231: checking for Fortran compiler default output file name
configure:2234: mpif90 -O3 -lmpi -lmpi_f77 -lmpi_f90  conftest.f  >&5
configure:2237: $? = 0
configure:2283: result: a.out
configure:2288: checking whether the Fortran compiler works
configure:2294: ./a.out
./a.out: error while loading shared libraries: libmpi.so.0: cannot open
shared object file: No such file or directory
configure:2297: $? = 127
configure:2306: error: cannot run Fortran compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

My libmpi is in the /usr/local[/lib] directory:
# locate libmpi.so.0
/usr/local/lib/libmpi.so.0
/usr/local/lib/libmpi.so.0.0.1

If export LDPRELOAD with the full path to that file, it will continue with
that error but for a different file.

Original issue reported on code.google.com by dan.djc...@gmail.com on 7 May 2010 at 2:11

GoogleCodeExporter commented 9 years ago
This is something I've been working on the side (testing compatibility with 
different 
compilers). You can see my progress on the branch p3dfft-dist

Original comment by masta.p...@gmail.com on 7 May 2010 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by dan.djc...@gmail.com on 7 May 2010 at 10:17

GoogleCodeExporter commented 9 years ago
The following arguments should compile P3DFFT.. I will amend the wiki entry 
accordingly:

./configure --enable-gcc --with-fftw="$FFTWHOME" LDFLAGS="-lmpi_f90 -lmpi_f77" 

Original comment by d4p...@ucsd.edu on 2 Jun 2010 at 2:03