[Trilinos-Users] [EXTERNAL] error compiling Trilinos Sundance

Perschbacher, Brent M bmpersc at sandia.gov
Fri Feb 24 13:33:13 MST 2012

  I think the issue is that you are setting up mpi in a way that we very likely don’t support, but it probably appears we do based on other tpls. Mpi is a special tpl in that we pretty much rely entirely on the wrapper scripts provided by each implementation and don’t try to find the paths to needed headers and libraries ourselves. I think the best way to fix this is to remove the references to MPI_INCLUDE_DIRS, MPI_LIBRARY_NAMES, and MPI_LIBRARY_DIRS and then replace then with:
“-D MPI_BASE_DIR:PATH=<path to mpi>” where <path to mpi> looks to be “/data/libs/openmpi/1.4.3/gnu44” from the information you provided. Basically that option tells the build where the root path of your mpi is and we look there to find the wrapper scripts. For this change to work properly I would recommend deleting your existing CMakeCache.txt file and CMakeFiles directory in your build tree to make sure any references to the old compilers are removed and then reconfigure.

If that doesn’t work please send me the error you get when you run “make VERBOSE=1” as the default cmake output doesn’t have the full compile line.



On 2/24/12 12:42 PM, "Andrea Penza" <pepe.aero at alice.it> wrote:

Hi all,

I'm trying compiling Sundance package for Trilinos 10.8.3 release on a system. The configuration ends with success using this "do-configure.sh" script:


cmake \
        -D Trilinos_ENABLE_Sundance:BOOL=ON \
        -D Trilinos_ENABLE_TESTS:BOOL=ON \
        -D Trilinos_ENABLE_SEACAS:BOOL=ON \
        -D Trilinos_ENABLE_Pamgen:BOOL=TRUE \
        -D TPL_BLAS_LIBRARIES:PATH=/data/libs/blas/gnu/lib/libblas.a \
        -D TPL_LAPACK_LIBRARIES:PATH=/data/libs/lapack/3.3.1/gnu/lib/liblapack.a \
        -D MPI_INCLUDE_DIRS:PATH=/data/libs/openmpi/1.4.3/gnu44/include:/data/libs/openmpi/1.4.3/gnu44/include/openmpi/ompi/mpi/cxx \
        -D MPI_LIBRARY_NAMES:STRING="otf;vt;vt.fmpi;vt.mpi;vt.omp;vt.ompi" \
        -D MPI_LIBRARY_DIRS:PATH=/data/libs/openmpi/1.4.3/gnu44/lib \
        -D TPL_ENABLE_Netcdf:BOOL=ON \
        -D Netcdf_INCLUDE_DIRS:PATH=/scratch/penza/netcdf-4.1.3/include \
        -D Netcdf_LIBRARY_NAMES:STRING="netcdf;netcdf_c++;netcdff" \
        -D Netcdf_LIBRARY_DIRS:PATH=/scratch/penza/netcdf-4.1.3/BUILD/lib \
        $EXTRA_ARGS \

Running the command "make" in the build directory this error occurs:

[  0%] Built target last_lib
[  0%] Building CXX object packages/teuchos/src/CMakeFiles/teuchos.dir/Teuchos_CTimeMonitor.cpp.o
In file included from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_GlobalMPISession.hpp:52,
                 from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_FancyOStream.hpp:46,
                 from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_Describable.hpp:46,
                 from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_ReductionOp.hpp:45,
                 from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_Comm.hpp:45,
                 from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_TimeMonitor.hpp:64,
                 from /scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/Teuchos_CTimeMonitor.cpp:43:
/scratch/penza/trilinos-10.8.3-Source/packages/teuchos/src/mpi.h:1886:41: error: openmpi/ompi/mpi/cxx/mpicxx.h: No such file or directory
make[2]: *** [packages/teuchos/src/CMakeFiles/teuchos.dir/Teuchos_CTimeMonitor.cpp.o] Error 1
make[1]: *** [packages/teuchos/src/CMakeFiles/teuchos.dir/all] Error 2
make: *** [all] Error 2

Notice that the mpicxx.h file the system try to find is correctly located in the /data/libs/openmpi/1.4.3/gnu44/include/openmpi/ompi/mpi/cxx

Has anyone idea of how this issue could be solved?
Thanks in advance for your support.
Best regards,


Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120224/b7c7befe/attachment.html 

More information about the Trilinos-Users mailing list