Meu configure do P ++ falha por causa de um flag -lpmpich

0

Estou tentando compilar um pacote de computação científica chamado Overture no Ubuntu 16.04. Para isso, primeiro preciso compilar um pacote chamado P ++. Estas são as instruções para construir Overture (e P + +) a partir da fonte:

link

Consegui obter a maioria dos componentes necessários para Overture nos repositórios. No entanto, eu preciso construir A ++, P + + e Overture em si.

A linha de configuração para o P ++ pede uma opção de biblioteca -lpmpich. Agora, eu tenho mpich2 instalado, mas não há biblioteca pmpich nele. Então, quando eu faço o configure, ele falha. Alguém sabe o que é isso e como superar esse erro?

Esta é minha linha de configuração:

./configure --enable-PXX --prefix=/home/skumar/Software/src/Overture/A++P++-0.8.2 --enable-SHARED_LIBS --with-mpi-include=-I/usr/include/mpich --with-mpi-lib-dirs="-Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/x86_64-linux-gnu" --with-mpi-libs="-lpmpich -lc -lm" --with-mpirun=/usr/bin/mpirun --without-PADRE

Mensagem de erro a seguir.

checking build system type... x86_64-unknown-linux-gnu  
checking host system type... x86_64-unknown-linux-gnu  
checking for a BSD compatible install... /usr/bin/install -c  
checking whether build environment is sane... yes  
checking for mawk... mawk  
checking whether make sets ${MAKE}... yes  
checking whether make sets ${MAKE}... (cached) yes  
configure: Skipping PerformanceTests ...  
configure: Setup P++ (parallel array class) ...  
checking for a BSD compatible install... /usr/bin/install -c  
checking for gtar...   
checking for gtar... no  
configure: creating ./config.status  
config.status: creating Makefile  
configure: configuring in P++  
configure: running /bin/sh './configure'  --enable-PXX --prefix=/home/skumar/Software/src/Overture/A++P++-0.8.2 --enable-  
 SHARED_LIBS --with-mpi-include=-I/usr/include/mpich '--with-mpi-lib- 
 dirs=-Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/x86_64-linux- 
 gnu' '--with-mpi-libs=-lpmpich -lc -lm' --with-mpirun=/usr/bin/mpirun -- 
 without-PADRE --cache-file=/dev/null --srcdir=.  
checking for a BSD compatible install... /usr/bin/install -c  
checking whether build environment is sane... yes  
checking for mawk... mawk  
checking whether make sets ${MAKE}... yes  
configure: Run tests to verify MPI ...  
In A++P++/P++/configure.in (before PPP SPECIFIC SETUP setting INCLUDES  
 variable): INCLUDES =   
checking build system type... x86_64-unknown-linux-gnu  
checking for style of include used by make... GNU  
Before APP PPP COMMON AUTOCONFIG MACRO call: INCLUDES =   
configure: In P++.m4 before APP PPP COMMON AUTOCONFIG MACRO: CPPFLAGS =   
checking host system type... x86_64-unknown-linux-gnu  
In A++P+++_common_autoconfig macro: ARCH =   
In A++P+++_common_autoconfig macro: srcdir = .  
checking if we should use original source for generation of A++/P++ source  
 code... can't find "./../Common_Code" directory (this must be a  
 distribution of A++/P++ so source code development not practical).  
In A++P+++_common_autoconfig macro:  
 enable_DEVELOPMENT_SPECIFIC_DEPENDENCIES = no  
configure: The normal prefix has been changed to  
 '/home/skumar/Software/src/Overture/A++P++-0.8.2/P++/install' in order to  
 prevent name clashes with the P++ package.  
configure: Building  
 /home/skumar/Software/src/Overture/A++P++-0.8.2/P++/install/include directory ...
