[mpich-discuss] A error when configuring the mpich2 1.4.1

Bao Kai paeanball at gmail.com
Wed Oct 26 12:08:27 CDT 2011


Dear All,

I have compiled the MPICH2 for several times before, while I get a error
when I tried to compied the mpich2 1.4.1.

I just enter the following command to configure the mpich2

./configure --prefix=/home/baok/local_research 2>&1 | tee c.txt

I got the following message, which I have never met before.

  error: unable to determine matching C type for C++ bool

The the version of GNU compiler I am using is 4.6.0. The size of the bool is
C++ is 1, and the size of unsigned char is 1 too. I do not know why I still
get this error message.

I am very familiar with the shell language, so I can not figure out what is
going wrong.

Attached please find the c.txt file.

I am wondering if anyone can help me in this case.

Thank you very much.

Best Regards,
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111026/b51d63e8/attachment-0001.htm>
-------------- next part --------------
Configuring MPICH2 version 1.4.1p1 with  '--prefix=/home/baok/local_research'
Running on system: Linux kw2100.kaust.edu.sa 2.6.30.9-90.fc11.x86_64 #1 SMP Sat Oct 17 11:25:35 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
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 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 /home/baok/software/mpich2-1.4.1p1/src/mpid/ch3 with 
Executing mpich2prereq in /home/baok/software/mpich2-1.4.1p1/src/mpid/ch3/channels/nemesis
configure: ===== configuring src/mpl =====
configure: executing: /home/baok/software/mpich2-1.4.1p1/src/mpl/configure  '--prefix=/home/baok/local_research' --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-unknown-linux-gnu
checking host system type... x86_64-unknown-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... /mnt/kaustapps/binutils/2.21/el5/bin/ld
checking if the linker (/mnt/kaustapps/binutils/2.21/el5/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mnt/kaustapps/binutils/2.21/el5/bin/nm -B
checking the name lister (/mnt/kaustapps/binutils/2.21/el5/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 /mnt/kaustapps/binutils/2.21/el5/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 /mnt/kaustapps/binutils/2.21/el5/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 (/mnt/kaustapps/binutils/2.21/el5/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: 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
configure: ===== done with src/mpl configure =====
configure: ===== configuring src/openpa =====
configure: executing: /home/baok/software/mpich2-1.4.1p1/src/openpa/configure --with-atomic-primitives=auto_allow_emulation '--prefix=/home/baok/local_research' --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-unknown-linux-gnu
checking host system type... x86_64-unknown-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... /mnt/kaustapps/binutils/2.21/el5/bin/ld
checking if the linker (/mnt/kaustapps/binutils/2.21/el5/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mnt/kaustapps/binutils/2.21/el5/bin/nm -B
checking the name lister (/mnt/kaustapps/binutils/2.21/el5/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 /mnt/kaustapps/binutils/2.21/el5/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 /mnt/kaustapps/binutils/2.21/el5/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 (/mnt/kaustapps/binutils/2.21/el5/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/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 /home/baok/software/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 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... 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/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/lib/../lib64 -L/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/lib64/../lib64 -L/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/4.6.0 -L/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/mnt/kaustapps/INTEL/v11.1.app/icc/11.1/lib/intel64 -L/mnt/kaustapps/INTEL/v11.1.app/icc/11.1/ipp/em64t/lib -L/mnt/kaustapps/INTEL/v11.1.app/icc/11.1/mkl/lib/em64t -L/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/lib -L/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/lib64 -L/mnt/kaustapps/gcc/4.6.0/el5/lib/gcc/x86_64-unknown-linux-gnu/4.6.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 for ifort... no
checking for pgf90... no
checking for pathf90... no
checking for pathf95... no
checking for xlf90... no
checking for xlf95... no
checking for xlf2003... no
checking for f90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran compiler... yes
checking whether f95 accepts -g... yes
checking for extension for Fortran 90 programs... f90
checking whether the Fortran 90 compiler (f95    ) works... yes
checking whether the Fortran 90 compiler (f95    ) is a cross-compiler... no
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 f95 accepts -g... (cached) yes
checking whether the Fortran 90 compiler (f95    ) works... yes
checking whether the Fortran 90 compiler (f95    ) is a cross-compiler... no
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++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking whether the C++ compiler c++ 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 . 6
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
configure: WARNING: Structures containing long doubles may be aligned differently from structures with floats or longs.  MPICH2 does not handle this case automatically and you should avoid assumed extents for structures containing float types.
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... 4
checking for size of Fortran type real... 4
checking for size of Fortran type double precision... 8
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... int
checking for size of MPI_Status... 20
checking for values of Fortran logicals... True is 1 and False is 0
checking for BSD/POSIX style global symbol lister... BSD style,/mnt/kaustapps/binutils/2.21/el5/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 for Fortran 90 integer kind for 8-byte integers... 8
checking if real*8 is supported in Fortran 90... yes
checking size of bool... 0
configure: error: unable to determine matching C type for C++ bool


More information about the mpich-discuss mailing list