[mpich-discuss] issues when writing a simple makefile to build MPI programs

clara clarazhang at gmail.com
Sat Jun 25 10:01:14 CDT 2011


Please see attached, thanks.
Btw, can you tell me which options need be set (the process manager is
selected gforker) if I don't want the generated mpicc to use "-lopa -lmpl
-lrt"?
About the above libraries, opa means "OpenPA",  which is to provide atomics
library. mpl means what? Is it "message passing library"? If so, why can I
only see C files about env, string and mem operations in src/mpl/src?

- Clara

On Sat, Jun 25, 2011 at 10:44 AM, Pavan Balaji <balaji at mcs.anl.gov> wrote:

>
> I don't see the error in the log you sent. Please send us the log files as
> described in the README.
>
>  -- Pavan
>
>
> On 06/25/2011 09:40 AM, clara wrote:
>
>> Attached please find the output info when I ran configure with -m32
>> option. Because I am building 64-bit libraries, the log files cannot be
>> obtained now.
>>
>> - Clara
>>
>> On Sat, Jun 25, 2011 at 10:28 AM, Pavan Balaji <balaji at mcs.anl.gov
>> <mailto:balaji at mcs.anl.gov>> wrote:
>>
>>
>>    Can you send us the log files are described in the README? Please
>>    compress them as they can be huge.
>>
>>      -- Pavan
>>
>>
>>    On 06/25/2011 09:12 AM, clara wrote:
>>
>>        Thanks, but now I get the below error:
>>        configure: error: Could not determine a way to link a Fortran
>>        test program!
>>
>>
>>        On Sat, Jun 25, 2011 at 9:59 AM, Pavan Balaji
>>        <balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>
>>        <mailto:balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>>> wrote:
>>
>>
>>            It's "CFLAGS", not "CFLAG".
>>
>>              -- Pavan
>>
>>
>>            On 06/25/2011 08:42 AM, clara wrote:
>>
>>                I executed the following command:
>>                ./configure --prefix=/mnt/lux/git/pios/xc/**____mpich2-32
>>                --with-pm=gforker
>>                --disable-faster CFLAG=-m32 CXXFLAGS=-m32 FFLAGS=-m32
>>        FCFLAGS=-m32
>>
>>                and got the below errors:
>>                configure: error: ****  Incompatible Fortran and C
>>        Object File
>>                Types!  ****
>>                F77 Object File Type produced by "gfortran -m32 " is : :
>> ELF
>>                32-bit LSB
>>                relocatable, Intel 80386, version 1 (SYSV), not stripped.
>>                  C  Object File Type produced by "gcc    -O2" is : :
>>        ELF 64-bit LSB
>>                relocatable, x86-64, version 1 (SYSV), not stripped.
>>
>>                Is there any simple way setting -m32 in order to build
>>        32-bit
>>                libraries
>>                on 64-bit system?
>>
>>                - Clara
>>
>>                On Fri, Jun 24, 2011 at 11:53 AM, Anthony Chan
>>        <chan at mcs.anl.gov <mailto:chan at mcs.anl.gov>
>>        <mailto:chan at mcs.anl.gov <mailto:chan at mcs.anl.gov>>
>>        <mailto:chan at mcs.anl.gov <mailto:chan at mcs.anl.gov>
>>        <mailto:chan at mcs.anl.gov <mailto:chan at mcs.anl.gov>>>> wrote:
>>
>>
>>                    You need to rebuild mpich2 for 32bit.  Set
>>                    CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS
>>                    to -m32 (assume your system has the 32bit support).
>>
>>                    BTW, your install of 1.2.1p1 mpich2 is old, please
>>        upgrade
>>                if possible
>>                    (the latest stable release is 1.4)
>>
>>                    A.Chan
>>
>>                    ----- Original Message -----
>>         > I think the default installed mpich2 in 64-bit ubuntu is in
>>                x86_64
>>         > mode.
>>         > When I try to compile/link an MPI program in 32-bit mode,
>>                there is an
>>         > error
>>         > below:
>>         > /usr/lib/libmpich.so: file not recognized: File format not
>>                recognized
>>         >
>>         > How can I configure the compile/link flags? Do I need to rebuild
>>         > mpich2 to
>>         > get a 32-bit libraries? Or is there any 32-bit libraries
>>                coexisted
>>         > with
>>         > 64-bit libraries? Thanks.
>>         >
>>         > Below is the output version information of the default installed
>>         > MPICH2:
>>         > MPICH2 Version: 1.2.1p1
>>         > MPICH2 Release date: Unknown, built on Tue Apr 27 15:06:31
>>                UTC 2010
>>         > MPICH2 Device: ch3:nemesis
>>         > MPICH2 configure: --build=x86_64-linux-gnu --prefix=/usr
>>         > --includedir=${prefix}/include --mandir=${prefix}/share/man
>>         > --infodir=${prefix}/share/info --sysconfdir=/etc
>>                --localstatedir=/var
>>         > --libexecdir=${prefix}/lib/___**_mpich2
>> --disable-maintainer-mode
>>         > --disable-dependency-tracking --disable-silent-rules --srcdir=.
>>         > --enable-sharedlibs=gcc --prefix=/usr --enable-f90
>>         > --sysconfdir=/etc/mpich2
>>         > --includedir=/usr/include/____**mpich2
>>        --docdir=/usr/share/doc/mpich2
>>         > MPICH2 CC: gcc -g -O2 -g -Wall -O2 -O2
>>         > MPICH2 CXX: c++ -g -O2 -g -Wall -O2 -O2
>>         > MPICH2 F77: gfortran -g -O2 -O2
>>         > MPICH2 F90: f95 -O2
>>         >
>>         > - Clara
>>         >
>>         > On Fri, Jun 24, 2011 at 12:08 AM, Pavan Balaji
>>        <balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>
>>        <mailto:balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>>
>>        <mailto:balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>
>>        <mailto:balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>>>>
>>
>>
>>         > wrote:
>>         >
>>         > > Clara,
>>         > >
>>         > >
>>         > > On 06/23/2011 10:53 PM, clara wrote:
>>         > >
>>         > >> If I only use shared memory communication among processes on
>> a
>>         > >> single
>>         > >> node, how can I configure the mpich2.1.4 (except
>>                    --with-pm=gforker)
>>         > >> in
>>         > >> order to link libraries as little as possible?
>>         > >>
>>         > >
>>         > > Shared memory communication support comes by default in
>>                MPICH2. You
>>         > > don't
>>         > > need to pass any special configure options; not even
>>         > > --with-pm=gforker.
>>         > > Unfortunately, all libraries are still required to be
>>                linked with
>>         > > even when
>>         > > only shared memory support is needed.
>>         > >
>>         > >  -- Pavan
>>         > >
>>         > >
>>         > > --
>>         > > Pavan Balaji
>>         > > http://www.mcs.anl.gov/~balaji
>>         > >
>>         >
>>         > ______________________________**_____________________
>>         > mpich-discuss mailing list
>>         > mpich-discuss at mcs.anl.gov <mailto:mpich-discuss at mcs.anl.**gov<mpich-discuss at mcs.anl.gov>
>> >
>>        <mailto:mpich-discuss at mcs.anl.**__gov
>>        <mailto:mpich-discuss at mcs.anl.**gov <mpich-discuss at mcs.anl.gov>>>
>>        <mailto:mpich-discuss at mcs.anl.
>>        <mailto:mpich-discuss at mcs.anl.**>____gov
>>        <mailto:mpich-discuss at mcs.anl.**__gov
>>        <mailto:mpich-discuss at mcs.anl.**gov <mpich-discuss at mcs.anl.gov>>>>
>>
>>         > https://lists.mcs.anl.gov/____**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/____mailman/listinfo/mpich-discuss>
>>        <https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>> **>
>>        <https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>>        <https://lists.mcs.anl.gov/**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss>
>> **>__>
>>                    ______________________________**_____________________
>>                    mpich-discuss mailing list
>>        mpich-discuss at mcs.anl.gov <mailto:mpich-discuss at mcs.anl.**gov<mpich-discuss at mcs.anl.gov>
>> >
>>        <mailto:mpich-discuss at mcs.anl.**__gov
>>        <mailto:mpich-discuss at mcs.anl.**gov <mpich-discuss at mcs.anl.gov>>>
>>        <mailto:mpich-discuss at mcs.anl.
>>        <mailto:mpich-discuss at mcs.anl.**>____gov
>>        <mailto:mpich-discuss at mcs.anl.**__gov
>>        <mailto:mpich-discuss at mcs.anl.**gov <mpich-discuss at mcs.anl.gov>>>>
>>
>>        https://lists.mcs.anl.gov/____**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/____mailman/listinfo/mpich-discuss>
>>        <https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>> **>
>>        <https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>>        <https://lists.mcs.anl.gov/**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss>
>> **>__>
>>
>>
>>
>>
>>                ______________________________**_____________________
>>                mpich-discuss mailing list
>>        mpich-discuss at mcs.anl.gov <mailto:mpich-discuss at mcs.anl.**gov<mpich-discuss at mcs.anl.gov>
>> >
>>        <mailto:mpich-discuss at mcs.anl.**__gov
>>        <mailto:mpich-discuss at mcs.anl.**gov <mpich-discuss at mcs.anl.gov>>>
>>        https://lists.mcs.anl.gov/____**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/____mailman/listinfo/mpich-discuss>
>>        <https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>> **>
>>        <https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>>        <https://lists.mcs.anl.gov/**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss>
>> **>__>
>>
>>
>>            --
>>            Pavan Balaji
>>        http://www.mcs.anl.gov/~balaji
>>
>>
>>
>>    --
>>    Pavan Balaji
>>    http://www.mcs.anl.gov/~balaji
>>
>>
>>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110625/60f7da99/attachment-0001.htm>
-------------- next part --------------
Configuring MPICH2 version 1.4 with  '--prefix=/mnt/lux/git/pios/xc/mpich2-32' '--with-pm=gforker' '--disable-faster' 'CFLAGS=-m32' 'CXXFLAGS=-m32' 'FFLAGS=-m32' 'FCFLAGS=-m32' '--enable-nmpi-as-mpi'
Running on system: Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for fgrep... /bin/grep -F
Executing mpich2prereq in /mnt/lux/code/mpi/mpich2/mpich2-1.4/src/mpid/ch3 with 
Executing mpich2prereq in /mnt/lux/code/mpi/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis
configure: ===== configuring src/mpl =====
configure: executing: /mnt/lux/code/mpi/mpich2/mpich2-1.4/src/mpl/configure  '--prefix=/mnt/lux/git/pios/xc/mpich2-32' '--with-pm=gforker' '--disable-faster' 'CFLAGS=-m32  ' 'CXXFLAGS=-m32 ' 'FFLAGS=-m32 ' 'CFLAGS=-m32  ' '--enable-nmpi-as-mpi' --disable-option-checking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_i386) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for an ANSI C-conforming const... yes
checking for C/C++ restrict keyword... __restrict
checking for variable argument list macro functionality... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking valgrind.h usability... no
checking valgrind.h presence... no
checking for valgrind.h... no
checking memcheck.h usability... no
checking memcheck.h presence... no
checking for memcheck.h... no
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking helgrind.h usability... no
checking helgrind.h presence... no
checking for helgrind.h... no
checking valgrind/helgrind.h usability... no
checking valgrind/helgrind.h presence... no
checking for valgrind/helgrind.h... no
checking drd.h usability... no
checking drd.h presence... no
checking for drd.h... no
checking valgrind/drd.h usability... no
checking valgrind/drd.h presence... no
checking for valgrind/drd.h... no
checking whether the valgrind headers are broken or too old... yes
checking for strdup... yes
checking whether strdup needs a declaration... no
checking for snprintf... yes
checking whether snprintf needs a declaration... no
checking for strncmp... yes
checking whether strncmp needs a declaration... no
checking for putenv... yes
checking whether putenv needs a declaration... no
checking whether __attribute__ allowed... yes
checking whether __attribute__((format)) allowed... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating localdefs
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include/mplconfig.h commands
config.status: creating include/mplconfig.h - prefix MPL for include/config.h defines
config.status: include/mplconfig.h is unchanged
configure: ===== done with src/mpl configure =====
configure: ===== configuring src/openpa =====
configure: executing: /mnt/lux/code/mpi/mpich2/mpich2-1.4/src/openpa/configure --with-atomic-primitives=auto_allow_emulation '--prefix=/mnt/lux/git/pios/xc/mpich2-32' '--with-pm=gforker' '--disable-faster' 'CFLAGS=-m32  ' 'CXXFLAGS=-m32 ' 'FFLAGS=-m32 ' 'CFLAGS=-m32  ' '--enable-nmpi-as-mpi' --disable-option-checking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_i386) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether to enable assertions... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking atomic.h usability... no
checking atomic.h presence... no
checking for atomic.h... no
checking intrin.h usability... no
checking intrin.h presence... no
checking for intrin.h... no
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for C/C++ restrict keyword... __restrict
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for pthread_create in -lpthread... yes
checking for pthread_yield... yes
checking if 100 threads can be run at once... yes
checking size of void *... 4
checking size of int... 4
checking whether __attribute__ allowed... yes
checking whether __attribute__((format)) allowed... yes
checking if compiler rejects bogus asm statements... yes
checking for support for gcc x86/x86_64 primitives... yes
checking for support for gcc x86 primitives for pre-Pentium 4... yes
checking for support for gcc ia64 primitives... no
checking for support for gcc PowerPC atomics... no
checking for support for gcc SiCortex atomics... no
checking for support for gcc atomic intrinsics... yes
checking for support for Windows NT atomic intrinsics... no
checking for support for Sun atomic operations library... no
checking whether to enable strict fairness checks... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating openpa.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing src/opa_config.h commands
config.status: creating src/opa_config.h - prefix OPA for src/config.h defines
configure: ===== done with src/openpa configure =====
sourcing /mnt/lux/code/mpi/mpich2/mpich2-1.4/src/pm/gforker/mpich2prereq
checking whether the compiler defines __func__... yes
checking whether the compiler defines __FUNC__... no
checking whether the compiler sets __FUNCTION__... yes
checking whether C compiler accepts option -O2... yes
checking whether C compiler option -O2 works with an invalid prototype program... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking for type of weak symbol alias support... pragma weak
checking whether __attribute__ ((weak)) allowed... yes
checking whether __attribute__ ((weak_import)) allowed... yes
checking whether __attribute__((weak,alias(...))) allowed... no
checking for multiple weak symbol support... yes
checking for ifort... no
checking for pgf77... no
checking for af77... no
checking for xlf... no
checking for frt... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for fort... no
checking for ifc... no
checking for efc... no
checking for ftn... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking whether Fortran 77 compiler accepts option -O2... no
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/32 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../../../lib32 -L/lib/../../lib32 -L/usr/lib/../../lib32 -L/usr/lib/x86_64-linux-gnu/../../lib32 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. -L/usr/lib/x86_64-linux-gnu -lgfortran -lm /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/libgfortran.a
checking whether gfortran accepts the FLIBS found by autoconf... no
checking for valid entries in FLIBS... 
checking whether gcc links with FLIBS found by autoconf... yes
checking whether Fortran 77 and C objects are compatible... no
checking for file... file
checking for linker for Fortran main program... configure: error: Could not determine a way to link a Fortran test program!


More information about the mpich-discuss mailing list