[Trilinos-Users] [EXTERNAL] [12.0.1] error with gcc when building trilinos 12.0.1

Phipps, Eric T etphipp at sandia.gov
Thu May 21 15:45:10 EDT 2015

I am surprised you are getting an internal error with gcc 4.8.3.  But regardless that indicates a bug in the compiler.

To properly set the compiler to use you need to set CMAKE_CXX_COMPILER, CMAKE_C_COMPILER, and CMAKE_Fortran_COMPILER instead of MPI_CXX_COMPILER, et al.  I don't think Trilinos uses those.


From: Zhengyi Zhang <zyzhang011 at gmail.com<mailto:zyzhang011 at gmail.com>>
Date: Thursday, May 21, 2015 at 12:53 PM
To: "trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>" <trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>>
Subject: [EXTERNAL] [Trilinos-Users] [12.0.1] error with gcc when building trilinos 12.0.1

Dear all,

My name is Zhengyi, and I am a graduate student in Ahmed Sameh's research group at Purdue.  My research topic is communication-avoiding linear solvers.  I am interested in using Belos' GMRES implementation.  Your new postdoc Alicia Klinvex explained to me how to write my own OperatorTraits and MultiVecTraits while she was still in our group, so that I could use Belos to solve the saddle point problems that arise in my communication avoiding solver.  My driver compiles successfully with her Trilinos installation (version 11.14), but I am interested in installing and using Trilinos 12.0.1.

When I try to build Trilinos 12.0.1, I see the following error:
[ 50%] [ 50%] Building CXX object packages/epetraext/src/CMakeFiles/epetraext.dir/transform/EpetraExt_View_MultiVector.cpp.o
Building CXX object packages/epetraext/src/CMakeFiles/epetraext.dir/transform/EpetraExt_Transpose_CrsGraph.cpp.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/stl_vector.h(924): internal error: bad pointez emplace_back(_Args&&... __args);
I don't know what this means, and neither does Alicia.  I'm especially confused since it seems to be using gcc, but I specified the Intel compilers in my configuration file.
-D MPI_BASE_DIR:PATH="/opt/intel/impi/<>" \
-D MPI_Fortran_COMPILER:FILEPATH=mpiifort \

Do you know what could be causing this error?  I would be happy to provide my configuration file or any of the CMake files you would find useful.

Thank you,
Zhengyi Zhang

Zhengyi Zhang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150521/b27a4d73/attachment.html>

More information about the Trilinos-Users mailing list