LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-10-13 07:19:12


Please see the LAM Installation Instructions
(http://www.lam-mpi.org/using/docs/) -- there is a note about this in
the "After the Build" chapter; see the section entitled "The LAM Test
Suite".

On Oct 12, 2005, at 6:37 PM, Andy Manners wrote:

> LAM 7.1.1
> OSX 10.3.9
> g77 3.4.3 (from fink)
>
> Configuring lamtests-7.1.1 fails.
>
> -------------- configure
> ---------------------------------------------------
>
> Configuring LAM test suite version 7.1.1
> checking for a BSD-compatible install... /sw/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... powerpc-apple-darwin7.9.0
> checking host system type... powerpc-apple-darwin7.9.0
> checking for mpicc... yes
> checking for gcc... mpicc
> 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 mpicc accepts -g... yes
> checking for mpicc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of mpicc... gcc3
> checking for mpic++... yes
> checking whether we are using the GNU C++ compiler... yes
> checking whether mpic++ accepts -g... yes
> checking dependency style of mpic++... gcc3
> checking for mpif77... yes
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether mpif77 accepts -g... yes
> checking for ranlib... ranlib
> checking for mpi.h... yes
> checking for MPI_Initialized in -lmpi... yes
> checking if have Fortran MPI bindings... yes
> checking how to get verbose linking output from mpif77... -v
> checking for Fortran libraries of mpif77... -lcrt2.o -L/usr/local/lib
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/../../.. -llammpio
> -llamf77mpi -lmpi -llam -ldl -lfrtbegin -lg2c -lSystem
> /usr/lib/gcc/darwin/3.3/libgcc.a
> checking for dummy main to link with Fortran libraries... unknown
> configure: error: linking to Fortran libraries from C fails
> See `config.log' for more details.
>
>
> ------------------- config.log
> -----------------------------------------------
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.59. Invocation command line was
>
> $ ./configure
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = Andy-Manners-Computer.local
> uname -m = Power Macintosh
> uname -r = 7.9.0
> uname -s = Darwin
> uname -v = Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005;
> root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC
>
> /usr/bin/uname -p = powerpc
> /bin/uname -X = unknown
>
> /bin/arch = unknown
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> hostinfo = Mach kernel version:
> Darwin Kernel Version 7.9.0:
> Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC
>
>
> Kernel configured for a single processor only.
> 1 processor is physically available.
> Processor type: ppc7450 (PowerPC 7450)
> Processor active: 0
> Primary memory available: 1024.00 megabytes.
> Default processor set: 79 tasks, 187 threads, 1 processors
> Load average: 1.50, Mach factor: 0.34
> unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /sw/bin
> PATH: /sw/sbin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/sbin
> PATH: /sbin
> PATH: /Users/andy
> PATH: /usr/X11R6/bin
> PATH: /opt/ibmcmp/xlf/8.1/bin
> PATH: /usr/brlcad/bin
> PATH: /Users/andy/scripts
> PATH: /Users/andy/bin
> PATH: .
> PATH: /Users/andy/lg/bin
> PATH: /usr/local/bin
> PATH: /usr/local/visit/bin
> PATH: /opt/ibmcmp/xlf/8.1/bin
> PATH: /usr/brlcad/bin
> PATH: /Users/andy/scripts
> PATH: /Users/andy/bin
> PATH: .
> PATH: /Users/andy/lg/bin
> PATH: /usr/local/bin
> PATH: /usr/local/visit/bin
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:1420: checking for a BSD-compatible install
> configure:1475: result: /sw/bin/install -c
> configure:1486: checking whether build environment is sane
> configure:1529: result: yes
> configure:1586: checking for gawk
> configure:1602: found /sw/bin/gawk
> configure:1612: result: gawk
> configure:1622: checking whether make sets $(MAKE)
> configure:1642: result: yes
> configure:1822: checking build system type
> configure:1840: result: powerpc-apple-darwin7.9.0
> configure:1848: checking host system type
> configure:1862: result: powerpc-apple-darwin7.9.0
> configure:1904: checking for mpicc
> configure:1920: found /usr/local/bin/mpicc
> configure:1931: result: yes
> configure:1992: checking for gcc
> configure:2018: result: mpicc
> configure:2262: checking for C compiler version
> configure:2265: mpicc --version </dev/null >&5
> gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
> Copyright (C) 2002 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:2268: $? = 0
> configure:2270: mpicc -v </dev/null >&5
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
> Thread model: posix
> gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
> configure:2273: $? = 0
> configure:2275: mpicc -V </dev/null >&5
> gcc: `-V' option must have argument
> configure:2278: $? = 1
> configure:2301: checking for C compiler default output file name
> configure:2304: mpicc conftest.c >&5
> configure:2307: $? = 0
> configure:2353: result: a.out
> configure:2358: checking whether the C compiler works
> configure:2364: ./a.out
> configure:2367: $? = 0
> configure:2384: result: yes
> configure:2391: checking whether we are cross compiling
> configure:2393: result: no
> configure:2396: checking for suffix of executables
> configure:2398: mpicc -o conftest conftest.c >&5
> configure:2401: $? = 0
> configure:2426: result:
> configure:2432: checking for suffix of object files
> configure:2453: mpicc -c conftest.c >&5
> configure:2456: $? = 0
> configure:2478: result: o
> configure:2482: checking whether we are using the GNU C compiler
> configure:2506: mpicc -c conftest.c >&5
> configure:2512: $? = 0
> configure:2516: test -z
> || test ! -s conftest.err
> configure:2519: $? = 0
> configure:2522: test -s conftest.o
> configure:2525: $? = 0
> configure:2538: result: yes
> configure:2544: checking whether mpicc accepts -g
> configure:2565: mpicc -c -g conftest.c >&5
> configure:2571: $? = 0
> configure:2575: test -z
> || test ! -s conftest.err
> configure:2578: $? = 0
> configure:2581: test -s conftest.o
> configure:2584: $? = 0
> configure:2595: result: yes
> configure:2612: checking for mpicc option to accept ANSI C
> configure:2682: mpicc -c -g -O2 conftest.c >&5
> configure:2688: $? = 0
> configure:2692: test -z
> || test ! -s conftest.err
> configure:2695: $? = 0
> configure:2698: test -s conftest.o
> configure:2701: $? = 0
> configure:2719: result: none needed
> configure:2737: mpicc -c -g -O2 conftest.c >&5
> conftest.c:2: error: parse error before "me"
> mpicc: No such file or directory
> configure:2743: $? = 1
> configure: failed program was:
> | #ifndef __cplusplus
> | choke me
> | #endif
> configure:2887: checking for style of include used by make
> configure:2915: result: GNU
> configure:2943: checking dependency style of mpicc
> configure:3033: result: gcc3
> configure:3067: checking for mpic++
> configure:3083: found /usr/local/bin/mpic++
> configure:3094: result: yes
> configure:3244: checking for C++ compiler version
> configure:3247: mpic++ --version </dev/null >&5
> g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
> Copyright (C) 2002 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:3250: $? = 0
> configure:3252: mpic++ -v </dev/null >&5
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
> Thread model: posix
> gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
> configure:3255: $? = 0
> configure:3257: mpic++ -V </dev/null >&5
> g++: `-V' option must have argument
> configure:3260: $? = 1
> configure:3263: checking whether we are using the GNU C++ compiler
> configure:3287: mpic++ -c conftest.cc >&5
> configure:3293: $? = 0
> configure:3297: test -z
> || test ! -s conftest.err
> configure:3300: $? = 0
> configure:3303: test -s conftest.o
> configure:3306: $? = 0
> configure:3319: result: yes
> configure:3325: checking whether mpic++ accepts -g
> configure:3346: mpic++ -c -g conftest.cc >&5
> configure:3352: $? = 0
> configure:3356: test -z
> || test ! -s conftest.err
> configure:3359: $? = 0
> configure:3362: test -s conftest.o
> configure:3365: $? = 0
> configure:3376: result: yes
> configure:3418: mpic++ -c -g -O2 conftest.cc >&5
> configure:3424: $? = 0
> configure:3428: test -z
> || test ! -s conftest.err
> configure:3431: $? = 0
> configure:3434: test -s conftest.o
> configure:3437: $? = 0
> configure:3463: mpic++ -c -g -O2 conftest.cc >&5
> conftest.cc: In function `int main()':
> conftest.cc:21: error: `exit' undeclared (first use this function)
> conftest.cc:21: error: (Each undeclared identifier is reported only
> once for
> each function it appears in.)
> mpic++: No such file or directory
> configure:3469: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define LAMTEST_MAJOR_VERSION 7
> | #define LAMTEST_MINOR_VERSION 1
> | #define LAMTEST_RELEASE_VERSION 1
> | #define LAMTEST_ALPHA_VERSION 0
> | #define LAMTEST_BETA_VERSION 0
> | #define LAMTEST_CVS_VERSION
> | #define LAMTEST_VERSION "7.1.1"
> | #define LAMTEST_ARCH "powerpc-apple-darwin7.9.0"
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> | exit (42);
> | ;
> | return 0;
> | }
> configure:3418: mpic++ -c -g -O2 conftest.cc >&5
> configure:3424: $? = 0
> configure:3428: test -z
> || test ! -s conftest.err
> configure:3431: $? = 0
> configure:3434: test -s conftest.o
> configure:3437: $? = 0
> configure:3463: mpic++ -c -g -O2 conftest.cc >&5
> configure:3469: $? = 0
> configure:3473: test -z
> || test ! -s conftest.err
> configure:3476: $? = 0
> configure:3479: test -s conftest.o
> configure:3482: $? = 0
> configure:3507: checking dependency style of mpic++
> configure:3597: result: gcc3
> configure:3631: checking for mpif77
> configure:3647: found /usr/local/bin/mpif77
> configure:3658: result: yes
> configure:3765: checking for Fortran 77 compiler version
> configure:3768: mpif77 --version </dev/null >&5
> GNU Fortran (GCC) 3.4.3
> Copyright (C) 2004 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
> or type the command `info -f g77 Copying'.
> configure:3771: $? = 0
> configure:3773: mpif77 -v </dev/null >&5
> Reading specs from /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/specs
> Configured with: ../gcc-3.4.3/configure --prefix=/sw
> --enable-languages=f77 --infodir=/share/info --libexecdir=/lib
> --disable-shared
> Thread model: posix
> gcc version 3.4.3
> configure:3776: $? = 0
> configure:3778: mpif77 -V </dev/null >&5
> g77: `-V' option must have argument
> configure:3781: $? = 1
> configure:3789: checking whether we are using the GNU Fortran 77
> compiler
> configure:3803: mpif77 -c conftest.F >&5
> configure:3809: $? = 0
> configure:3813: test -z
> || test ! -s conftest.err
> configure:3816: $? = 0
> configure:3819: test -s conftest.o
> configure:3822: $? = 0
> configure:3835: result: yes
> configure:3841: checking whether mpif77 accepts -g
> configure:3853: mpif77 -c -g conftest.f >&5
> configure:3859: $? = 0
> configure:3863: test -z
> || test ! -s conftest.err
> configure:3866: $? = 0
> configure:3869: test -s conftest.o
> configure:3872: $? = 0
> configure:3884: result: yes
> configure:3956: checking for ranlib
> configure:3972: found /usr/bin/ranlib
> configure:3983: result: ranlib
> configure:4010: checking for mpi.h
> configure:4021: $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5
> configure:4024: result: yes
> configure:4050: checking for MPI_Initialized in -lmpi
> configure:4071: mpicc -o conftest conftest.c >&5
> configure:4077: $? = 0
> configure:4081: test -z
> || test ! -s conftest.err
> configure:4084: $? = 0
> configure:4087: test -s conftest
> configure:4090: $? = 0
> configure:4102: result: yes
> configure:4178: checking if have Fortran MPI bindings
> configure:4197: mpif77 -o conftest conftest.f >&5
> configure:4203: $? = 0
> configure:4207: test -z
> || test ! -s conftest.err
> configure:4210: $? = 0
> configure:4213: test -s conftest
> configure:4216: $? = 0
> configure:4233: result: yes
> configure:4259: checking how to get verbose linking output from mpif77
> configure:4270: mpif77 -c conftest.f >&5
> configure:4276: $? = 0
> configure:4280: test -z
> || test ! -s conftest.err
> configure:4283: $? = 0
> configure:4286: test -s conftest.o
> configure:4289: $? = 0
> configure:4306: mpif77 -o conftest -v conftest.f >&5
> Reading specs from /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/specs
> Configured with: ../gcc-3.4.3/configure --prefix=/sw
> --enable-languages=f77 --infodir=/share/info --libexecdir=/lib
> --disable-shared
> Thread model: posix
> gcc version 3.4.3
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/f771 conftest.f -fPIC
> -quiet -dumpbase conftest.f -auxbase conftest -version
> -I/usr/local/include -o /var/tmp//cc7LDBt7.s
> GNU F77 version 3.4.3 (powerpc-apple-darwin7.8.0)
> compiled by GNU C version 3.4.3.
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
> as -arch ppc -o /var/tmp//cc6ebvNl.o /var/tmp//cc7LDBt7.s
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/collect2 -arch ppc
> -dynamic -force_flat_namespace -flat_namespace -u
> _lam_darwin_malloc_linker_hack -o conftest -lcrt1.o -lcrt2.o
> -L/usr/local/lib -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/../../..
> /var/tmp//cc6ebvNl.o -multiply_defined suppress -multiply_defined
> suppress -llammpio -llamf77mpi -lmpi -llam -ldl -lfrtbegin -lg2c -lgcc
> -lSystem /usr/lib/gcc/darwin/3.3/libgcc.a |
> c++filt
> configure:4361: result: -v
> configure:4363: checking for Fortran libraries of mpif77
> configure:4384: mpif77 -o conftest -v conftest.f >&5
> Reading specs from /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/specs
> Configured with: ../gcc-3.4.3/configure --prefix=/sw
> --enable-languages=f77 --infodir=/share/info --libexecdir=/lib
> --disable-shared
> Thread model: posix
> gcc version 3.4.3
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/f771 conftest.f -fPIC
> -quiet -dumpbase conftest.f -auxbase conftest -version
> -I/usr/local/include -o /var/tmp//ccccrCpx.s
> GNU F77 version 3.4.3 (powerpc-apple-darwin7.8.0)
> compiled by GNU C version 3.4.3.
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
> as -arch ppc -o /var/tmp//ccSqRw4z.o /var/tmp//ccccrCpx.s
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/collect2 -arch ppc
> -dynamic -force_flat_namespace -flat_namespace -u
> _lam_darwin_malloc_linker_hack -o conftest -lcrt1.o -lcrt2.o
> -L/usr/local/lib -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/../../..
> /var/tmp//ccSqRw4z.o -multiply_defined suppress -multiply_defined
> suppress -llammpio -llamf77mpi -lmpi -llam -ldl -lfrtbegin -lg2c -lgcc
> -lSystem /usr/lib/gcc/darwin/3.3/libgcc.a |
> c++filt
> configure:4545: result: -lcrt2.o -L/usr/local/lib
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/../../.. -llammpio
> -llamf77mpi -lmpi -llam -ldl -lfrtbegin -lg2c -lSystem
> /usr/lib/gcc/darwin/3.3/libgcc.a
> configure:4561: checking for dummy main to link with Fortran libraries
> configure:4600: mpicc -o conftest conftest.c -lcrt2.o
> -L/usr/local/lib -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/../../.. -llammpio
> -llamf77mpi -lmpi -llam -ldl -lfrtbegin -lg2c -lSystem
> /usr/lib/gcc/darwin/3.3/libgcc.a >&5
> ld: multiple definitions of symbol
> ___darwin_gcc3_preregister_frame_info
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/crt2.o definition of
> ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text)
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/crt2.o definition of
> ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text)
> mpicc: No such file or directory
> configure:4606: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define LAMTEST_MAJOR_VERSION 7
> | #define LAMTEST_MINOR_VERSION 1
> | #define LAMTEST_RELEASE_VERSION 1
> | #define LAMTEST_ALPHA_VERSION 0
> | #define LAMTEST_BETA_VERSION 0
> | #define LAMTEST_CVS_VERSION
> | #define LAMTEST_VERSION "7.1.1"
> | #define LAMTEST_ARCH "powerpc-apple-darwin7.9.0"
> | #ifdef __cplusplus
> | extern "C" void std::exit (int) throw (); using std::exit;
> | #endif
> | /* end confdefs.h. */
> |
> | #ifdef F77_DUMMY_MAIN
> |
> | # ifdef __cplusplus
> | extern "C"
> | # endif
> | int F77_DUMMY_MAIN() { return 1; }
> |
> | #endif
> | int
> | main ()
> | {
> |
> | ;
> | return 0;
> | }
> configure:4657: mpicc -o conftest conftest.c -lcrt2.o
> -L/usr/local/lib -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3
> -L/sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/../../.. -llammpio
> -llamf77mpi -lmpi -llam -ldl -lfrtbegin -lg2c -lSystem
> /usr/lib/gcc/darwin/3.3/libgcc.a >&5
> ld: multiple definitions of symbol
> ___darwin_gcc3_preregister_frame_info
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/crt2.o definition of
> ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text)
> /sw/lib/gcc/powerpc-apple-darwin7.8.0/3.4.3/crt2.o definition of
> ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text)
> mpicc: No such file or directory
> configure:4663: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> .
> .
> .
> [SIMILAR MESSAGES REPEAT]
>
>
>
> At a guess, comparing the links that work and those that do not, the
> flag "-multiply_defined suppress" is missing. I had a go but failed to
> get this into configure. Pointers gratefully received.
>
>
>
>
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

-- 
{+} Jeff Squyres
{+} The Open MPI Project
{+} http://www.open-mpi.org/