Deal all,
this must be trivial, but I am not familair with mpi and I am tryign
this for the first time, now. My computer system has openmpi
installed, and the mpi compiler mpicc is sitting in
/usr/lib64/openmpi/1.4-gcc/bin/mpicc
When I run ./configure from the migrate-n source code distribution it
looks like it can't find mpi:
checking for MPI_Init in -lmpi... no
And here the output in full:
[kraus@XXX src]$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
svn: '.' is not a working copy
svn: '.' is not a working copy
checking for gmake... gmake
Linux
===============================
.
unknown
linux-gnu + + Linux + +
x86_64
===============================
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
+++++++++++++++++++++++++++++++++++++++
gcc
g++
-O3 -Wall -funroll-loops -fomit-frame-pointer -falign-loops=16 -
Dx86_64
+++++++++++++++++++++++++++++++++++++++
checking for a BSD-compatible install... /usr/bin/install -c
checking for pthread_create in -lpthread... yes
checking for MPI_Init in -lmpi... no
checking for exp in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for int... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for inline... inline
checking return type of signal handlers... void
checking for strftime... yes
checking for strcspn... yes
checking for strsep... yes
checking for lgamma... yes
checking which zlib implementation to use... autodetect
checking for main in -lz... yes
checking for gzbuffer... no
Copying source from Mersenne-Twister directory into main source
directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating conf.h
-----------------------------------------------------------------------
MIGRATE-N is now setup
to compile the program you need to type one of the
commands below (ordered by preference):
SINGLE CPU machines
make # with PDF output support
# this might fail on first attempt,
# if the make fails, please let me know
# often linking fails because the C++ pdf library
# and the core migrate parts (C) mismatch
# check the Makefile line for STDLIB= -lstdc++
SMP machines more than 1 CPU in machine
make thread # uses the thread library if present
make # on macs running macos 10.6+ using GrandCentral
PARALLEL Computers, Clusters with MPI software
make mpis # each cpu-core can be treated as a node
make mpis-thread # experimental, may increase load per node!
------------------------------------------------------------------------
SPEED and other TESTING
make single_short_test #this will run a short test and produce
#a single_short_test.log file showing
#the speed of your machine for a single
# CPU run, send this file to
bee...@fsu.edu
------------------------------------------------------------------------
When I make mpis then, it looks all nice but there is no mpi
executable built because mpicc is not found (/bin/sh: mpicc: command
not found).
Here, again, the full output:
[kraus@XXX src]$ make mpis
(cd ./haru ; gmake -f makefile.gcc "CC=g++" "CPP=gcc" "ARCH="
"MACOSVERSION=" "MYCPPFLAGS=-DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER ")
gmake[1]: Entering directory `/home/WUR/kraus003/migrate-3.2.7/src/
haru'
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfExceptions.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfList.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfUtils.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfStreams.cc
PdfStreams.cc: In member function âvirtual int
PdfMemStream::Write(const void*, int)â:
PdfStreams.cc:240: warning: dereferencing type-punned pointer will
break strict-aliasing rules
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfAutoPtrObjects.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfObjects.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfContents.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfPages.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFonts.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfXref.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfDestinations.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfOutlines.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfBorderStyle.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfAnnotations.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfDoc.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCatalog.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfInfo.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfEncoding.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFontDef.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfXObjects.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFontDef_Courier.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFontDef_Helvetica.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFontDef_Times.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFontDef_Symbol.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfFontDef_ZapfDingbats.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfEncoding_ISO8859.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfEncoding_KOI8.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfEncoding_MSCP.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFonts.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfUnicodeText.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_Gothic.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_Mincyo.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_SimHei.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_SimSun.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_Ming.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_Batang.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfMbFontDef_Dotum.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap_RKSJ.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap_EUC.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap_GB_EUC.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap_ETen_B5.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap_KSCms_UHC.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfCMap_KSC_EUC.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfPngImage.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfJpegImage.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c PdfEncrypt.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharuc.cc
libharuc.cc: In function âint pdf_cid_type2_fontdef_ascent(void*)â:
libharuc.cc:164: warning: converting to non-pointer type âlong intâ
from NULL
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharuc_jpfonts.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharuc_krfonts.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharuc_cnsfonts.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharuc_cntfonts.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharu_png.cc
gcc -I. -Wall -O3 -DNDEBUG -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -c libharu_jpeg.cc
ar rc libharu.a PdfExceptions.o PdfList.o PdfUtils.o PdfStreams.o
PdfAutoPtrObjects.o PdfObjects.o PdfContents.o PdfPages.o PdfFonts.o
PdfXref.o PdfDestinations.o PdfOutlines.o PdfBorderStyle.o
PdfAnnotations.o PdfDoc.o PdfCatalog.o PdfInfo.o PdfEncoding.o
PdfFontDef.o PdfXObjects.o PdfFontDef_Courier.o PdfFontDef_Helvetica.o
PdfFontDef_Times.o PdfFontDef_Symbol.o PdfFontDef_ZapfDingbats.o
PdfEncoding_ISO8859.o PdfEncoding_KOI8.o PdfEncoding_MSCP.o
PdfMbFonts.o PdfCMap.o PdfUnicodeText.o PdfMbFontDef_Gothic.o
PdfMbFontDef_Mincyo.o PdfMbFontDef_SimHei.o PdfMbFontDef_SimSun.o
PdfMbFontDef_Ming.o PdfMbFontDef_Batang.o PdfMbFontDef_Dotum.o
PdfCMap_RKSJ.o PdfCMap_EUC.o PdfCMap_GB_EUC.o PdfCMap_ETen_B5.o
PdfCMap_KSCms_UHC.o PdfCMap_KSC_EUC.o PdfPngImage.o PdfJpegImage.o
PdfEncrypt.o libharuc.o libharuc_jpfonts.o libharuc_krfonts.o
libharuc_cnsfonts.o libharuc_cntfonts.o libharu_png.o libharu_jpeg.o
ranlib libharu.a
gmake[1]: Leaving directory `/home/WUR/kraus003/migrate-3.2.7/src/
haru'
Using system zlib architecture
make migrate-n-mpi "CC=mpicc" "CFLAGS = -O3 -Wall -funroll-loops -
fomit-frame-pointer -falign-loops=16 -Dx86_64 -DNEWVERSION -
DBFDEBUG -DNEXUSTREE -DHAVE_ZLIB -DZNZ -DHIGHBITS -DHAVE_CONFIG_H -
DHAVE_MALLOCWRAP -DMERSENNE_TWISTER -DMEXP=19937 -DMIGRATESUBVERSION=
\"\\\"\\\"\" -DMIGRATEVERSION=\"\\\"3.2.7\\\"\" -DNOJPEG -DNOPNG -
Iharu -DPRETTY -DLETTERPAPER -DMPI -DSLOWNET -DNEWREPLICANT -
DMPIREPLICANT" "LIBS = -Lharu -lharu -lstdc++ -lz -lm "
make[1]: Entering directory `/home/WUR/kraus003/migrate-3.2.7/src'
mpicc -O3 -Wall -funroll-loops -fomit-frame-pointer -falign-loops=16
-Dx86_64 -DNEWVERSION -DBFDEBUG -DNEXUSTREE -DHAVE_ZLIB -DZNZ -
DHIGHBITS -DHAVE_CONFIG_H -DHAVE_MALLOCWRAP -DMERSENNE_TWISTER -
DMEXP=19937 -DMIGRATESUBVERSION="\"\"" -
DMIGRATEVERSION="\"3.2.7\"" -DNOJPEG -DNOPNG -Iharu -DPRETTY -
DLETTERPAPER -DMPI -DSLOWNET -DNEWREPLICANT -DMPIREPLICANT -c aic.c
/bin/sh: mpicc: command not found
make[1]: *** [aic.o] Error 127
make[1]: Leaving directory `/home/WUR/kraus003/migrate-3.2.7/src'
make: *** [mpis] Error 2
How can I tell either ./configure or the Makefile where to find mpicc?
Cheers,
Robert