Various problems in building trilinos
Created by: leonavery
I'm trying to build Trilinos on an old centos 6 system, on which I have installed, I believe, all prerequisites. I've run into some unexpected behaviors that I don't understand. I configured and generated Makefiles with cmake-gui, then used "make -k VERBOSE=1 all" for the build, so I could see which exact commands failed.
The first occurred while building Mesquite. I got a mort of errors about undefined references to MPi functions. g++ was used in the build, and when I manually issued the command, replacing g++ with mpic++, it worked. I have MPI_USE_COMPILER_WRAPPERS=ON, and I even manually set the paths to the wrappers in MPI_{C,CXX,Fortran}_COMPILER. So why aren't the wrappers being used? (This one I was able to get around by setting Trilinos_EXTRA_LINK_FLAGS:STRING="-lmpi".)
The second problem is with PyTrilinos, specifcally with the NOX-PETSc interface. During configuration, there are errors from SWIG about several header files not being found. These headers are present in the source distribution at trilinos-12.6.3-Source/packages/nox/src-petsc, but apparently swig is not told to look for headers there. The same problem occurs during compilation. Compilation of several c++ files fails, because they are unable to find the same headers that swig failed to find. g++ is passed a long list of -I flags for this compilation, but there is no -I/trilinos-12.6.3-Source/packages/nox/src-petsc in the list. I don't know enough about cmake to figure out how it produces the list of include directories, but apparently this one is being left out for PyTrilinos. (I'm now trying to work around it with CMAKE_CXX_FLAGS.)