[mpich-discuss] Compiled with GCC 4.7.0
孔涛
vision.kt at gmail.com
Thu Mar 29 08:22:26 CDT 2012
hello, everyone,
today I compiled my mpich1.4p1 with GCC4.7.0(gcc,g++,gfortran), and it has
error as follows: (details are in the attachment).
can someone tell me how to settle it? thank you !
-------------------------------
.....
.....
checking whether install breaks libraries... no
....
checking for size of Fortran type integer... 0
checking for size of Fortran type real... 0
checking for size of Fortran type double precision... 0
...
configure: WARNING: Unable to determine size of an INTEGER type; using 4
configure: WARNING: Unable to determine size of a DOUBLE PRECISION type;
using 8
configure: WARNING: Unable to determine size of a DOUBLE PRECISION type;
using 8
checking for C type matching Fortran integer... unavailable
checking for size of MPI_Status... 20
checking for values of Fortran logicals... configure: WARNING: Failed to
build/run program to determine Fortran logical values.
checking for BSD/POSIX style global symbol lister... BSD style,/usr/bin/nm
-g -B
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for multiple __attribute__((alias)) support... yes
checking the minimum alignment of Fortran common block of 1 integers... 16
checking the minimum alignment of Fortran common block of 5 integers... 16,
too small! reset to 32
checking if real*8 is supported in Fortran 90... yes
configure: error: Unable to determine Fortran 90 integer kinds for MPI types.
If you do not need Fortran 90, add --disable-fc to the configure options.
---------------------------------
--
*孔涛 Tao Kong*
vision.kt at gmail.com
山东大学数学学院 | School of Maths. Shandong Univ. P.R.C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120329/5a88fa58/attachment-0001.htm>
-------------- next part --------------
Configuring MPICH2 version 1.4.1p1 with '--prefix=/home/kt/.local/bin' 'CC=gcc' 'CXX=g++' 'F77=gfortran' 'FC=gfortran' '--enable-fast' '--build=x86_64-centos-linux' 'build_alias=x86_64-centos-linux'
Running on system: Linux server2 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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-centos-linux-gnu
checking host system type... x86_64-centos-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for fgrep... /bin/grep -F
Executing mpich2prereq in /home/kt/Tools_Ins/mpich2-1.4.1p1/src/mpid/ch3 with
Executing mpich2prereq in /home/kt/Tools_Ins/mpich2-1.4.1p1/src/mpid/ch3/channels/nemesis
configure: ===== configuring src/mpl =====
configure: executing: /home/kt/Tools_Ins/mpich2-1.4.1p1/src/mpl/configure '--prefix=/home/kt/.local/bin' 'CC=gcc' 'CXX=g++' 'F77=gfortran' 'FC=gfortran' '--enable-fast' '--build=x86_64-centos-linux' 'build_alias=x86_64-centos-linux' --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... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-centos-linux-gnu
checking host system type... x86_64-centos-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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... no
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_x86_64) 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: /home/kt/Tools_Ins/mpich2-1.4.1p1/src/openpa/configure --with-atomic-primitives=auto_allow_emulation '--prefix=/home/kt/.local/bin' 'CC=gcc' 'CXX=g++' 'F77=gfortran' 'FC=gfortran' '--enable-fast' '--build=x86_64-centos-linux' 'build_alias=x86_64-centos-linux' --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... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-centos-linux-gnu
checking host system type... x86_64-centos-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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... no
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_x86_64) 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 *... 8
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 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: src/config.h is unchanged
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
config.status: src/opa_config.h is unchanged
configure: ===== done with src/openpa configure =====
sourcing /home/kt/Tools_Ins/mpich2-1.4.1p1/src/pm/hydra/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 whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking whether Fortran 77 compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran... -L/home/kt/.local/lib/gcc/x86_64-centos-linux/4.7.0 -L/home/kt/.local/lib/gcc/x86_64-centos-linux/4.7.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/home/kt/.local/lib/gcc/x86_64-centos-linux/4.7.0/../../.. -lgfortran -lm -lquadmath
checking whether gfortran accepts the FLIBS found by autoconf... yes
checking whether gcc links with FLIBS found by autoconf... yes
checking whether Fortran 77 and C objects are compatible... yes
checking for linker for Fortran main program... Use Fortran to link programs
checking for Fortran 77 name mangling... lower uscore
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for libraries to link Fortran main with C stdio routines... none
checking whether Fortran init will work with C... yes
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for extension for Fortran 90 programs... f90
checking whether the Fortran 90 compiler (gfortran ) works... yes
checking whether the Fortran 90 compiler (gfortran ) is a cross-compiler... yes
checking whether Fortran 90 compiler works with Fortran 77 compiler... yes
checking whether Fortran 77 accepts ! for comments... yes
checking for include directory flag for Fortran... -I
checking for Fortran 77 flag for library directories... -L
checking whether Fortran 77 compiler processes .F files with C preprocessor... yes
checking whether we are using the GNU Fortran compiler... (cached) yes
checking whether gfortran accepts -g... (cached) yes
checking whether the Fortran 90 compiler (gfortran ) works... yes
checking whether the Fortran 90 compiler (gfortran ) is a cross-compiler... yes
checking for Fortran 90 module extension... mod
checking for Fortran 90 module include flag... -I
checking whether Fortran 90 compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking whether Fortran 90 compiler processes .F90 files with C preprocessor... yes
checking what libraries are needed to link Fortran90 programs with C routines that use stdio... none
checking for Fortran 90 compiler vendor... gnu
checking for c++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether the C++ compiler g++ can build an executable... yes
checking whether C++ compiler works with string... yes
checking whether the compiler supports exceptions... yes
checking whether the compiler recognizes bool as a built-in type... yes
checking whether the compiler implements namespaces... yes
checking whether <iostream> available... yes
checking whether the compiler implements the namespace std... yes
checking whether <math> available... no
checking for GNU g++ version... 4 . 7
checking whether C++ compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking for perl... /usr/bin/perl
checking for ar... ar
checking for ranlib... ranlib
checking for killall... killall
checking for a BSD-compatible install... /usr/bin/install -c
checking whether install works... yes
checking whether install breaks libraries... no
checking whether mkdir -p works... yes
checking for make... make
checking whether clock skew breaks make... no
checking whether make supports include... yes
checking whether make allows comments in actions... yes
checking for virtual path format... VPATH
checking whether make sets CFLAGS... yes
checking for bash... /bin/bash
checking whether /bin/bash supports arrays... yes
checking for doctext... false
checking for location of doctext style files... unavailable
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for C/C++ restrict keyword... __restrict
checking for inline... inline
checking whether __attribute__ allowed... yes
checking whether __attribute__((format)) allowed... yes
checking whether byte ordering is bigendian... no
checking whether C compiler allows unaligned doubles... yes
checking whether gcc supports __func__... yes
Using gcc to determine dependencies
checking whether long double is supported... yes
checking whether long long is supported... yes
checking for max C struct integer alignment... eight
checking for max C struct floating point alignment... sixteen
checking for max C struct alignment of structs with doubles... eight
checking for max C struct floating point alignment with long doubles... sixteen
checking if alignment of structs with doubles is based on position... no
checking if alignment of structs with long long ints is based on position... no
checking if double alignment breaks rules, find actual alignment... no
checking for alignment restrictions on pointers... int or better
checking size of char... 1
checking size of unsigned char... 1
checking size of short... 2
checking size of unsigned short... 2
checking size of int... 4
checking size of unsigned int... 4
checking size of long... 8
checking size of unsigned long... 8
checking size of long long... 8
checking size of unsigned long long... 8
checking size of float... 4
checking size of double... 8
checking size of long double... 16
checking size of void *... 8
checking for ANSI C header files... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking size of wchar_t... 4
checking size of float_int... 8
checking size of double_int... 16
checking size of long_int... 16
checking size of short_int... 8
checking size of two_int... 8
checking size of long_double_int... 32
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking inttypes.h usability... yes
checking inttypes.h presence... yes
checking for inttypes.h... yes
checking stdint.h usability... yes
checking stdint.h presence... yes
checking for stdint.h... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes
checking size of _Bool... 1
checking size of float _Complex... 8
checking size of double _Complex... 16
checking size of long double _Complex... 32
checking for _Bool... yes
checking for float _Complex... yes
checking for double _Complex... yes
checking for long double _Complex... yes
checking for size of Fortran type integer... 0
checking for size of Fortran type real... 0
checking for size of Fortran type double precision... 0
checking whether integer*1 is supported... yes
checking whether integer*2 is supported... yes
checking whether integer*4 is supported... yes
checking whether integer*8 is supported... yes
checking whether integer*16 is supported... yes
checking whether real*4 is supported... yes
checking whether real*8 is supported... yes
checking whether real*16 is supported... yes
checking for C type matching Fortran integer... unavailable
checking for size of MPI_Status... 20
checking for values of Fortran logicals... checking for BSD/POSIX style global symbol lister... BSD style,/usr/bin/nm -g -B
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for multiple __attribute__((alias)) support... yes
checking the minimum alignment of Fortran common block of 1 integers... 16
checking the minimum alignment of Fortran common block of 5 integers... 16, too small! reset to 32
checking if real*8 is supported in Fortran 90... yes
More information about the mpich-discuss
mailing list