[mpich-discuss] mpich2 1.3.1 compilation error

Grant Tang grant.tang at gmail.com
Wed Dec 1 12:55:23 CST 2010


Darius:

Thanks for your reply.

I used the default configuration.
./configure
make

the out put of uname -a is:
Linux sp 2.6.11.11 #1 SMP Wed Jun 22 11:23:25 EDT 2005 x86_64 x86_64 x86_64
GNU/Linux

the gcc version is:
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
I suspect the gcc is the problem here. Since I successfully compiled the
same package on another cluster(gcc version 4.1.2 20080704 (Red Hat
4.1.2-48), 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 05:04:09 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux).

The content of src/openpa/config.log is:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by OpenPA configure 1.0.2, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ /home/gtang/tmp/mpich2-1.3.1/src/openpa/configure
--with-atomic-primitives=auto_allow_emulation --prefix=/usr/local/mpich2
--disable-option-checking

## --------- ##
## Platform. ##
## --------- ##

hostname = sp
uname -m = x86_64
uname -r = 2.6.11.11
uname -s = Linux
uname -v = #1 SMP Wed Jun 22 11:23:25 EDT 2005

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/gtang/EMAN/bin
PATH: /home/gtang/EMAN2/bin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /opt/c3-4/
PATH: /usr/NX/bin
PATH: /usr/local/pbs/bin
PATH: /usr/local/pbs/sbin
PATH: /usr/local/maui/bin
PATH: /home/gtang/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2093: checking for a BSD-compatible install
configure:2161: result: /usr/bin/install -c
configure:2172: checking whether build environment is sane
configure:2232: result: yes
configure:2373: checking for a thread-safe mkdir -p
configure:2412: result: /bin/mkdir -p
configure:2425: checking for gawk
configure:2441: found /bin/gawk
configure:2452: result: gawk
configure:2463: checking whether make sets $(MAKE)
configure:2485: result: yes
configure:2603: checking build system type
configure:2621: result: x86_64-unknown-linux-gnu
configure:2643: checking host system type
configure:2658: result: x86_64-unknown-linux-gnu
configure:2692: checking for style of include used by make
configure:2720: result: GNU
configure:2790: checking for gcc
configure:2806: found /usr/bin/gcc
configure:2817: result: gcc
configure:3049: checking for C compiler version
configure:3057: gcc --version >&5
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3061: $? = 0
configure:3068: gcc -v >&5
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
configure:3072: $? = 0
configure:3079: gcc -V >&5
gcc: `-V' option must have argument
configure:3083: $? = 1
configure:3106: checking for C compiler default output file name
configure:3128: gcc      conftest.c  >&5
configure:3132: $? = 0
configure:3170: result: a.out
configure:3189: checking whether the C compiler works
configure:3199: ./a.out
configure:3203: $? = 0
configure:3222: result: yes
configure:3229: checking whether we are cross compiling
configure:3231: result: no
configure:3234: checking for suffix of executables
configure:3241: gcc -o conftest      conftest.c  >&5
configure:3245: $? = 0
configure:3271: result:
configure:3277: checking for suffix of object files
configure:3303: gcc -c     conftest.c >&5
configure:3307: $? = 0
configure:3332: result: o
configure:3336: checking whether we are using the GNU C compiler
configure:3365: gcc -c     conftest.c >&5
configure:3372: $? = 0
configure:3389: result: yes
configure:3398: checking whether gcc accepts -g
configure:3428: gcc -c -g  conftest.c >&5
configure:3435: $? = 0
configure:3536: result: yes
configure:3553: checking for gcc option to accept ISO C89
configure:3627: gcc  -c     conftest.c >&5
configure:3634: $? = 0
configure:3657: result: none needed
configure:3677: checking dependency style of gcc
configure:3787: result: gcc3
configure:3802: checking for a sed that does not truncate output
configure:3868: result: /bin/sed
configure:3886: checking for grep that handles long lines and -e
configure:3946: result: /bin/grep
configure:3951: checking for egrep
configure:4015: result: /bin/grep -E
configure:4020: checking for fgrep
configure:4084: result: /bin/grep -F
configure:4119: checking for ld used by gcc
configure:4186: result: /usr/bin/ld
configure:4195: checking if the linker (/usr/bin/ld) is GNU ld
configure:4210: result: yes
configure:4222: checking for BSD- or MS-compatible name lister (nm)
configure:4271: result: /usr/bin/nm -B
configure:4389: checking the name lister (/usr/bin/nm -B) interface
configure:4396: gcc -c     conftest.c >&5
configure:4399: /usr/bin/nm -B "conftest.o"
configure:4402: output
0000000000000000 B some_variable
configure:4409: result: BSD nm
configure:4412: checking whether ln -s works
configure:4416: result: yes
configure:4424: checking the maximum length of command line arguments
configure:4544: result: 98304
configure:4561: checking whether the shell understands some XSI constructs
configure:4571: result: yes
configure:4575: checking whether the shell understands "+="
configure:4581: result: no
configure:4616: checking for /usr/bin/ld option to reload object files
configure:4623: result: -r
configure:4692: checking for objdump
configure:4708: found /usr/bin/objdump
configure:4719: result: objdump
configure:4751: checking how to recognize dependent libraries
configure:4947: result: pass_all
configure:5007: checking for ar
configure:5023: found /usr/bin/ar
configure:5034: result: ar
configure:5112: checking for strip
configure:5128: found /usr/bin/strip
configure:5139: result: strip
configure:5211: checking for ranlib
configure:5227: found /usr/bin/ranlib
configure:5238: result: ranlib
configure:5328: checking command to parse /usr/bin/nm -B output from gcc
object
configure:5446: gcc -c     conftest.c >&5
configure:5449: $? = 0
configure:5453: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[
 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1
\2 \2/p' \> conftest.nm
configure:5456: $? = 0
configure:5510: gcc -o conftest      conftest.c conftstm.o >&5
configure:5513: $? = 0
configure:5551: result: ok
configure:5647: gcc -c     conftest.c >&5
configure:5650: $? = 0
configure:6418: checking how to run the C preprocessor
configure:6458: gcc -E  conftest.c
configure:6465: $? = 0
configure:6496: gcc -E  conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:6503: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:6536: result: gcc -E
configure:6565: gcc -E  conftest.c
configure:6572: $? = 0
configure:6603: gcc -E  conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:6610: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:6650: checking for ANSI C header files
configure:6680: gcc -c     conftest.c >&5
configure:6687: $? = 0
configure:6786: gcc -o conftest      conftest.c  >&5
configure:6790: $? = 0
configure:6796: ./conftest
configure:6800: $? = 0
configure:6818: result: yes
configure:6842: checking for sys/types.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for sys/stat.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for stdlib.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for string.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for memory.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for strings.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for inttypes.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for stdint.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6842: checking for unistd.h
configure:6863: gcc -c     conftest.c >&5
configure:6870: $? = 0
configure:6887: result: yes
configure:6905: checking for dlfcn.h
configure:6926: gcc -c     conftest.c >&5
configure:6933: $? = 0
configure:6950: result: yes
configure:7135: checking for objdir
configure:7150: result: .libs
configure:7446: checking if gcc supports -fno-rtti -fno-exceptions
configure:7464: gcc -c     -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
not for C
configure:7468: $? = 0
configure:7481: result: no
configure:7501: checking for gcc option to produce PIC
configure:7773: result: -fPIC -DPIC
configure:7785: checking if gcc PIC flag -fPIC -DPIC works
configure:7803: gcc -c     -fPIC -DPIC -DPIC conftest.c >&5
configure:7807: $? = 0
configure:7820: result: yes
configure:7844: checking if gcc static flag -static works
configure:7872: result: yes
configure:7887: checking if gcc supports -c -o file.o
configure:7908: gcc -c     -o out/conftest2.o conftest.c >&5
configure:7912: $? = 0
configure:7934: result: yes
configure:7942: checking if gcc supports -c -o file.o
configure:7989: result: yes
configure:8022: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64)
supports shared libraries
configure:9096: result: yes
configure:9335: checking dynamic linker characteristics
configure:9778: gcc -o conftest      -Wl,-rpath -Wl,/foo conftest.c  >&5
configure:9785: $? = 0
configure:10018: result: GNU/Linux ld.so
configure:10120: checking how to hardcode library paths into programs
configure:10145: result: immediate
configure:10978: checking whether stripping libraries is possible
configure:10983: result: yes
configure:11018: checking if libtool supports shared libraries
configure:11020: result: yes
configure:11023: checking whether to build shared libraries
configure:11044: result: no
configure:11047: checking whether to build static libraries
configure:11051: result: yes
configure:11167: checking for gcc
configure:11194: result: gcc
configure:11426: checking for C compiler version
configure:11434: gcc --version >&5
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:11438: $? = 0
configure:11445: gcc -v >&5
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
configure:11449: $? = 0
configure:11456: gcc -V >&5
gcc: `-V' option must have argument
configure:11460: $? = 1
configure:11463: checking whether we are using the GNU C compiler
configure:11516: result: yes
configure:11525: checking whether gcc accepts -g
configure:11663: result: yes
configure:11680: checking for gcc option to accept ISO C89
configure:11784: result: none needed
configure:11804: checking dependency style of gcc
configure:11914: result: gcc3
configure:11931: checking whether to enable assertions
configure:11943: result: yes
configure:11970: checking pthread.h usability
configure:11987: gcc -c     conftest.c >&5
configure:11994: $? = 0
configure:12008: result: yes
configure:12012: checking pthread.h presence
configure:12027: gcc -E  conftest.c
configure:12034: $? = 0
configure:12048: result: yes
configure:12081: checking for pthread.h
configure:12090: result: yes
configure:11970: checking atomic.h usability
configure:11987: gcc -c     conftest.c >&5
conftest.c:56:20: atomic.h: No such file or directory
configure:11994: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <atomic.h>
configure:12008: result: no
configure:12012: checking atomic.h presence
configure:12027: gcc -E  conftest.c
conftest.c:23:20: atomic.h: No such file or directory
configure:12034: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| /* end confdefs.h.  */
| #include <atomic.h>
configure:12048: result: no
configure:12081: checking for atomic.h
configure:12090: result: no
configure:11970: checking intrin.h usability
configure:11987: gcc -c     conftest.c >&5
conftest.c:56:20: intrin.h: No such file or directory
configure:11994: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <intrin.h>
configure:12008: result: no
configure:12012: checking intrin.h presence
configure:12027: gcc -E  conftest.c
conftest.c:23:20: intrin.h: No such file or directory
configure:12034: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| /* end confdefs.h.  */
| #include <intrin.h>
configure:12048: result: no
configure:12081: checking for intrin.h
configure:12090: result: no
configure:11959: checking for inttypes.h
configure:11966: result: yes
configure:11959: checking for stdint.h
configure:11966: result: yes
configure:11970: checking stddef.h usability
configure:11987: gcc -c     conftest.c >&5
configure:11994: $? = 0
configure:12008: result: yes
configure:12012: checking stddef.h presence
configure:12027: gcc -E  conftest.c
configure:12034: $? = 0
configure:12048: result: yes
configure:12081: checking for stddef.h
configure:12090: result: yes
configure:12106: checking for C/C++ restrict keyword
configure:12141: gcc -c     conftest.c >&5
configure:12148: $? = 0
configure:12166: result: __restrict
configure:12182: checking for inline
configure:12208: gcc -c     conftest.c >&5
configure:12215: $? = 0
configure:12233: result: inline
configure:12255: checking for an ANSI C-conforming const
configure:12330: gcc -c     conftest.c >&5
configure:12337: $? = 0
configure:12352: result: yes
configure:12364: checking for pthread_create in -lpthread
configure:12399: gcc -o conftest      conftest.c -lpthread   >&5
configure:12406: $? = 0
configure:12427: result: yes
configure:12443: checking for pthread_yield
configure:12499: gcc -o conftest      conftest.c -lpthread  >&5
configure:12506: $? = 0
configure:12528: result: yes
configure:12782: checking if 100 threads can be run at once
configure:12830: gcc -o conftest      conftest.c -lpthread  >&5
configure:12834: $? = 0
configure:12840: ./conftest
configure:12844: $? = 0
configure:12846: result: yes
configure:12963: checking size of void *
configure:13268: gcc -o conftest      conftest.c -lpthread  >&5
configure:13272: $? = 0
configure:13278: ./conftest
configure:13282: $? = 0
configure:13308: result: 8
configure:13322: checking size of int
configure:13627: gcc -o conftest      conftest.c -lpthread  >&5
configure:13631: $? = 0
configure:13637: ./conftest
configure:13641: $? = 0
configure:13667: result: 4
configure:13679: checking whether __attribute__ allowed
configure:13706: gcc -c     conftest.c >&5
configure:13713: $? = 0
configure:13728: result: yes
configure:13730: checking whether __attribute__((format)) allowed
configure:13757: gcc -c     conftest.c >&5
configure:13764: $? = 0
configure:13779: result: yes
configure:13790: checking if compiler rejects bogus asm statements
configure:13815: gcc -o conftest      conftest.c -lpthread  >&5
/tmp/ccgfr2pJ.s: Assembler messages:
/tmp/ccgfr2pJ.s:12: Error: invalid character '_' in mnemonic
configure:13822: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|     __asm__ __volatile__ ("ILLEGAL_ASM_STMT");
|
|   ;
|   return 0;
| }
configure:13839: result: yes
configure:13899: checking for support for gcc x86/x86_64 primitives
configure:14066: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
configure:14070: $? = 0
configure:14076: ./conftest
configure:14080: $? = 0
configure:14088: result: yes
configure:14116: checking for support for gcc x86 primitives for pre-Pentium
4
configure:14283: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
configure:14287: $? = 0
configure:14293: ./conftest
configure:14297: $? = 0
configure:14305: result: yes
configure:14332: checking for support for gcc ia64 primitives
configure:14398: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
/tmp/cc1J6dGk.s: Assembler messages:
/tmp/cc1J6dGk.s:54: Error: no such instruction: `mf'
/tmp/cc1J6dGk.s:55: Error: no such instruction: `mf'
/tmp/cc1J6dGk.s:56: Error: no such instruction: `mf'
/tmp/cc1J6dGk.s:76: Error: no such instruction: `xchg8 %eax=[%rdx],%eax'
/tmp/cc1J6dGk.s:101: Error: no such instruction: `zxt4 (%rsi)=(%rsi)'
/tmp/cc1J6dGk.s:101: Error: invalid character '=' in operand 1
/tmp/cc1J6dGk.s:101: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:206: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:216: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:226: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:236: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:246: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:256: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:266: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:276: Error: invalid character '.' in mnemonic
/tmp/cc1J6dGk.s:318: Error: invalid character '.' in mnemonic
configure:14405: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| #define HAVE_GCC_X86_32_64 1
| #define HAVE_GCC_X86_32_64_P3 1
| /* end confdefs.h.  */
|
| #define OPA_SIZEOF_INT SIZEOF_INT
| #define OPA_SIZEOF_VOID_P SIZEOF_VOID_P
| #ifndef _opa_inline
| #define _opa_inline inline
| #endif
| #ifndef _opa_restrict
| #define _opa_restrict restrict
| #endif
| #ifndef _opa_const
| #define _opa_const const
| #endif
| #ifdef HAVE_GCC_ATTRIBUTE
| #define OPA_HAVE_GCC_ATTRIBUTE 1
| #endif
| #include "opa_util.h" /* for OPA_ATTRIBUTE and friends */
| #include "primitives/opa_gcc_ia64.h"
|
| int
| main ()
| {
|
|     OPA_int_t a, b;
|     int c;
|
|     OPA_store_int(&a, 0);
|     OPA_store_int(&b, 1);
|     c = OPA_load_int(&a);
|
|     OPA_add_int(&a, 10);
|     OPA_incr_int(&a);
|     OPA_decr_int(&a);
|
|     c = OPA_decr_and_test_int(&a);
|     c = OPA_fetch_and_add_int(&a, 10);
|     c = OPA_fetch_and_incr_int(&a);
|     c = OPA_fetch_and_decr_int(&a);
|
|     c = OPA_cas_int(&a, 10, 11);
|     c = OPA_swap_int(&a, OPA_load_int(&b));
|
|     OPA_write_barrier();
|     OPA_read_barrier();
|     OPA_read_write_barrier();
|
|   ;
|   return 0;
| }
|
configure:14426: result: no
configure:14443: checking for support for gcc PowerPC atomics
configure:14509: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
/tmp/ccdu5EKx.s: Assembler messages:
/tmp/ccdu5EKx.s:54: Error: no such instruction: `sync'
/tmp/ccdu5EKx.s:55: Error: no such instruction: `sync'
/tmp/ccdu5EKx.s:56: Error: no such instruction: `sync'
/tmp/ccdu5EKx.s:104: Error: invalid character '.' in mnemonic
/tmp/ccdu5EKx.s:105: Error: no such instruction: `beq 1f'
/tmp/ccdu5EKx.s:106: Error: no such instruction: `li %eax,0'
/tmp/ccdu5EKx.s:126: Error: no such instruction: `lwarx %eax,0,%rax'
configure:14516: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| #define HAVE_GCC_X86_32_64 1
| #define HAVE_GCC_X86_32_64_P3 1
| /* end confdefs.h.  */
|
| #define OPA_SIZEOF_INT SIZEOF_INT
| #define OPA_SIZEOF_VOID_P SIZEOF_VOID_P
| #ifndef _opa_inline
| #define _opa_inline inline
| #endif
| #ifndef _opa_restrict
| #define _opa_restrict restrict
| #endif
| #ifndef _opa_const
| #define _opa_const const
| #endif
| #ifdef HAVE_GCC_ATTRIBUTE
| #define OPA_HAVE_GCC_ATTRIBUTE 1
| #endif
| #include "opa_util.h" /* for OPA_ATTRIBUTE and friends */
| #include "primitives/opa_gcc_ppc.h"
|
| int
| main ()
| {
|
|     OPA_int_t a, b;
|     int c;
|
|     OPA_store_int(&a, 0);
|     OPA_store_int(&b, 1);
|     c = OPA_load_int(&a);
|
|     OPA_add_int(&a, 10);
|     OPA_incr_int(&a);
|     OPA_decr_int(&a);
|
|     c = OPA_decr_and_test_int(&a);
|     c = OPA_fetch_and_add_int(&a, 10);
|     c = OPA_fetch_and_incr_int(&a);
|     c = OPA_fetch_and_decr_int(&a);
|
|     c = OPA_cas_int(&a, 10, 11);
|     c = OPA_swap_int(&a, OPA_load_int(&b));
|
|     OPA_write_barrier();
|     OPA_read_barrier();
|     OPA_read_write_barrier();
|
|   ;
|   return 0;
| }
|
configure:14537: result: no
configure:14554: checking for support for gcc SiCortex atomics
configure:14620: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
/tmp/ccTlqb7L.s: Assembler messages:
/tmp/ccTlqb7L.s:54: Error: no such instruction: `sync'
/tmp/ccTlqb7L.s:55: Error: no such instruction: `sync'
/tmp/ccTlqb7L.s:56: Error: no such instruction: `sync'
/tmp/ccTlqb7L.s:95: Error: expected comma after "mips3"
/tmp/ccTlqb7L.s:96: Error: expected comma after "noreorder"
/tmp/ccTlqb7L.s:97: Error: no such instruction: `ll %rbx,(%rdx)'
/tmp/ccTlqb7L.s:98: Error: no such instruction: `move %rcx,%eax'
/tmp/ccTlqb7L.s:99: Error: no such instruction: `sc %rcx,(%rdx)'
/tmp/ccTlqb7L.s:100: Error: no such instruction: `beqz %rcx,1b'
/tmp/ccTlqb7L.s:102: Error: expected comma after "reorder"
/tmp/ccTlqb7L.s:103: Error: expected comma after "mips0"
/tmp/ccTlqb7L.s:152: Error: expected comma after "mips3"
/tmp/ccTlqb7L.s:153: Error: expected comma after "noreorder"
/tmp/ccTlqb7L.s:154: Error: no such instruction: `ll %rbx,(%rcx)'
/tmp/ccTlqb7L.s:155: Error: no such instruction: `bne %rbx,%eax,1f'
/tmp/ccTlqb7L.s:156: Error: no such instruction: `move %rsi,%edx'
/tmp/ccTlqb7L.s:157: Error: no such instruction: `sc %rsi,(%rcx)'
/tmp/ccTlqb7L.s:158: Error: no such instruction: `beqz %rsi,1b'
/tmp/ccTlqb7L.s:160: Error: expected comma after "reorder"
/tmp/ccTlqb7L.s:162: Error: expected comma after "mips0"
/tmp/ccTlqb7L.s:207: Error: expected comma after "mips3"
/tmp/ccTlqb7L.s:208: Error: expected comma after "noreorder"
/tmp/ccTlqb7L.s:209: Error: no such instruction: `ll %rbx,(%rdx)'
/tmp/ccTlqb7L.s:210: Error: no such instruction: `addu %rcx,%rbx,%eax'
/tmp/ccTlqb7L.s:211: Error: no such instruction: `sc %rcx,(%rdx)'
/tmp/ccTlqb7L.s:212: Error: no such instruction: `beqz %rcx,1b'
/tmp/ccTlqb7L.s:214: Error: expected comma after "reorder"
/tmp/ccTlqb7L.s:215: Error: expected comma after "mips0"
configure:14627: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| #define HAVE_GCC_X86_32_64 1
| #define HAVE_GCC_X86_32_64_P3 1
| /* end confdefs.h.  */
|
| #define OPA_SIZEOF_INT SIZEOF_INT
| #define OPA_SIZEOF_VOID_P SIZEOF_VOID_P
| #ifndef _opa_inline
| #define _opa_inline inline
| #endif
| #ifndef _opa_restrict
| #define _opa_restrict restrict
| #endif
| #ifndef _opa_const
| #define _opa_const const
| #endif
| #ifdef HAVE_GCC_ATTRIBUTE
| #define OPA_HAVE_GCC_ATTRIBUTE 1
| #endif
| #include "opa_util.h" /* for OPA_ATTRIBUTE and friends */
| #include "primitives/opa_gcc_sicortex.h"
|
| int
| main ()
| {
|
|     OPA_int_t a, b;
|     int c;
|
|     OPA_store_int(&a, 0);
|     OPA_store_int(&b, 1);
|     c = OPA_load_int(&a);
|
|     OPA_add_int(&a, 10);
|     OPA_incr_int(&a);
|     OPA_decr_int(&a);
|
|     c = OPA_decr_and_test_int(&a);
|     c = OPA_fetch_and_add_int(&a, 10);
|     c = OPA_fetch_and_incr_int(&a);
|     c = OPA_fetch_and_decr_int(&a);
|
|     c = OPA_cas_int(&a, 10, 11);
|     c = OPA_swap_int(&a, OPA_load_int(&b));
|
|     OPA_write_barrier();
|     OPA_read_barrier();
|     OPA_read_write_barrier();
|
|   ;
|   return 0;
| }
|
configure:14648: result: no
configure:14667: checking for support for gcc atomic intrinsics
configure:14733: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
In file included from conftest.c:51:
./src/primitives/opa_gcc_intrinsics.h: In function `OPA_cas_ptr':
./src/primitives/opa_gcc_intrinsics.h:64: warning: return makes pointer from
integer without a cast
/tmp/ccGF3slU.o(.text+0xb8): In function `main':
: undefined reference to `__sync_synchronize'
/tmp/ccGF3slU.o(.text+0xc2): In function `main':
: undefined reference to `__sync_synchronize'
/tmp/ccGF3slU.o(.text+0xcc): In function `main':
: undefined reference to `__sync_synchronize'
/tmp/ccGF3slU.o(.text+0x13f): In function `OPA_cas_int':
: undefined reference to `__sync_val_compare_and_swap'
/tmp/ccGF3slU.o(.text+0x19d): In function `OPA_fetch_and_add_int':
: undefined reference to `__sync_fetch_and_add'
/tmp/ccGF3slU.o(.text+0x1c2): In function `OPA_decr_and_test_int':
: undefined reference to `__sync_sub_and_fetch'
collect2: ld returned 1 exit status
configure:14740: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| #define HAVE_GCC_X86_32_64 1
| #define HAVE_GCC_X86_32_64_P3 1
| /* end confdefs.h.  */
|
| #define OPA_SIZEOF_INT SIZEOF_INT
| #define OPA_SIZEOF_VOID_P SIZEOF_VOID_P
| #ifndef _opa_inline
| #define _opa_inline inline
| #endif
| #ifndef _opa_restrict
| #define _opa_restrict restrict
| #endif
| #ifndef _opa_const
| #define _opa_const const
| #endif
| #ifdef HAVE_GCC_ATTRIBUTE
| #define OPA_HAVE_GCC_ATTRIBUTE 1
| #endif
| #include "opa_util.h" /* for OPA_ATTRIBUTE and friends */
| #include "primitives/opa_gcc_intrinsics.h"
|
| int
| main ()
| {
|
|     OPA_int_t a, b;
|     int c;
|
|     OPA_store_int(&a, 0);
|     OPA_store_int(&b, 1);
|     c = OPA_load_int(&a);
|
|     OPA_add_int(&a, 10);
|     OPA_incr_int(&a);
|     OPA_decr_int(&a);
|
|     c = OPA_decr_and_test_int(&a);
|     c = OPA_fetch_and_add_int(&a, 10);
|     c = OPA_fetch_and_incr_int(&a);
|     c = OPA_fetch_and_decr_int(&a);
|
|     c = OPA_cas_int(&a, 10, 11);
|     c = OPA_swap_int(&a, OPA_load_int(&b));
|
|     OPA_write_barrier();
|     OPA_read_barrier();
|     OPA_read_write_barrier();
|
|   ;
|   return 0;
| }
|
configure:14761: result: no
configure:14778: checking for support for Windows NT atomic intrinsics
configure:14844: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
In file included from conftest.c:51:
./src/primitives/opa_nt_intrinsics.h:11:20: windows.h: No such file or
directory
./src/primitives/opa_nt_intrinsics.h:12:19: intrin.h: No such file or
directory
In file included from conftest.c:51:
./src/primitives/opa_nt_intrinsics.h: In function `OPA_cas_ptr':
./src/primitives/opa_nt_intrinsics.h:76: error: `LONG_PTR' undeclared (first
use in this function)
./src/primitives/opa_nt_intrinsics.h:76: error: (Each undeclared identifier
is reported only once
./src/primitives/opa_nt_intrinsics.h:76: error: for each function it appears
in.)
./src/primitives/opa_nt_intrinsics.h:76: error: syntax error before
"_InterlockedCompareExchange64"
./src/primitives/opa_nt_intrinsics.h:77: error: `INT64' undeclared (first
use in this function)
./src/primitives/opa_nt_intrinsics.h:77: error: syntax error before "newv"
./src/primitives/opa_nt_intrinsics.h: In function `OPA_swap_ptr':
./src/primitives/opa_nt_intrinsics.h:91: error: `LONG_PTR' undeclared (first
use in this function)
./src/primitives/opa_nt_intrinsics.h:91: error: syntax error before
"_InterlockedExchange64"
configure:14851: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| #define HAVE_GCC_X86_32_64 1
| #define HAVE_GCC_X86_32_64_P3 1
| /* end confdefs.h.  */
|
| #define OPA_SIZEOF_INT SIZEOF_INT
| #define OPA_SIZEOF_VOID_P SIZEOF_VOID_P
| #ifndef _opa_inline
| #define _opa_inline inline
| #endif
| #ifndef _opa_restrict
| #define _opa_restrict restrict
| #endif
| #ifndef _opa_const
| #define _opa_const const
| #endif
| #ifdef HAVE_GCC_ATTRIBUTE
| #define OPA_HAVE_GCC_ATTRIBUTE 1
| #endif
| #include "opa_util.h" /* for OPA_ATTRIBUTE and friends */
| #include "primitives/opa_nt_intrinsics.h"
|
| int
| main ()
| {
|
|     OPA_int_t a, b;
|     int c;
|
|     OPA_store_int(&a, 0);
|     OPA_store_int(&b, 1);
|     c = OPA_load_int(&a);
|
|     OPA_add_int(&a, 10);
|     OPA_incr_int(&a);
|     OPA_decr_int(&a);
|
|     c = OPA_decr_and_test_int(&a);
|     c = OPA_fetch_and_add_int(&a, 10);
|     c = OPA_fetch_and_incr_int(&a);
|     c = OPA_fetch_and_decr_int(&a);
|
|     c = OPA_cas_int(&a, 10, 11);
|     c = OPA_swap_int(&a, OPA_load_int(&b));
|
|     OPA_write_barrier();
|     OPA_read_barrier();
|     OPA_read_write_barrier();
|
|   ;
|   return 0;
| }
|
configure:14872: result: no
configure:14889: checking for support for Sun atomic operations library
configure:14955: gcc -o conftest    -I./src   conftest.c -lpthread  >&5
In file included from conftest.c:51:
./src/primitives/opa_sun_atomic_ops.h:11:20: atomic.h: No such file or
directory
In file included from conftest.c:51:
./src/primitives/opa_sun_atomic_ops.h:13: warning: no semicolon at end of
struct or union
./src/primitives/opa_sun_atomic_ops.h:13: error: syntax error before "v"
./src/primitives/opa_sun_atomic_ops.h:13: warning: data definition has no
type or storage class
./src/primitives/opa_sun_atomic_ops.h:19: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_load_int':
./src/primitives/opa_sun_atomic_ops.h:21: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h:21: error: (Each undeclared identifier
is reported only once
./src/primitives/opa_sun_atomic_ops.h:21: error: for each function it
appears in.)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:24: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_store_int':
./src/primitives/opa_sun_atomic_ops.h:26: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h:26: error: `uint' undeclared (first
use in this function)
./src/primitives/opa_sun_atomic_ops.h:26: error: syntax error before "val"
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:40: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_add_int':
./src/primitives/opa_sun_atomic_ops.h:42: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h:42: error: `val' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:45: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_incr_int':
./src/primitives/opa_sun_atomic_ops.h:47: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:50: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_decr_int':
./src/primitives/opa_sun_atomic_ops.h:52: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:56: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_decr_and_test_int':
./src/primitives/opa_sun_atomic_ops.h:58: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:62: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_fetch_and_add_int':
./src/primitives/opa_sun_atomic_ops.h:64: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h:64: error: `val' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:67: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_fetch_and_decr_int':
./src/primitives/opa_sun_atomic_ops.h:69: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:72: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_fetch_and_incr_int':
./src/primitives/opa_sun_atomic_ops.h:74: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_cas_ptr':
./src/primitives/opa_sun_atomic_ops.h:80: warning: return makes pointer from
integer without a cast
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:83: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_cas_int':
./src/primitives/opa_sun_atomic_ops.h:85: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h:85: error: `uint_t' undeclared (first
use in this function)
./src/primitives/opa_sun_atomic_ops.h:85: error: syntax error before "oldv"
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_swap_ptr':
./src/primitives/opa_sun_atomic_ops.h:91: warning: return makes pointer from
integer without a cast
./src/primitives/opa_sun_atomic_ops.h: At top level:
./src/primitives/opa_sun_atomic_ops.h:94: error: syntax error before '*'
token
./src/primitives/opa_sun_atomic_ops.h: In function `OPA_swap_int':
./src/primitives/opa_sun_atomic_ops.h:96: error: `ptr' undeclared (first use
in this function)
./src/primitives/opa_sun_atomic_ops.h:96: error: `uint_t' undeclared (first
use in this function)
./src/primitives/opa_sun_atomic_ops.h:96: error: syntax error before "val"
conftest.c: In function `main':
conftest.c:57: error: syntax error before "a"
conftest.c:60: error: `a' undeclared (first use in this function)
conftest.c:61: error: `b' undeclared (first use in this function)
configure:14962: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenPA"
| #define PACKAGE_TARNAME "openpa"
| #define PACKAGE_VERSION "1.0.2"
| #define PACKAGE_STRING "OpenPA 1.0.2"
| #define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
| #define PACKAGE "openpa"
| #define VERSION "1.0.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define restrict __restrict
| #define HAVE_LIBPTHREAD 1
| #define HAVE_PTHREAD_YIELD 1
| #define MAX_NTHREADS 100
| #define SIZEOF_VOID_P 8
| #define SIZEOF_INT 4
| #define HAVE_GCC_ATTRIBUTE 1
| #define HAVE_GCC_X86_32_64 1
| #define HAVE_GCC_X86_32_64_P3 1
| /* end confdefs.h.  */
|
| #define OPA_SIZEOF_INT SIZEOF_INT
| #define OPA_SIZEOF_VOID_P SIZEOF_VOID_P
| #ifndef _opa_inline
| #define _opa_inline inline
| #endif
| #ifndef _opa_restrict
| #define _opa_restrict restrict
| #endif
| #ifndef _opa_const
| #define _opa_const const
| #endif
| #ifdef HAVE_GCC_ATTRIBUTE
| #define OPA_HAVE_GCC_ATTRIBUTE 1
| #endif
| #include "opa_util.h" /* for OPA_ATTRIBUTE and friends */
| #include "primitives/opa_sun_atomic_ops.h"
|
| int
| main ()
| {
|
|     OPA_int_t a, b;
|     int c;
|
|     OPA_store_int(&a, 0);
|     OPA_store_int(&b, 1);
|     c = OPA_load_int(&a);
|
|     OPA_add_int(&a, 10);
|     OPA_incr_int(&a);
|     OPA_decr_int(&a);
|
|     c = OPA_decr_and_test_int(&a);
|     c = OPA_fetch_and_add_int(&a, 10);
|     c = OPA_fetch_and_incr_int(&a);
|     c = OPA_fetch_and_decr_int(&a);
|
|     c = OPA_cas_int(&a, 10, 11);
|     c = OPA_swap_int(&a, OPA_load_int(&b));
|
|     OPA_write_barrier();
|     OPA_read_barrier();
|     OPA_read_write_barrier();
|
|   ;
|   return 0;
| }
|
configure:14983: result: no
configure:15077: checking whether to enable strict fairness checks
configure:15095: result: no
configure:15233: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by OpenPA config.status 1.0.2, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on sp

config.status:1004: creating Makefile
config.status:1004: creating src/Makefile
config.status:1004: creating test/Makefile
config.status:1004: creating openpa.pc
config.status:1004: creating src/config.h
config.status:1278: executing depfiles commands
config.status:1278: executing libtool commands
config.status:1278: executing src/opa_config.h commands
config.status:2088: creating src/opa_config.h - prefix OPA for src/config.h
defines

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_c_inline=inline
ac_cv_c_restrict=__restrict
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='  '
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_pthread_yield=yes
ac_cv_header_atomic_h=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_intrin_h=no
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_pthread_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stddef_h=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_pthread_pthread_create=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_sizeof_int=4
ac_cv_sizeof_void_p=8
am_cv_CC_dependencies_compiler_type=gcc3
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[
 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1
\2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/
{\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/
{"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^:
\([^ ]*\) $/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\)
\(lib[^ ]*\)$/  {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^
]*\) \([^ ]*\)$/  {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int
\1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=98304
pac_cv_gnu_attr_format=yes
pac_cv_gnu_attr_pure=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/missing
--run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/missing --run
tar'
AR='ar'
AUTOCONF='${SHELL} /home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/missing
--run autoconf'
AUTOHEADER='${SHELL} /home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/missing
--run autoheader'
AUTOMAKE='${SHELL} /home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/missing
--run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='  '
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP='/bin/grep -F'
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS=''
LIBOBJS=''
LIBS='-lpthread '
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/missing
--run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='openpa'
PACKAGE_BUGREPORT='https://trac.mcs.anl.gov/projects/openpa/newticket'
PACKAGE_NAME='OpenPA'
PACKAGE_STRING='OpenPA 1.0.2'
PACKAGE_TARNAME='openpa'
PACKAGE_VERSION='1.0.2'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='1.0.2'
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
external_pkg_config_libs=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL}
/home/gtang/tmp/mpich2-1.3.1/src/openpa/confdb/install-sh'
internal_pkg_config_libs=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libopa_so_version='1:0'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/mpich2'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "OpenPA"
#define PACKAGE_TARNAME "openpa"
#define PACKAGE_VERSION "1.0.2"
#define PACKAGE_STRING "OpenPA 1.0.2"
#define PACKAGE_BUGREPORT "
https://trac.mcs.anl.gov/projects/openpa/newticket"
#define PACKAGE "openpa"
#define VERSION "1.0.2"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_PTHREAD_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDDEF_H 1
#define restrict __restrict
#define HAVE_LIBPTHREAD 1
#define HAVE_PTHREAD_YIELD 1
#define MAX_NTHREADS 100
#define SIZEOF_VOID_P 8
#define SIZEOF_INT 4
#define HAVE_GCC_ATTRIBUTE 1
#define HAVE_GCC_X86_32_64 1
#define HAVE_GCC_X86_32_64_P3 1

configure: exit 0


-- 
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20101201/98e168c9/attachment-0001.htm>


More information about the mpich-discuss mailing list