Closed heplesser closed 8 years ago
It's strange that -lmpi_cxx is not included in the link line. The music configure.ac uses mpicxx -showme:link to obtain the correct link line, and on my openmpi installation -lmpi_cxx is included.
@mdjurfeldt My error! In order to force compilation with g++ instead of clang++, I configure with CC=gcc-6 CXX=g++-6
. That seems to throw off MPI-wrapper detection, so I need to pass include and linker files manually, and there I forgot -lmpi_cxx
.
It all worked nicely with the following configure line:
../music/configure CC=gcc-6 CXX=g++-6 \
MPI_CFLAGS=-I/usr/local/Cellar/open-mpi/2.0.1/include \
MPI_CXXFLAGS=-I/usr/local/Cellar/open-mpi/2.0.1/include \
MPI_LDFLAGS='-L/usr/local/Cellar/open-mpi/2.0.1/lib/ -lmpi_cxx -lmpi'
I built MUSIC from master with changes from #26 merged (see also #28) and also the changes in #24 merged. I then hit the following problem:
Does anyone have an idea what might be going wrong? I am linking against OpenMPI 2.0.1 from Homebrew under OSX 10.11.6 with gcc 6.2.1, also from Homebrew.