configure: Building /home/skumar/Software/src/Overture/A++P++-0.8.2/P++/install/lib directory ...  
checking whether make sets ${MAKE}... (cached) yes  
checking for ld... ld  
checking C compiler... checking "what C compiler to use"... C compiler   name not found in the cache file.  
(cached) gcc  
checking for C compiler default output... a.out  
checking whether the C compiler works... yes  
checking whether we are cross compiling... no  
checking for executable suffix...   
checking for object suffix... o  
checking whether we are using the GNU C compiler... yes  
checking whether gcc accepts -g... yes  
checking dependency style of gcc... none  
checking how to run the C preprocessor... gcc -E  
checking C++ compiler... g++  
checking whether we are using the GNU C++ compiler... yes  
checking whether g++ accepts -g... yes  
checking dependency style of g++... none  
checking how to run the C++ preprocessor... g++ -E  
checking what the C compiler gcc really is... gnu-5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609  
2015 Free Software Foundation, Inc.  
checking what the C++ compiler g++ really is... gnu-5.4.0- 
 6ubuntu1~16.04.9) 5.4.0 20160609
2015 Free Software Foundation, Inc.  
CXX_OPTIONS is set to  
checking for ranlib... ranlib  
checking checking whether bool type is broken... no  
checking checking whether namespace is broken... no  
checking for ar... ar  
checking for ar which supports o option... /usr/bin/ar  
checking whether /usr/bin/ar accepts ruv option to update library file... yes  
checking whether /usr/bin/ar accepts o option to preserve file time... yes  
checking what the compilers gcc and g++ really are... gnu-5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609  
2015 Free Software Foundation, Inc. and gnu-5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609  
2015 Free Software Foundation, Inc.  
checking how to build C++ libraries... ${AR} ruv and ${CXX} -shared -o  
"In APP_PPP_common_autoconfig.m4: Do Not Use Purify - CXXLD = g++"  
configure: In P++.m4 after APP PPP COMMON AUTOCONFIG MACRO: CPPFLAGS =   
Before LAM MPI Setup: INCLUDES =   
checking whether to use LAM... no  
Before MPICH MPI Setup: INCLUDES =   
configure: WARNING: MPICH was not specified on the command line -- so use default settings  
In AXXPXX SET MPI: MPIINCLUDE = -I/usr/include/mpich 
In AXXPXX SET MPI: MPILIBDIRS = -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/x86_64-linux-gnu  
In AXXPXX SET MPI: MPILIBS    =  -lpmpich -lc -lm  
In AXXPXX SET MPI: MPIFLAGS   =   
In AXXPXX SET MPI: mpirun     = /usr/bin/mpirun  
In configure.in: mpich_INCLUDES = -I/usr/include/mpich  
In configure.in: mpich_LIBS     = -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/x86_64-linux-gnu  -lpmpich -lc -lm  
After MPI Setup (before adding (mpi_INCLUDES=-I/usr/include/mpich) to INCLUDE: INCLUDES =   
After MPI Setup (after adding (mpi_INCLUDES=-I/usr/include/mpich) to INCLUDE: INCLUDES = -I/usr/include/mpich   
After MPI setup: CPPFLAGS = -I/usr/include/mpich   
After MPI setup: INCLUDES = -I/usr/include/mpich   
After MPI setup: LIBS     =  -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/x86_64-linux-gnu  -lpmpich -lc -lm  
PPP MPI RUN CHECK IS IN  
 /home/skumar/Software/src/Overture/A++P++-0.8.2/P++  
checking existence and behavior of mpirun... finished checking for cached mpi variables  
DQ debugging compiler command for simple MPI program is ac_link = $CC -o  
 conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5  
conftest.c:4:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(int argc, char **argv)  
 ^  
/usr/bin/ld: cannot find -lpmpich  
collect2: error: ld returned 1 exit status  
trivial mpi program NOT compiled and linked  
configure: error: /bin/sh './configure' failed for P++  
sed: can't read confdefs.h: No such file or directory  
    
por Seshadri Kumar 11.06.2018 / 10:00

0 respostas