Closed teamblubee closed 5 years ago
-DTPL_ENABLE_MPI=ON \
-DMPI_USE_COMPILER_WRAPPERS=ON \
-DMPI_C_COMPILER:FILEPATH="${LOCALBASE}/bin/mpicc" \
-DMPI_CXX_COMPILER:FILEPATH="${LOCALBASE}/bin/mpic++" \
-DMPI_Fortran_COMPILER:FILEPATH="${LOCALBASE}/bin/mpif77" \
-DCMAKE_C_COMPILER:FILEPATH="${LOCALBASE}/bin/mpicc" \
-DCMAKE_CXX_COMPILER:FILEPATH="${LOCALBASE}/bin/mpic++" \
-DCMAKE_Fortran_COMPILER:FILEPATH="${LOCALBASE}/bin/mpif77" \
-DMPI_BASE_DIR="${LOCALBASE}"
Delete everything here except -DTPL_ENABLE_MPI=ON
and -DMPI_BASE_DIR="${LOCALBASE}"
. That's all you need for this installation. (If you could easily guess everything from MPI_BASE_DIR
, so can CMake.) My guess is that overspecifying MPI_CXX_COMPILER
and CMAKE_CXX_COMPILER
is confusing CMake.
-DTPL_ENABLE_MPI=ON \ -DMPI_USE_COMPILER_WRAPPERS=ON \ -DMPI_C_COMPILER:FILEPATH="${LOCALBASE}/bin/mpicc" \ -DMPI_CXX_COMPILER:FILEPATH="${LOCALBASE}/bin/mpic++" \ -DMPI_Fortran_COMPILER:FILEPATH="${LOCALBASE}/bin/mpif77" \ -DCMAKE_C_COMPILER:FILEPATH="${LOCALBASE}/bin/mpicc" \ -DCMAKE_CXX_COMPILER:FILEPATH="${LOCALBASE}/bin/mpic++" \ -DCMAKE_Fortran_COMPILER:FILEPATH="${LOCALBASE}/bin/mpif77" \ -DMPI_BASE_DIR="${LOCALBASE}"
Delete everything here except
-DTPL_ENABLE_MPI=ON
and-DMPI_BASE_DIR="${LOCALBASE}"
. That's all you need for this installation. (If you could easily guess everything fromMPI_BASE_DIR
, so can CMake.) My guess is that overspecifyingMPI_CXX_COMPILER
andCMAKE_CXX_COMPILER
is confusing CMake.
I initially tried what you recommended and had a much simpler argument list but that didn't work..
There is this email conversation from late 2000, that recommended that I added those argument: https://trilinos.org/pipermail/trilinos-users/2009-October/001365.html
There's also the issue from 2017: https://github.com/trilinos/Trilinos/issues/1480
I was able to proceed further with building by using these two local patches:
--- packages/teuchos/core/src/CMakeLists.txt.orig 2018-10-29 13:10:09 UTC
+++ packages/teuchos/core/src/CMakeLists.txt
@@ -45,6 +45,8 @@ TRIBITS_CONFIGURE_FILE(${PACKAGE_NAME}_config.h)
SET(HEADERS "")
SET(SOURCES "")
+INCLUDE_DIRECTORIES(/usr/local/include)
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lmpi")
# Set the base Trilinos directory in order to find Trilinos_version.h
ASSERT_DEFINED(${${PACKAGE_NAME}_PARENT_REPOSITORY}_BINARY_DIR)
INCLUDE_DIRECTORIES(${${${PACKAGE_NAME}_PARENT_REPOSITORY}_BINARY_DIR})
and
--- packages/zoltan/CMakeLists.txt.orig 2018-10-29 13:10:53 UTC
+++ packages/zoltan/CMakeLists.txt
@@ -72,7 +72,8 @@ ENDIF()
#
# C) Add the libraries, tests, and examples
#
-
+INCLUDE_DIRECTORIES(/usr/local/include)
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lmpi")
IF (NOT TPL_ENABLE_MPI)
ADD_SUBDIRECTORY(siMPI)
SET(ZOLTAN_BUILD_ZFDRIVE NO)
I still get linker error but I should be able to resolve these shortly:
[766/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_UnitTestRepository.cpp.o
[767/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Utils.cpp.o
[768/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_VerboseObject.cpp.o
[769/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_VerbosityLevel.cpp.o
[770/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Workspace.cpp.o
[771/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_dyn_cast.cpp.o
[772/829] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_stacktrace.cpp.o
[773/829] Linking CXX shared library packages/teuchos/core/src/libteuchoscore.so.12.13
FAILED: packages/teuchos/core/src/libteuchoscore.so.12.13
: && /usr/bin/c++ -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -Wno-unused-command-line-argument --no-undefined -I/usr/local/include -I/usr/local/flang/include -I/usr/local/llvm60/include -I/usr/local/llvm60/lib/clang/6.0.1/include -L/usr/local/lib -L/usr/local/flang/lib -fPIC -L/usr/local/llvm60/lib -lm -lflang -lflangrti -lomptarget -lompstub -lomp -lpgmath -lm -lexecinfo -fstack-protector -shared -Wl,-soname,libteuchoscore.so.12 -o packages/teuchos/core/src/libteuchoscore.so.12.13 packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_ArrayView.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CWrapperSupport.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CommandLineProcessor.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Describable.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Details_Allocator.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_HashUtils.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_LabeledObject.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_PrintDouble.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Ptr.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_RCPNode.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Range1D.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_ScalarTraits.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_StrUtils.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_TabularOutputter.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_TestForException.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_TestingHelpers.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Time.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_TypeNameTraits.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_UnitTestBase.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_UnitTestRepository.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Utils.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_VerboseObject.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_VerbosityLevel.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Workspace.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_dyn_cast.cpp.o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_stacktrace.cpp.o -Wl,-rpath,/wrkdirs/usr/ports/math/trilinos/work/.build/packages/kokkos/core/src: packages/kokkos/core/src/libkokkoscore.so.12.13 && :
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::GlobalMPISession(int*, char***, std::__1::basic_ostream<char, std::__1::char_traits<char> >*)':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x126): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x142): undefined reference to `MPI_Init'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x170): undefined reference to `MPI_Get_processor_name'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::initialize(std::__1::basic_ostream<char, std::__1::char_traits<char> >*)':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x8ff): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x910): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x91c): undefined reference to `MPI_Comm_rank'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x9b8): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0x9c4): undefined reference to `MPI_Comm_size'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::~GlobalMPISession()':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xac7): undefined reference to `MPI_Finalize'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::abort()':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xbd0): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xbda): undefined reference to `MPI_Abort'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::barrier()':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xcaf): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xcb4): undefined reference to `MPI_Barrier'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xccc): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xcd1): undefined reference to `MPI_Barrier'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::sum(int)':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xd0d): undefined reference to `ompi_mpi_int'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xd14): undefined reference to `ompi_mpi_op_sum'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xd1b): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xd2d): undefined reference to `MPI_Allreduce'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: In function `Teuchos::GlobalMPISession::allGather(int, Teuchos::ArrayView<int> const&)':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xdad): undefined reference to `ompi_mpi_comm_world'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xdb8): undefined reference to `ompi_mpi_int'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:(.text+0xdcf): undefined reference to `MPI_Allgather'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Time.cpp.o: In function `Teuchos::Time::Time(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x45): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x50): undefined reference to `MPI_Wtime'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Time.cpp.o: In function `Teuchos::Time::start(bool)':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0xc5): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0xd0): undefined reference to `MPI_Wtime'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Time.cpp.o: In function `Teuchos::Time::wallTime()':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x10d): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x118): undefined reference to `MPI_Wtime'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Time.cpp.o: In function `Teuchos::Time::stop()':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x15a): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x165): undefined reference to `MPI_Wtime'
packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Time.cpp.o: In function `Teuchos::Time::totalElapsedTime(bool) const':
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x1c3): undefined reference to `MPI_Initialized'
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_Time.cpp:(.text+0x1ce): undefined reference to `MPI_Wtime'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
gmake[1]: *** [/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/cmake/tribits/core/utils/NinjaMakefileCommon.make:20: install] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
*** Error code 2
this is the last dependency before I can install the full dealii package on FreeBSD.
It really sounds like there is something wrong with your MPI installation. CMake has changed a lot since 2000. (Also, Trilinos wasn't using CMake in 2000.)
It really sounds like there is something wrong with your MPI installation. CMake has changed a lot since 2000. (Also, Trilinos wasn't using CMake in 2000.)
[EDIT] All libraries are installed in ${LOCALBASE}/lib or /usr/local/lib All headers are installed in ${LOCALBASE}/include or /usr/local/include
I can't seem to find a standard way to have Tilinos just look in those locations to find whatever they need. [/EDIT]
hopefully this doesn't show my ineptness but helps debug the issue. After running cmake here's my CMakeCache.txt
Does the above help any?
[edited by jhux2 to hide listing]
Does the above help any?
I noticed that you're using Ninja. It could be that your Ninja version is out of date. Could you try again, but omit the -GNinja
option?
It looks like CMake didn't find MPI somehow. (Search for UNINITIALIZED in your listing.) Are you able to build generic MPI programs using /usr/local/bin/mpicxx
directly?
Does the above help any?
I noticed that you're using Ninja. It could be that your Ninja version is out of date. Could you try again, but omit the
-GNinja
option?It looks like CMake didn't find MPI somehow. (Search for UNINITIALIZED in your listing.) Are you able to build generic MPI programs using
/usr/local/bin/mpicxx
directly?
I am using the kitware fork of ninja that supports Fortran, I think that's the newest version: ninja --version 1.8.2.git.kitware.dyndep-1.jobserver-1 url: https://github.com/Kitware/ninja
as for compiling mpi programs yes, I've built metis, parmetis, scotch, parscotch, blas, lapack, scalapack, openblas, openmpi, mumps; all using the same mpi* install.
[EDIT] I recently forked flang: https://github.com/teamblubee/flang and that allows me to use the native toolchain; llvm/clang to build fortran files. so this has been a project of mine to bring quite a few unmaintained FreeBSD packages up to date. [/EDIT]
I'll try the build w/o Ninja and report back.
@trilinos/framework
Removing -GNinja from the cmake argument list;
without my patches the build fails with cannot find "mpi.h" with my patches, the build still fails with the same error.
Do you have any suggestions?
@jwillenbring @prwolfe @bartlettroscoe @william76 any suggestions?
@mhoemmen @teamblubee
Nothing specific. Have you verified the sanity of your MPI setup by creating a small example that uses MPI and not Trilinos, and then possibly by using a similar example that uses CMake and MPI but not Trilinos?
Run make VERBOSE=1 <target_name>
on that object file and see what the build line looks like. Also do that for the link line. Then you can copy and paste and manually run those commands to see what is happening.
@jwillenbring I have verified that my MPI install does work, I've had to build numerous other subpackages with MPI.
The main issue seems to come from the fact that these Trilinos projects are looking for "mpi.h", which seems like it's expecting the headers to be in the same directory.
@bartlettroscoe I totally forgot about this option. Here are the results.
I thin I see the issue; the build fails here:
[28/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_ArrayView.cpp.o
[29/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CWrapperSupport.cpp.o
[30/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CommandLineProcessor.cpp.o
[31/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Describable.cpp.o
[32/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Details_Allocator.cpp.o
[33/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o
FAILED: packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o
/usr/bin/c++ -DTEUCHOSCORE_LIB_EXPORTS_MODE -Dteuchoscore_EXPORTS -I. -Ipackages/teuchos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src -Ipackages/kokkos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos/core/src -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -MD -MT packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -MF packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o.d -o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -c /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:49:12: fatal error: 'mpi.h' file not found
# include <mpi.h>
^~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
gmake[1]: *** [/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/cmake/tribits/core/utils/NinjaMakefileCommon.make:20: install] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
using Ninja the CMAKE build directory contains build.ninja
build packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o: CXX_COMPILER__teuchoscore /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp || cmake_object_order_depends_target_teuchoscore
DEFINES = -DTEUCHOSCORE_LIB_EXPORTS_MODE -Dteuchoscore_EXPORTS
DEP_FILE = packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o.d
FLAGS = -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC
INCLUDES = -I. -Ipackages/teuchos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src -Ipackages/kokkos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos/core/src
OBJECT_DIR = packages/teuchos/core/src/CMakeFiles/teuchoscore.dir
OBJECT_FILE_DIR = packages/teuchos/core/src/CMakeFiles/teuchoscore.dir
build packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_HashUtils.cpp.o: CXX_COMPILER__teuchoscore /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_HashUtils.cpp || cmake_object_order_depends_target_teuchoscore
Using Makefiles errors out here
[ 13%] Building C object packages/common/auxiliarySoftware/SuiteSparse/src/CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_sort.c.o
cd /wrkdirs/usr/ports/math/trilinos/work/.build/packages/common/auxiliarySoftware/SuiteSparse/src && /usr/bin/cc -Dtrilinosss_EXPORTS -I/wrkdirs/usr/ports/math/trilinos/work/.build -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/AMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/BTF/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/CAMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/CCOLAMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/COLAMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/KLU/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/UFconfig -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_sort.c.o -c /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/KLU/Source/trilinos_klu_sort.c
[ 13%] Building C object packages/common/auxiliarySoftware/SuiteSparse/src/CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_tsolve.c.o
cd /wrkdirs/usr/ports/math/trilinos/work/.build/packages/common/auxiliarySoftware/SuiteSparse/src && /usr/bin/cc -Dtrilinosss_EXPORTS -I/wrkdirs/usr/ports/math/trilinos/work/.build -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/AMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/BTF/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/CAMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/CCOLAMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/COLAMD/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/KLU/Include -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/UFconfig -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_tsolve.c.o -c /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/common/auxiliarySoftware/SuiteSparse/src/KLU/Source/trilinos_klu_tsolve.c
[ 13%] Linking C shared library libtrilinosss.so
cd /wrkdirs/usr/ports/math/trilinos/work/.build/packages/common/auxiliarySoftware/SuiteSparse/src && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/trilinosss.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -Wno-unused-command-line-argument --no-undefined -I/usr/local/include -I/usr/local/flang/include -I/usr/local/llvm60/include -I/usr/local/llvm60/lib/clang/6.0.1/include -L/usr/local/lib -L/usr/local/flang/lib -fPIC -L/usr/local/llvm60/lib -lm -lflang -lflangrti -lomptarget -lompstub -lomp -lpgmath -lm -lexecinfo -fstack-protector -shared -Wl,-soname,libtrilinosss.so.12 -o libtrilinosss.so.12.13 CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_1.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_2.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_aat.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_control.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_defaults.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_dump.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_global.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_info.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l1.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l2.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l_aat.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l_order.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l_post_tree.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l_postorder.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l_preprocess.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_l_valid.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_order.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_post_tree.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_postorder.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_preprocess.c.o CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_valid.c.o CMakeFiles/trilinosss.dir/BTF/Source/trilinos_btf_l_maxtrans.c.o CMakeFiles/trilinosss.dir/BTF/Source/trilinos_btf_l_order.c.o CMakeFiles/trilinosss.dir/BTF/Source/trilinos_btf_l_strongcomp.c.o CMakeFiles/trilinosss.dir/BTF/Source/trilinos_btf_maxtrans.c.o CMakeFiles/trilinosss.dir/BTF/Source/trilinos_btf_order.c.o CMakeFiles/trilinosss.dir/BTF/Source/trilinos_btf_strongcomp.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_1.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_2.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_aat.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_control.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_defaults.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_dump.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_global.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_info.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_l2.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_l_postorder.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_order.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_postorder.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_preprocess.c.o CMakeFiles/trilinosss.dir/CAMD/Source/trilinos_camd_valid.c.o CMakeFiles/trilinosss.dir/CCOLAMD/Source/trilinos_ccolamd.c.o CMakeFiles/trilinosss.dir/CCOLAMD/Source/trilinos_ccolamd_global.c.o CMakeFiles/trilinosss.dir/CCOLAMD/Source/trilinos_ccolamd_l.c.o CMakeFiles/trilinosss.dir/COLAMD/Source/trilinos_colamd.c.o CMakeFiles/trilinosss.dir/COLAMD/Source/trilinos_colamd_global.c.o CMakeFiles/trilinosss.dir/COLAMD/Source/trilinos_colamd_l.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_analyze.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_analyze_given.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_defaults.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_diagnostics.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_dump.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_extract.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_factor.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_free_numeric.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_free_symbolic.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_impl.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_kernel.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_analyze.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_analyze_given.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_defaults.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_factor.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_free_numeric.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_free_symbolic.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_kernel.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_memory.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_scale.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_l_solve.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_memory.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_refactor.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_scale.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_solve.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_sort.c.o CMakeFiles/trilinosss.dir/KLU/Source/trilinos_klu_tsolve.c.o -Wl,-rpath,:::::::::::::: -lm
cd /wrkdirs/usr/ports/math/trilinos/work/.build/packages/common/auxiliarySoftware/SuiteSparse/src && /usr/local/bin/cmake -E cmake_symlink_library libtrilinosss.so.12.13 libtrilinosss.so.12 libtrilinosss.so
gmake[3]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
[ 13%] Built target trilinosss
gmake[2]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
gmake[1]: *** [Makefile:166: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
*** Error code 2
it seems like the same error; looking for mpi.h next to the sources.
p.s.
you'll notice it's looking for
find Trilinos-src/packages/teuchos/core/src -type f -iname "*" -exec sed -i '' -e 's|"mpi.h"|<mpi.h>|g' {} \;
The reason for that is unless Trilinos manually installs mpi.h in the directory next to the sources mpi.h will not be there on any systems that I have seen.
A possible fix add an option to include outside directories to the library and include directories? I cannot understand the reasoning why the tools were designed to have all the headers laid out in some flat directory BUT i'd guess there were valid reasons for that decision.
Looks like you are using the raw c++ compiler. Please use mpicxx as the compiler
Looks like you are using the raw c++ compiler. Please use mpicxx as the compiler
If you look at the first post you see that I am passing all types of arguments to CMAKE to get it to try and use the mpicxx compiler. Those options are being ignored. ${LOCALBASE} expands to /usr/local
I've tried; having CMAKE autodetect mpi adding just MPI_BASE adding USE_MPI_WRAPPER; as shown in the original post they all fail.
@teamblubee, as mentioned at:
you can just directly set the CMake compilers with the CMake vars CMAKE_<LANG>_COMPILER
. I would recommend:
-D CMAKE_C_COMPILER=`which mpicc` \
-D CMAKE_CXX_COMPILER=`which mpicxx` \
-D CMAKE_Fortan_COMPILER:FILEPATH=`which mpif77` \
Or just pass in the full paths to the compiler wrappers above.
@teamblubee, as mentioned at:
you can just directly set the CMake compilers with the CMake vars
CMAKE_<LANG>_COMPILER
. I would recommend:-D CMAKE_C_COMPILER=`which mpicc` \ -D CMAKE_CXX_COMPILER=`which mpicxx` \ -D CMAKE_Fortan_COMPILER:FILEPATH=`which mpif77` \
Or just pass in the full paths to the compiler wrappers above.
I tried that but still Trilinos package still uses raw c++ command instead of the mpicxx wrapper scripts.
cmake arguments:
CMAKE_ARGS+= \
-DCMAKE_INSTALL_RPATH="${PREFIX}/lib" \
-DCMAKE_CXX_COMPILER=mpic++ \
-DBUILD_SHARED_LIBS=ON \
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF \
-DTrilinos_ENABLE_Epetra=ON \
-DTrilinos_ENABLE_EpetraExt=ON \
-DTrilinos_ENABLE_Amesos=ON \
-DTrilinos_ENABLE_Epetra=ON \
-DTrilinos_ENABLE_Ifpack=ON \
-DTrilinos_ENABLE_AztecOO=ON \
-DTrilinos_ENABLE_Sacado=ON \
-DTrilinos_ENABLE_Teuchos=ON \
-DTrilinos_ENABLE_MueLu=ON \
-DTrilinos_ENABLE_ML=ON \
-DTrilinos_ENABLE_ROL=ON \
-DTrilinos_ENABLE_Fortran=ON \
-DTrilinos_ENABLE_Zoltan=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DKOKKOS_GMAKE_TPL_INCLUDE_DIRS=${LOCALBASE}/include \
-DKOKKOS_GMAKE_TPL_LIBRARY_DIRS=${LOCALBASE}/lib \
-DKOKKOS_CPP_FLAGS=${CPPFLAGS} \
-DTPL_ENABLE_DLlib=OFF \
-DTPL_ENABLE_MPI=ON \
-DCMAKE_C_COMPILER="${LOCALBASE}/bin/mpicc" \
-DCMAKE_CXX_COMPILER="${LOCALBASE}/bin/mpic++" \
-DCMAKE_Fortran_COMPILER="${LOCALBASE}/bin/mpif77"
CMakeCache.txt: https://pastebin.com/Yp9UGZAz
Build failure
[29/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CWrapperSupport.cpp.o
[30/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CommandLineProcessor.cpp.o
[31/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Describable.cpp.o
[32/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Details_Allocator.cpp.o
[33/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o
FAILED: packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o
/usr/bin/c++ -DTEUCHOSCORE_LIB_EXPORTS_MODE -Dteuchoscore_EXPORTS -I. -Ipackages/teuchos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src -Ipackages/kokkos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos/core/src -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -MD -MT packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -MF packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o.d -o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -c /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:49:12: fatal error: 'mpi.h' file not found
# include <mpi.h>
^~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
gmake[1]: *** [/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/cmake/tribits/core/utils/NinjaMakefileCommon.make:20: install] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
*** Error code 2
find command
find /usr/local/include/ -type f -name "mpi*"
/usr/local/include/mpif-c-constants-decl.h
/usr/local/include/mpif-handles.h
/usr/local/include/mpif-constants.h
/usr/local/include/mpif.h
/usr/local/include/mpi_portable_platform.h
/usr/local/include/mpif-config.h
/usr/local/include/mpif-io-constants.h
/usr/local/include/mpi.h
/usr/local/include/openmpi/ompi/mpiext/pcollreq/mpif-h/mpiext_pcollreq_mpifh.h
/usr/local/include/openmpi/ompi/mpiext/pcollreq/c/mpiext_pcollreq_c.h
/usr/local/include/openmpi/ompi/mpiext/cuda/c/mpiext_cuda_c.h
/usr/local/include/openmpi/ompi/mpiext/affinity/c/mpiext_affinity_c.h
/usr/local/include/mpif-ext.h
/usr/local/include/mpif-sizeof.h
/usr/local/include/mpif-sentinels.h
/usr/local/include/mpif-externals.h
/usr/local/include/mpif-io-handles.h
/usr/local/include/mpi-ext.h
find /usr/local/lib -type f -name "mpi*"
/usr/local/lib/mpi_f08_ext.mod
/usr/local/lib/mpi_f08_interfaces.mod
/usr/local/lib/mpi.mod
/usr/local/lib/mpi_f08.mod
/usr/local/lib/mpi_ext.mod
/usr/local/lib/mpi_f08_interfaces_callbacks.mod
/usr/local/lib/mpi_f08_types.mod
/usr/local/lib/mpi_f08_callbacks.mod
Does my setup look reasonable?
@teamblubee, did you remember to delete your cache first with rm -r CMakeCache.txt CMakeFiles
and then configure from scratch? Also, please attached STDOUT from cmake
when you configure from scratch.
@teamblubee, did you remember to delete your cache first with
rm -r CMakeCache.txt CMakeFiles
and then configure from scratch? Also, please attached STDOUT fromcmake
when you configure from scratch.
Every build is created in a new tmp virtual filesystem. The library dependencies and configure scripts is below.
=======================<phase: lib-depends >============================
===> Trilinos- depends on shared library: libblas.so - not found
===> Installing existing package /packages/All/lapack-_7.txz
[12amd64-FLANG] Installing lapack-_7...
[12amd64-FLANG] Extracting lapack-_7: .......... done
===> Trilinos- depends on shared library: libblas.so - found (/usr/local/lib/libblas.so)
===> Returning to build of Trilinos-
===> Trilinos- depends on shared library: libmpi.so - not found
===> Installing existing package /packages/All/openmpi-3.1.2.txz
[12amd64-FLANG] Installing openmpi-3.1.2...
[12amd64-FLANG] `-- Installing bash-4.4.23...
[12amd64-FLANG] `-- Extracting bash-4.4.23: .......... done
[12amd64-FLANG] `-- Installing hwloc-1.11.7_2...
[12amd64-FLANG] `-- Extracting hwloc-1.11.7_2: .......... done
[12amd64-FLANG] `-- Installing libevent-2.1.8_2...
[12amd64-FLANG] `-- Extracting libevent-2.1.8_2: .......... done
[12amd64-FLANG] `-- Installing munge-0.5.13_1...
[12amd64-FLANG] `-- Extracting munge-0.5.13_1: ......... done
[12amd64-FLANG] Extracting openmpi-3.1.2: .......... done
===> Trilinos- depends on shared library: libmpi.so - found (/usr/local/lib/libmpi.so)
===> Returning to build of Trilinos-
===> Trilinos- depends on shared library: libscalapack.so - not found
===> Installing existing package /packages/All/scalapack-2.0.2_15.txz
[12amd64-FLANG] Installing scalapack-2.0.2_15...
[12amd64-FLANG] Extracting scalapack-2.0.2_15: .......... done
===> Trilinos- depends on shared library: libscalapack.so - found (/usr/local/lib/libscalapack.so)
===> Returning to build of Trilinos-
===> Trilinos- depends on shared library: libomp.so - found (/usr/local/llvm60/lib/libomp.so)
===> Trilinos- depends on shared library: libomptarget.so - found (/usr/local/llvm60/lib/libomptarget.so)
===> Trilinos- depends on shared library: libpgmath.so - found (/usr/local/flang/lib/libpgmath.so)
===> Trilinos- depends on shared library: libflang.so - found (/usr/local/flang/lib/libflang.so)
===========================================================================
=>> Recording filesystem state for prebuild... done
=======================<phase: configure >============================
===> Trilinos- depends on executable: doxygen - found
===> Trilinos- depends on file: /usr/local/bin/cmake - found
===> Trilinos- depends on executable: ninja - found
===> Trilinos- depends on executable: clang60 - found
===> Trilinos- depends on executable: clang++60 - found
===> Trilinos- depends on executable: flang - found
===> Trilinos- depends on executable: gmake - found
===> Trilinos- depends on file: /usr/local/bin/python2.7 - found
===> Trilinos- depends on file: /usr/local/bin/as - found
===> Trilinos- depends on shared library: libblas.so - found (/usr/local/lib/libblas.so)
===> Trilinos- depends on shared library: libmpi.so - found (/usr/local/lib/libmpi.so)
===> Trilinos- depends on shared library: libscalapack.so - found (/usr/local/lib/libscalapack.so)
===> Trilinos- depends on shared library: libomp.so - found (/usr/local/llvm60/lib/libomp.so)
===> Trilinos- depends on shared library: libomptarget.so - found (/usr/local/llvm60/lib/libomptarget.so)
===> Trilinos- depends on shared library: libpgmath.so - found (/usr/local/flang/lib/libpgmath.so)
===> Trilinos- depends on shared library: libflang.so - found (/usr/local/flang/lib/libflang.so)
===> Configuring for Trilinos-
===> Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/math/trilinos/work/.build
Configuring Trilinos build directory
-- PROJECT_SOURCE_DIR='/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1'
-- PROJECT_BINARY_DIR='/wrkdirs/usr/ports/math/trilinos/work/.build'
-- Trilinos_TRIBITS_DIR='/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/cmake/tribits'
-- TriBITS_VERSION_STRING='0.9 (Dev)'
-- CMAKE_VERSION='3.12.2'
-- CMAKE_GENERATOR='Ninja'
-- CMAKE_HOST_SYSTEM_NAME='FreeBSD'
-- Trilinos_HOSTNAME='12amd64-FLANG'
-- Found PythonInterp: /usr/local/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.6")
-- PYTHON_EXECUTABLE='/usr/local/bin/python2.7'
Setting up major user options ...
-- Setting Trilinos_ENABLE_TriKota=OFF because '/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/TriKota/Dakota' does not exist!
NOTE: Skipping generation of TrilinosRepoVersion.txt because project source is not a git repo!
Reading list of native packages from /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/PackagesList.cmake
-- Trilinos_NUM_PACKAGES='62'
Reading list of native TPLs from /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/TPLsList.cmake
-- Trilinos_NUM_TPLS='108'
Processing Project, Repository, and Package dependency files and building internal dependencies graph ...
-- Trilinos_NUM_SE_PACKAGES='164'
-- Tentatively enabling TPL 'Pthread'
Explicitly enabled packages on input (by user): Teuchos Sacado Epetra Zoltan EpetraExt AztecOO Amesos Ifpack ML MueLu ROL 11
Explicitly enabled SE packages on input (by user): Teuchos Sacado Epetra Zoltan EpetraExt AztecOO Amesos Ifpack ML MueLu ROL 11
Explicitly disabled packages on input (by user or by default): Claps Trios TriKota NewPackage 4
Explicitly disabled SE packages on input (by user or by default): KokkosExample Claps ShyLU_NodeBasker ShyLU_NodeFastILU SEACASExotec2 SEACASSlice Trioscommsplitter Triossupport Triosnnti Triosnssi Triosprograms Triosexamples Triostests Triosnetcdf-service Trios TriKota STKExp ShyLU_DDBDDC ShyLU_DDCore PanzerExprEval NewPackage 21
Explicitly enabled TPLs on input (by user): Pthread MPI 2
Explicitly disabled TPLs on input (by user or by default): DLlib 1
Disabling all packages that have a required dependency on disabled TPLs and optional package TPL support based on TPL_ENABLE_<TPL>=OFF ...
Disabling subpackages for hard disables of parent packages due to Trilinos_ENABLE_<PARENT_PACKAGE>=OFF ...
Disabling forward required SE packages and optional intra-package support that have a dependancy on disabled SE packages Trilinos_ENABLE_<TRIBITS_PACKAGE>=OFF ...
-- Setting ROL_ENABLE_TriKota=OFF because ROL has an optional library dependence on disabled package TriKota
Enabling subpackages for hard enables of parent packages due to Trilinos_ENABLE_<PARENT_PACKAGE>=ON ...
-- Setting subpackage enable Trilinos_ENABLE_TeuchosCore=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosParser=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosParameterList=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosComm=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosNumerics=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosRemainder=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosKokkosCompat=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosKokkosComm=ON because parent package Trilinos_ENABLE_Teuchos=ON
Enabling all required upstream SE packages for current set of enabled packages (Trilinos_ENABLE_SECONDARY_TESTED_CODE=ON) ...
-- Setting Trilinos_ENABLE_Xpetra=ON because MueLu has a required dependence on Xpetra
-- Setting Trilinos_ENABLE_TrilinosSS=ON because Amesos has a required dependence on TrilinosSS
-- Setting Trilinos_ENABLE_Triutils=ON because AztecOO has a required dependence on Triutils
-- Setting Trilinos_ENABLE_KokkosCore=ON because TeuchosKokkosComm has a required dependence on KokkosCore
Enabling all optional intra-package enables <TRIBITS_PACKAGE>_ENABLE_<DEPPACKAGE> that are not currently disabled if both sets of packages are enabled ...
-- Setting TeuchosCore_ENABLE_KokkosCore=ON since Trilinos_ENABLE_TeuchosCore=ON AND Trilinos_ENABLE_KokkosCore=ON
-- Setting Teuchos_ENABLE_TeuchosKokkosCompat=ON since Trilinos_ENABLE_Teuchos=ON AND Trilinos_ENABLE_TeuchosKokkosCompat=ON
-- Setting Teuchos_ENABLE_TeuchosKokkosComm=ON since Trilinos_ENABLE_Teuchos=ON AND Trilinos_ENABLE_TeuchosKokkosComm=ON
-- Setting Sacado_ENABLE_Teuchos=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting Sacado_ENABLE_KokkosCore=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_KokkosCore=ON
-- Setting Sacado_ENABLE_TeuchosKokkosComm=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_TeuchosKokkosComm=ON
-- Setting Sacado_ENABLE_TeuchosCore=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_TeuchosCore=ON
-- NOT setting Sacado_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- Setting Epetra_ENABLE_Teuchos=ON since Trilinos_ENABLE_Epetra=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting EpetraExt_ENABLE_Triutils=ON since Trilinos_ENABLE_EpetraExt=ON AND Trilinos_ENABLE_Triutils=ON
-- Setting Xpetra_ENABLE_Epetra=ON since Trilinos_ENABLE_Xpetra=ON AND Trilinos_ENABLE_Epetra=ON
-- Setting Xpetra_ENABLE_EpetraExt=ON since Trilinos_ENABLE_Xpetra=ON AND Trilinos_ENABLE_EpetraExt=ON
-- NOT setting Xpetra_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- Setting Xpetra_ENABLE_KokkosCore=ON since Trilinos_ENABLE_Xpetra=ON AND Trilinos_ENABLE_KokkosCore=ON
-- NOT setting Xpetra_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_KokkosKernels=ON since KokkosKernels is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- NOTE: Xpetra_ENABLE_Epetra=ON is already set!
-- NOTE: Xpetra_ENABLE_EpetraExt=ON is already set!
-- NOT setting Xpetra_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- NOTE: Xpetra_ENABLE_KokkosCore=ON is already set!
-- NOT setting Xpetra_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_KokkosKernels=ON since KokkosKernels is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- Setting AztecOO_ENABLE_Teuchos=ON since Trilinos_ENABLE_AztecOO=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting Amesos_ENABLE_EpetraExt=ON since Trilinos_ENABLE_Amesos=ON AND Trilinos_ENABLE_EpetraExt=ON
-- Setting Amesos_ENABLE_Triutils=ON since Trilinos_ENABLE_Amesos=ON AND Trilinos_ENABLE_Triutils=ON
-- NOT setting Amesos_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- Setting Ifpack_ENABLE_Amesos=ON since Trilinos_ENABLE_Ifpack=ON AND Trilinos_ENABLE_Amesos=ON
-- Setting Ifpack_ENABLE_EpetraExt=ON since Trilinos_ENABLE_Ifpack=ON AND Trilinos_ENABLE_EpetraExt=ON
-- Setting Ifpack_ENABLE_AztecOO=ON since Trilinos_ENABLE_Ifpack=ON AND Trilinos_ENABLE_AztecOO=ON
-- NOT setting Ifpack_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- Setting ML_ENABLE_Teuchos=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting ML_ENABLE_Epetra=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Epetra=ON
-- Setting ML_ENABLE_Zoltan=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Zoltan=ON
-- NOT setting ML_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- Setting ML_ENABLE_Amesos=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Amesos=ON
-- Setting ML_ENABLE_Ifpack=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Ifpack=ON
-- Setting ML_ENABLE_AztecOO=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_AztecOO=ON
-- Setting ML_ENABLE_EpetraExt=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_EpetraExt=ON
-- NOT setting ML_ENABLE_Isorropia=ON since Isorropia is NOT enabled at this point!
-- Setting MueLu_ENABLE_Amesos=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Amesos=ON
-- NOT setting MueLu_ENABLE_Amesos2=ON since Amesos2 is NOT enabled at this point!
-- Setting MueLu_ENABLE_Epetra=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Epetra=ON
-- Setting MueLu_ENABLE_EpetraExt=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_EpetraExt=ON
-- NOT setting MueLu_ENABLE_Teko=ON since Teko is NOT enabled at this point!
-- Setting MueLu_ENABLE_Ifpack=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Ifpack=ON
-- NOT setting MueLu_ENABLE_Ifpack2=ON since Ifpack2 is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Intrepid2=ON since Intrepid2 is NOT enabled at this point!
-- Setting MueLu_ENABLE_ML=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_ML=ON
-- NOT setting MueLu_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- Setting MueLu_ENABLE_Zoltan=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Zoltan=ON
-- NOT setting MueLu_ENABLE_Zoltan2=ON since Zoltan2 is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Stratimikos=ON since Stratimikos is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_ThyraTpetraAdapters=ON since ThyraTpetraAdapters is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Isorropia=ON since Isorropia is NOT enabled at this point!
-- Setting MueLu_ENABLE_KokkosCore=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_KokkosCore=ON
-- NOT setting MueLu_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_KokkosKernels=ON since KokkosKernels is NOT enabled at this point!
-- Setting MueLu_ENABLE_AztecOO=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_AztecOO=ON
-- NOT setting MueLu_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Belos=ON since Belos is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Pamgen=ON since Pamgen is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Belos=ON since Belos is NOT enabled at this point!
-- Setting ROL_ENABLE_Epetra=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_Epetra=ON
-- NOT setting ROL_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- Setting ROL_ENABLE_Sacado=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_Sacado=ON
-- NOT setting ROL_ENABLE_Intrepid=ON since Intrepid is NOT enabled at this point!
-- NOT setting ROL_ENABLE_MiniTensor=ON since MiniTensor is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Shards=ON since Shards is NOT enabled at this point!
-- Setting ROL_ENABLE_Amesos=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_Amesos=ON
-- NOT setting ROL_ENABLE_Amesos2=ON since Amesos2 is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Ifpack2=ON since Ifpack2 is NOT enabled at this point!
-- Setting ROL_ENABLE_MueLu=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_MueLu=ON
-- NOT setting ROL_ENABLE_Tempus=ON since Tempus is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Gtest=ON since Gtest is NOT enabled at this point!
Enabling all remaining required TPLs for current set of enabled packages ...
-- Setting TPL_ENABLE_BLAS=ON because it is required by the enabled package TeuchosNumerics
-- Setting TPL_ENABLE_LAPACK=ON because it is required by the enabled package TeuchosNumerics
Enabling all optional package TPL support <TRIBITS_PACKAGE>_ENABLE_<DEPTPL> not currently disabled for enabled TPLs ...
-- Setting KokkosCore_ENABLE_Pthread=ON since TPL_ENABLE_Pthread=ON
-- Setting TeuchosCore_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting TeuchosCore_ENABLE_Pthread=ON since TPL_ENABLE_Pthread=ON
-- Setting TeuchosKokkosCompat_ENABLE_Pthread=ON since TPL_ENABLE_Pthread=ON
-- Setting TeuchosKokkosComm_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting Epetra_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting Zoltan_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting ML_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
Enabling TPLs based on <TRIBITS_PACKAGE>_ENABLE_<TPL>=ON if TPL is not explicitly disabled ...
Set cache entries for optional packages/TPLs and tests/examples for packages actually enabled ...
Enabling the shell of non-enabled parent packages (mostly for show) that have at least one subpackage enabled ...
-- Setting Trilinos_ENABLE_Kokkos=ON because Trilinos_ENABLE_KokkosCore=ON
Final set of enabled packages: Kokkos Teuchos Sacado Epetra Zoltan Triutils TrilinosSS EpetraExt Xpetra AztecOO Amesos Ifpack ML MueLu ROL 15
Final set of enabled SE packages: KokkosCore Kokkos TeuchosCore TeuchosParser TeuchosParameterList TeuchosComm TeuchosNumerics TeuchosRemainder TeuchosKokkosCompat TeuchosKokkosComm Teuchos Sacado Epetra Zoltan Triutils TrilinosSS EpetraExt Xpetra AztecOO Amesos Ifpack ML MueLu ROL 24
Final set of non-enabled packages: TrilinosFrameworkTests Gtest ThreadPool KokkosKernels RTOp MiniTensor Shards GlobiPack Tpetra Domi Thyra OptiPack Isorropia Pliris Claps Galeri Pamgen Zoltan2 Belos ShyLU_Node Amesos2 SEACAS Trios Komplex Anasazi Ifpack2 Stratimikos FEI Teko TriKota Intrepid Intrepid2 STK Phalanx NOX Moertel ShyLU_DD ShyLU Rythmos Tempus Stokhos Piro Panzer PyTrilinos NewPackage TrilinosCouplings Pike 47
Final set of non-enabled SE packages: TrilinosFrameworkTests Gtest ThreadPool KokkosContainers KokkosAlgorithms KokkosExample KokkosKernels RTOp MiniTensor Shards GlobiPack TpetraClassic TpetraTSQR TpetraCore Tpetra Domi ThyraCore ThyraEpetraAdapters ThyraEpetraExtAdapters ThyraTpetraAdapters Thyra OptiPack Isorropia Pliris Claps Galeri Pamgen Zoltan2 Belos ShyLU_NodeHTS ShyLU_NodeTacho ShyLU_NodeBasker ShyLU_NodeFastILU ShyLU_Node Amesos2 SEACASExodus SEACASExodus_for SEACASExoIIv2for32 SEACASNemesis SEACASIoss SEACASChaco SEACASAprepro_lib SEACASSupes SEACASSuplib SEACASSuplibC SEACASSuplibCpp SEACASSVDI SEACASPLT SEACASAlgebra SEACASAprepro SEACASBlot SEACASConjoin SEACASEjoin SEACASEpu SEACASExo2mat SEACASExodiff SEACASExomatlab SEACASExotxt SEACASExo_format SEACASEx1ex2v2 SEACASExotec2 SEACASFastq SEACASGjoin SEACASGen3D SEACASGenshell SEACASGrepos SEACASExplore SEACASMapvarlib SEACASMapvar SEACASMapvar-kd SEACASMat2exo SEACASNemslice SEACASNemspread SEACASNumbers SEACASSlice SEACASTxtexo SEACASEx2ex1v2 SEACAS Trioscommsplitter Triossupport Triosnnti Triosnssi Triosprograms Triosexamples Triostests Triosnetcdf-service Trios Komplex Anasazi Ifpack2 Stratimikos FEI Teko TriKota Intrepid Intrepid2 STKUtil STKSimd STKTopology STKMesh STKNGP STKIO STKUnit_test_utils STKMath STKSearch STKSearchUtil STKTransfer STKTools STKUnit_tests STKDoc_tests STKExp STKExprEval STK Phalanx NOX Moertel ShyLU_DDBDDC ShyLU_DDFROSch ShyLU_DDCore ShyLU_DDCommon ShyLU_DD ShyLU Rythmos Tempus Stokhos Piro PanzerCore PanzerDofMgr PanzerDiscFE PanzerAdaptersSTK PanzerAdaptersIOSS PanzerMiniEM PanzerExprEval Panzer PyTrilinos NewPackage TrilinosCouplings PikeBlackBox PikeImplicit Pike 140
Final set of enabled TPLs: Pthread MPI BLAS LAPACK 4
Final set of non-enabled TPLs: MKL yaml-cpp Peano CUDA CUSPARSE Thrust Cusp TBB HWLOC QTHREAD BinUtils ARPREC QD Boost Scotch OVIS gpcd METIS MTMETIS ParMETIS PuLP TopoManager LibTopoMap PaToH CppUnit ADOLC ADIC TVMET MF ExodusII Nemesis XDMF Zlib HDF5 CGNS Pnetcdf Netcdf y12m SuperLUDist SuperLUMT SuperLU Cholmod UMFPACK MA28 AMD CSparse HYPRE PETSC BLACS SCALAPACK MUMPS PARDISO_MKL PARDISO Oski TAUCS ForUQTK Dakota HIPS MATLAB CASK SPARSKIT QT gtest BoostLib BoostAlbLib OpenNURBS Portals CrayPortals Gemini InfiniBand BGPDCMF BGQPAMI Pablo HPCToolkit Clp GLPK qpOASES Matio PAPI MATLABLib Eigen X11 Lemon GLM quadmath CAMAL RTlib DLlib AmgX CGAL CGALCore VTune TASMANIAN ArrayFireCPU SimMesh SimModel SimParasolid SimAcis SimField Valgrind QUO ViennaCL Avatar pebbl 104
Setting up export dependencies for all enabled SE packages ...
Probing the environment ...
-- USE_XSDK_DEFAULTS='FALSE'
-- BUILD_SHARED_LIBS='ON'
-- CMAKE_BUILD_TYPE='Release'
-- MPI_USE_COMPILER_WRAPPERS='ON'
-- Leaving current CMAKE_C_COMPILER=cc since it is already set!
-- Leaving current CMAKE_CXX_COMPILER=c++ since it is already set!
-- Leaving current CMAKE_Fortran_COMPILER=/usr/local/bin/mpif77 since it is already set!
-- MPI_EXEC='/usr/local/bin/mpiexec'
-- The C compiler identification is Clang 5.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_C_COMPILER_ID='Clang'
-- CMAKE_C_COMPILER_VERSION='5.0.1'
-- The CXX compiler identification is Clang 5.0.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_CXX_COMPILER_ID='Clang'
-- CMAKE_CXX_COMPILER_VERSION='5.0.1'
-- The Fortran compiler identification is Flang 99.99.1
-- Check for working Fortran compiler: /usr/local/bin/mpif77
-- Check for working Fortran compiler: /usr/local/bin/mpif77 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/local/bin/mpif77 supports Fortran 90
-- Checking whether /usr/local/bin/mpif77 supports Fortran 90 -- yes
-- KOKKOS_ARCH=''
-- Setting Kokkos_ENABLE_Profiling_DEFAULT=OFF because TPL_ENABLE_DLlib=OFF
-- Using the legacy tribits build because KOKKOS_ARCH not set
--
-- ****************** Kokkos Settings ******************
-- Execution Spaces
-- Device Parallel: None
-- Host Parallel: None
-- Host Serial: Serial
--
-- Architectures:
-- None
--
-- Enabled options
-- KOKKOS_ENABLE_SERIAL
-- KOKKOS_ENABLE_DEPRECATED_CODE
--
-- Final kokkos settings variable:
-- env;KOKKOS_CMAKE=yes;KOKKOS_SRC_PATH=/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos;KOKKOS_PATH=/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos;KOKKOS_INSTALL_PATH=/wrkdirs/usr/ports/math/trilinos/work/stage/usr/local;KOKKOS_ARCH=None;KOKKOS_DEVICES=Serial;KOKKOS_DEBUG=no;KOKKOS_OPTIONS=disable_profiling,disable_dualview_modify_check
-- *****************************************************
--
-- Trilinos_SET_INSTALL_RPATH='TRUE'
-- CMAKE_INSTALL_RPATH_USE_LINK_PATH='YES'
-- CMAKE_INSTALL_RPATH='/usr/local/lib'
-- Looking for C++ include sys/time.h
-- Looking for C++ include sys/time.h - found
-- Looking for C++ include time.h
-- Looking for C++ include time.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Found Perl: /usr/local/bin/perl (found version "5.26.2")
-- Fortran name mangling: LOWER UNDER
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/CXX Compiler Compatibility
-- Verifying Fortran/CXX Compiler Compatibility - Success
-- Search for C++11 compiler flag ...
-- Performing Test CXX11_FLAGS_COMPILE_RESULT_0
-- Performing Test CXX11_FLAGS_COMPILE_RESULT_0 - Success
-- Successful C++11 flag: '-std=c++11'
-- Performing Test CXX11_CONSECUTIVE_RIGHT_ANGLE_BRACKETS
-- Performing Test CXX11_CONSECUTIVE_RIGHT_ANGLE_BRACKETS - Success
-- Performing Test CXX11_AUTOTYPEDVARIABLES
-- Performing Test CXX11_AUTOTYPEDVARIABLES - Success
-- Performing Test CXX11_LAMBDAS
-- Performing Test CXX11_LAMBDAS - Success
-- Trilinos_ENABLE_CXX11=ON
-- Performing Test MATH_LIBRARY_IS_SUPPLIED
-- Performing Test MATH_LIBRARY_IS_SUPPLIED - Success
-- Performing Test FINITE_VALUE_HAVE_GLOBAL_ISNAN
-- Performing Test FINITE_VALUE_HAVE_GLOBAL_ISNAN - Success
-- Performing Test FINITE_VALUE_HAVE_STD_ISNAN
-- Performing Test FINITE_VALUE_HAVE_STD_ISNAN - Success
-- Performing Test FINITE_VALUE_HAVE_GLOBAL_ISINF
-- Performing Test FINITE_VALUE_HAVE_GLOBAL_ISINF - Success
-- Performing Test FINITE_VALUE_HAVE_STD_ISINF
-- Performing Test FINITE_VALUE_HAVE_STD_ISINF - Success
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.14") found components: doxygen dot
Getting information for all enabled TPLs ...
Processing enabled TPL: Pthread (enabled explicitly, disable with -DTPL_ENABLE_Pthread=OFF)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Found Threads: TRUE
Processing enabled TPL: MPI (enabled explicitly, disable with -DTPL_ENABLE_MPI=OFF)
Processing enabled TPL: BLAS (enabled by TeuchosNumerics, disable with -DTPL_ENABLE_BLAS=OFF)
-- BLAS_LIBRARY_NAMES='blas blas_win32'
-- Searching for libs in BLAS_LIBRARY_DIRS=''
-- Searching for a lib in the set "blas blas_win32":
-- Searching for lib 'blas' ...
-- Found lib '/usr/local/lib/libblas.so'
-- TPL_BLAS_LIBRARIES='/usr/local/lib/libblas.so'
Processing enabled TPL: LAPACK (enabled by TeuchosNumerics, disable with -DTPL_ENABLE_LAPACK=OFF)
-- LAPACK_LIBRARY_NAMES='lapack lapack_win32'
-- Searching for libs in LAPACK_LIBRARY_DIRS=''
-- Searching for a lib in the set "lapack lapack_win32":
-- Searching for lib 'lapack' ...
-- Found lib '/usr/local/lib/liblapack.so'
-- TPL_LAPACK_LIBRARIES='/usr/local/lib/liblapack.so'
Setting up testing support ...
-- CTEST_DROP_METHOD='http'
-- CTEST_DROP_SITE='testing-vm.sandia.gov'
-- CTEST_PROJECT_NAME='Trilinos'
-- CTEST_DROP_LOCATION='/cdash/submit.php?project=Trilinos'
-- CTEST_TRIGGER_SITE=''
-- CTEST_DROP_SITE_CDASH='TRUE'
Configuring individual enabled Trilinos packages ...
Processing enabled package: Kokkos (Core)
LEGACY STUFF GETTING CALLED
Processing enabled package: Teuchos (Core, Parser, ParameterList, Comm, Numerics, Remainder, KokkosCompat, KokkosComm)
-- Performing Test HAVE_GCC_ABI_DEMANGLE
-- Performing Test HAVE_GCC_ABI_DEMANGLE - Success
-- Performing Test HAVE_TEUCHOS_BLASFLOAT
-- Performing Test HAVE_TEUCHOS_BLASFLOAT - Success
-- Performing Test LAPACK_SLAPY2_WORKS
-- Performing Test LAPACK_SLAPY2_WORKS - Success
-- Performing Test HAVE_TEUCHOS_LAPACKLARND
-- Performing Test HAVE_TEUCHOS_LAPACKLARND - Failed
-- Performing Test HAVE_CXX_ATTRIBUTE_CONSTRUCTOR
-- Performing Test HAVE_CXX_ATTRIBUTE_CONSTRUCTOR - Success
-- C++ compiler supports __attribute__((constructor)) syntax
-- Performing Test HAVE_CXX_ATTRIBUTE_WEAK
-- Performing Test HAVE_CXX_ATTRIBUTE_WEAK - Success
-- C++ compiler supports __attribute__((weak)) syntax and testing weak functions
-- Performing Test HAVE_CXX_PRAGMA_WEAK
-- Performing Test HAVE_CXX_PRAGMA_WEAK - Failed
-- C++ compiler does NOT support #pragma weak syntax and testing weak functions
Processing enabled package: Sacado (Libs)
-- Performing Test HAS_C99_TR1_CMATH
-- Performing Test HAS_C99_TR1_CMATH - Success
Processing enabled package: Epetra (Libs)
-- Looking for dggsvd3
-- Looking for dggsvd3 - not found
-- Looking for dggsvd3_
-- Looking for dggsvd3_ - found
-- Looking for DGGSVD3
-- Looking for DGGSVD3 - not found
-- Looking for DGGSVD3_
-- Looking for DGGSVD3_ - not found
Found new version of lapack. dggsvd3 is available.
Processing enabled package: Zoltan (Libs)
Processing enabled package: Triutils (Libs)
Processing enabled package: TrilinosSS (Libs)
Processing enabled package: EpetraExt (Libs)
Processing enabled package: Xpetra (Libs)
-- Xpetra support for 32 bit Epetra enabled.
-- Xpetra_Epetra_NO_32BIT_GLOBAL_INDICES=OFF
Processing enabled package: AztecOO (Libs)
Processing enabled package: Amesos (Libs)
Processing enabled package: Ifpack (Libs)
Processing enabled package: ML (Libs)
Processing enabled package: MueLu (Libs)
Processing enabled package: ROL (Libs)
-- ROL has been configured to use the build options:
-- ROL::Ptr is implemented by Teuchos::RCP
-- ROL::ParameterList is implemented by Teuchos::ParameterList
-- ROL::stacktrace is implemented by Teuchos::stacktrace
-- ROL::LinearAlgebra is implemented by Teuchos::SerialDense
-- ROL::LAPACK is implemented by Teuchos::LAPACK
No ETI support requested by packages.
Generating dummy makefiles in each directory to call Ninja ...
Set up for creating a distribution ...
Finished configuring Trilinos!
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BOOST_PYTHON_SUFFIX
CMAKE_COLOR_MAKEFILE
CMAKE_MODULE_LINKER_FLAGS
-- Build files have been written to: /wrkdirs/usr/ports/math/trilinos/work/.build
===========================================================================
=======================<phase: build >============================
===> Building for Trilinos-
gmake[1]: Entering directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
sed: 1: "\|^build ./CMakeFiles/\ ...": extra characters at the end of p command
ninja -C . ./install
ninja: Entering directory `.'
[0/1] Re-running CMake...
Configuring Trilinos build directory
-- PROJECT_SOURCE_DIR='/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1'
-- PROJECT_BINARY_DIR='/wrkdirs/usr/ports/math/trilinos/work/.build'
-- Trilinos_TRIBITS_DIR='/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/cmake/tribits'
-- TriBITS_VERSION_STRING='0.9 (Dev)'
-- CMAKE_VERSION='3.12.2'
-- CMAKE_GENERATOR='Ninja'
-- CMAKE_HOST_SYSTEM_NAME='FreeBSD'
-- Trilinos_HOSTNAME='12amd64-FLANG'
-- PYTHON_EXECUTABLE='/usr/local/bin/python2.7'
Setting up major user options ...
-- Setting Trilinos_ENABLE_TriKota=OFF because '/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/TriKota/Dakota' does not exist!
NOTE: Skipping generation of TrilinosRepoVersion.txt because project source is not a git repo!
Reading list of native packages from /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/PackagesList.cmake
-- Trilinos_NUM_PACKAGES='62'
Reading list of native TPLs from /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/TPLsList.cmake
-- Trilinos_NUM_TPLS='108'
Processing Project, Repository, and Package dependency files and building internal dependencies graph ...
-- Trilinos_NUM_SE_PACKAGES='164'
-- Tentatively enabling TPL 'Pthread'
Explicitly enabled packages on input (by user): Teuchos Sacado Epetra Zoltan EpetraExt AztecOO Amesos Ifpack ML MueLu ROL 11
Explicitly enabled SE packages on input (by user): Teuchos Sacado Epetra Zoltan EpetraExt AztecOO Amesos Ifpack ML MueLu ROL 11
Explicitly disabled packages on input (by user or by default): Claps Trios TriKota NewPackage 4
Explicitly disabled SE packages on input (by user or by default): KokkosExample Claps ShyLU_NodeBasker ShyLU_NodeFastILU SEACASExotec2 SEACASSlice Trioscommsplitter Triossupport Triosnnti Triosnssi Triosprograms Triosexamples Triostests Triosnetcdf-service Trios TriKota STKExp ShyLU_DDBDDC ShyLU_DDCore PanzerExprEval NewPackage 21
Explicitly enabled TPLs on input (by user): Pthread MPI 2
Explicitly disabled TPLs on input (by user or by default): DLlib 1
Disabling all packages that have a required dependency on disabled TPLs and optional package TPL support based on TPL_ENABLE_<TPL>=OFF ...
Disabling subpackages for hard disables of parent packages due to Trilinos_ENABLE_<PARENT_PACKAGE>=OFF ...
Disabling forward required SE packages and optional intra-package support that have a dependancy on disabled SE packages Trilinos_ENABLE_<TRIBITS_PACKAGE>=OFF ...
-- Setting ROL_ENABLE_TriKota=OFF because ROL has an optional library dependence on disabled package TriKota
Enabling subpackages for hard enables of parent packages due to Trilinos_ENABLE_<PARENT_PACKAGE>=ON ...
-- Setting subpackage enable Trilinos_ENABLE_TeuchosCore=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosParser=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosParameterList=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosComm=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosNumerics=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosRemainder=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosKokkosCompat=ON because parent package Trilinos_ENABLE_Teuchos=ON
-- Setting subpackage enable Trilinos_ENABLE_TeuchosKokkosComm=ON because parent package Trilinos_ENABLE_Teuchos=ON
Enabling all required upstream SE packages for current set of enabled packages (Trilinos_ENABLE_SECONDARY_TESTED_CODE=ON) ...
-- Setting Trilinos_ENABLE_Xpetra=ON because MueLu has a required dependence on Xpetra
-- Setting Trilinos_ENABLE_TrilinosSS=ON because Amesos has a required dependence on TrilinosSS
-- Setting Trilinos_ENABLE_Triutils=ON because AztecOO has a required dependence on Triutils
-- Setting Trilinos_ENABLE_KokkosCore=ON because TeuchosKokkosComm has a required dependence on KokkosCore
Enabling all optional intra-package enables <TRIBITS_PACKAGE>_ENABLE_<DEPPACKAGE> that are not currently disabled if both sets of packages are enabled ...
-- Setting TeuchosCore_ENABLE_KokkosCore=ON since Trilinos_ENABLE_TeuchosCore=ON AND Trilinos_ENABLE_KokkosCore=ON
-- Setting Teuchos_ENABLE_TeuchosKokkosCompat=ON since Trilinos_ENABLE_Teuchos=ON AND Trilinos_ENABLE_TeuchosKokkosCompat=ON
-- Setting Teuchos_ENABLE_TeuchosKokkosComm=ON since Trilinos_ENABLE_Teuchos=ON AND Trilinos_ENABLE_TeuchosKokkosComm=ON
-- Setting Sacado_ENABLE_Teuchos=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting Sacado_ENABLE_KokkosCore=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_KokkosCore=ON
-- Setting Sacado_ENABLE_TeuchosKokkosComm=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_TeuchosKokkosComm=ON
-- Setting Sacado_ENABLE_TeuchosCore=ON since Trilinos_ENABLE_Sacado=ON AND Trilinos_ENABLE_TeuchosCore=ON
-- NOT setting Sacado_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- Setting Epetra_ENABLE_Teuchos=ON since Trilinos_ENABLE_Epetra=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting EpetraExt_ENABLE_Triutils=ON since Trilinos_ENABLE_EpetraExt=ON AND Trilinos_ENABLE_Triutils=ON
-- Setting Xpetra_ENABLE_Epetra=ON since Trilinos_ENABLE_Xpetra=ON AND Trilinos_ENABLE_Epetra=ON
-- Setting Xpetra_ENABLE_EpetraExt=ON since Trilinos_ENABLE_Xpetra=ON AND Trilinos_ENABLE_EpetraExt=ON
-- NOT setting Xpetra_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- Setting Xpetra_ENABLE_KokkosCore=ON since Trilinos_ENABLE_Xpetra=ON AND Trilinos_ENABLE_KokkosCore=ON
-- NOT setting Xpetra_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_KokkosKernels=ON since KokkosKernels is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- NOTE: Xpetra_ENABLE_Epetra=ON is already set!
-- NOTE: Xpetra_ENABLE_EpetraExt=ON is already set!
-- NOT setting Xpetra_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- NOTE: Xpetra_ENABLE_KokkosCore=ON is already set!
-- NOT setting Xpetra_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_KokkosKernels=ON since KokkosKernels is NOT enabled at this point!
-- NOT setting Xpetra_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- Setting AztecOO_ENABLE_Teuchos=ON since Trilinos_ENABLE_AztecOO=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting Amesos_ENABLE_EpetraExt=ON since Trilinos_ENABLE_Amesos=ON AND Trilinos_ENABLE_EpetraExt=ON
-- Setting Amesos_ENABLE_Triutils=ON since Trilinos_ENABLE_Amesos=ON AND Trilinos_ENABLE_Triutils=ON
-- NOT setting Amesos_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- Setting Ifpack_ENABLE_Amesos=ON since Trilinos_ENABLE_Ifpack=ON AND Trilinos_ENABLE_Amesos=ON
-- Setting Ifpack_ENABLE_EpetraExt=ON since Trilinos_ENABLE_Ifpack=ON AND Trilinos_ENABLE_EpetraExt=ON
-- Setting Ifpack_ENABLE_AztecOO=ON since Trilinos_ENABLE_Ifpack=ON AND Trilinos_ENABLE_AztecOO=ON
-- NOT setting Ifpack_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- Setting ML_ENABLE_Teuchos=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Teuchos=ON
-- Setting ML_ENABLE_Epetra=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Epetra=ON
-- Setting ML_ENABLE_Zoltan=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Zoltan=ON
-- NOT setting ML_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- Setting ML_ENABLE_Amesos=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Amesos=ON
-- Setting ML_ENABLE_Ifpack=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_Ifpack=ON
-- Setting ML_ENABLE_AztecOO=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_AztecOO=ON
-- Setting ML_ENABLE_EpetraExt=ON since Trilinos_ENABLE_ML=ON AND Trilinos_ENABLE_EpetraExt=ON
-- NOT setting ML_ENABLE_Isorropia=ON since Isorropia is NOT enabled at this point!
-- Setting MueLu_ENABLE_Amesos=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Amesos=ON
-- NOT setting MueLu_ENABLE_Amesos2=ON since Amesos2 is NOT enabled at this point!
-- Setting MueLu_ENABLE_Epetra=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Epetra=ON
-- Setting MueLu_ENABLE_EpetraExt=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_EpetraExt=ON
-- NOT setting MueLu_ENABLE_Teko=ON since Teko is NOT enabled at this point!
-- Setting MueLu_ENABLE_Ifpack=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Ifpack=ON
-- NOT setting MueLu_ENABLE_Ifpack2=ON since Ifpack2 is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Intrepid2=ON since Intrepid2 is NOT enabled at this point!
-- Setting MueLu_ENABLE_ML=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_ML=ON
-- NOT setting MueLu_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- Setting MueLu_ENABLE_Zoltan=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_Zoltan=ON
-- NOT setting MueLu_ENABLE_Zoltan2=ON since Zoltan2 is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Stratimikos=ON since Stratimikos is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_ThyraTpetraAdapters=ON since ThyraTpetraAdapters is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Isorropia=ON since Isorropia is NOT enabled at this point!
-- Setting MueLu_ENABLE_KokkosCore=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_KokkosCore=ON
-- NOT setting MueLu_ENABLE_KokkosContainers=ON since KokkosContainers is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_KokkosKernels=ON since KokkosKernels is NOT enabled at this point!
-- Setting MueLu_ENABLE_AztecOO=ON since Trilinos_ENABLE_MueLu=ON AND Trilinos_ENABLE_AztecOO=ON
-- NOT setting MueLu_ENABLE_Galeri=ON since Galeri is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Belos=ON since Belos is NOT enabled at this point!
-- NOT setting MueLu_ENABLE_Pamgen=ON since Pamgen is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Belos=ON since Belos is NOT enabled at this point!
-- Setting ROL_ENABLE_Epetra=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_Epetra=ON
-- NOT setting ROL_ENABLE_Tpetra=ON since Tpetra is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Thyra=ON since Thyra is NOT enabled at this point!
-- Setting ROL_ENABLE_Sacado=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_Sacado=ON
-- NOT setting ROL_ENABLE_Intrepid=ON since Intrepid is NOT enabled at this point!
-- NOT setting ROL_ENABLE_MiniTensor=ON since MiniTensor is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Shards=ON since Shards is NOT enabled at this point!
-- Setting ROL_ENABLE_Amesos=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_Amesos=ON
-- NOT setting ROL_ENABLE_Amesos2=ON since Amesos2 is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Ifpack2=ON since Ifpack2 is NOT enabled at this point!
-- Setting ROL_ENABLE_MueLu=ON since Trilinos_ENABLE_ROL=ON AND Trilinos_ENABLE_MueLu=ON
-- NOT setting ROL_ENABLE_Tempus=ON since Tempus is NOT enabled at this point!
-- NOT setting ROL_ENABLE_Gtest=ON since Gtest is NOT enabled at this point!
Enabling all remaining required TPLs for current set of enabled packages ...
-- Setting TPL_ENABLE_BLAS=ON because it is required by the enabled package TeuchosNumerics
-- Setting TPL_ENABLE_LAPACK=ON because it is required by the enabled package TeuchosNumerics
Enabling all optional package TPL support <TRIBITS_PACKAGE>_ENABLE_<DEPTPL> not currently disabled for enabled TPLs ...
-- Setting KokkosCore_ENABLE_Pthread=ON since TPL_ENABLE_Pthread=ON
-- Setting TeuchosCore_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting TeuchosCore_ENABLE_Pthread=ON since TPL_ENABLE_Pthread=ON
-- Setting TeuchosKokkosCompat_ENABLE_Pthread=ON since TPL_ENABLE_Pthread=ON
-- Setting TeuchosKokkosComm_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting Epetra_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting Zoltan_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
-- Setting ML_ENABLE_MPI=ON since TPL_ENABLE_MPI=ON
Enabling TPLs based on <TRIBITS_PACKAGE>_ENABLE_<TPL>=ON if TPL is not explicitly disabled ...
Set cache entries for optional packages/TPLs and tests/examples for packages actually enabled ...
Enabling the shell of non-enabled parent packages (mostly for show) that have at least one subpackage enabled ...
-- Setting Trilinos_ENABLE_Kokkos=ON because Trilinos_ENABLE_KokkosCore=ON
Final set of enabled packages: Kokkos Teuchos Sacado Epetra Zoltan Triutils TrilinosSS EpetraExt Xpetra AztecOO Amesos Ifpack ML MueLu ROL 15
Final set of enabled SE packages: KokkosCore Kokkos TeuchosCore TeuchosParser TeuchosParameterList TeuchosComm TeuchosNumerics TeuchosRemainder TeuchosKokkosCompat TeuchosKokkosComm Teuchos Sacado Epetra Zoltan Triutils TrilinosSS EpetraExt Xpetra AztecOO Amesos Ifpack ML MueLu ROL 24
Final set of non-enabled packages: TrilinosFrameworkTests Gtest ThreadPool KokkosKernels RTOp MiniTensor Shards GlobiPack Tpetra Domi Thyra OptiPack Isorropia Pliris Claps Galeri Pamgen Zoltan2 Belos ShyLU_Node Amesos2 SEACAS Trios Komplex Anasazi Ifpack2 Stratimikos FEI Teko TriKota Intrepid Intrepid2 STK Phalanx NOX Moertel ShyLU_DD ShyLU Rythmos Tempus Stokhos Piro Panzer PyTrilinos NewPackage TrilinosCouplings Pike 47
Final set of non-enabled SE packages: TrilinosFrameworkTests Gtest ThreadPool KokkosContainers KokkosAlgorithms KokkosExample KokkosKernels RTOp MiniTensor Shards GlobiPack TpetraClassic TpetraTSQR TpetraCore Tpetra Domi ThyraCore ThyraEpetraAdapters ThyraEpetraExtAdapters ThyraTpetraAdapters Thyra OptiPack Isorropia Pliris Claps Galeri Pamgen Zoltan2 Belos ShyLU_NodeHTS ShyLU_NodeTacho ShyLU_NodeBasker ShyLU_NodeFastILU ShyLU_Node Amesos2 SEACASExodus SEACASExodus_for SEACASExoIIv2for32 SEACASNemesis SEACASIoss SEACASChaco SEACASAprepro_lib SEACASSupes SEACASSuplib SEACASSuplibC SEACASSuplibCpp SEACASSVDI SEACASPLT SEACASAlgebra SEACASAprepro SEACASBlot SEACASConjoin SEACASEjoin SEACASEpu SEACASExo2mat SEACASExodiff SEACASExomatlab SEACASExotxt SEACASExo_format SEACASEx1ex2v2 SEACASExotec2 SEACASFastq SEACASGjoin SEACASGen3D SEACASGenshell SEACASGrepos SEACASExplore SEACASMapvarlib SEACASMapvar SEACASMapvar-kd SEACASMat2exo SEACASNemslice SEACASNemspread SEACASNumbers SEACASSlice SEACASTxtexo SEACASEx2ex1v2 SEACAS Trioscommsplitter Triossupport Triosnnti Triosnssi Triosprograms Triosexamples Triostests Triosnetcdf-service Trios Komplex Anasazi Ifpack2 Stratimikos FEI Teko TriKota Intrepid Intrepid2 STKUtil STKSimd STKTopology STKMesh STKNGP STKIO STKUnit_test_utils STKMath STKSearch STKSearchUtil STKTransfer STKTools STKUnit_tests STKDoc_tests STKExp STKExprEval STK Phalanx NOX Moertel ShyLU_DDBDDC ShyLU_DDFROSch ShyLU_DDCore ShyLU_DDCommon ShyLU_DD ShyLU Rythmos Tempus Stokhos Piro PanzerCore PanzerDofMgr PanzerDiscFE PanzerAdaptersSTK PanzerAdaptersIOSS PanzerMiniEM PanzerExprEval Panzer PyTrilinos NewPackage TrilinosCouplings PikeBlackBox PikeImplicit Pike 140
Final set of enabled TPLs: Pthread MPI BLAS LAPACK 4
Final set of non-enabled TPLs: MKL yaml-cpp Peano CUDA CUSPARSE Thrust Cusp TBB HWLOC QTHREAD BinUtils ARPREC QD Boost Scotch OVIS gpcd METIS MTMETIS ParMETIS PuLP TopoManager LibTopoMap PaToH CppUnit ADOLC ADIC TVMET MF ExodusII Nemesis XDMF Zlib HDF5 CGNS Pnetcdf Netcdf y12m SuperLUDist SuperLUMT SuperLU Cholmod UMFPACK MA28 AMD CSparse HYPRE PETSC BLACS SCALAPACK MUMPS PARDISO_MKL PARDISO Oski TAUCS ForUQTK Dakota HIPS MATLAB CASK SPARSKIT QT gtest BoostLib BoostAlbLib OpenNURBS Portals CrayPortals Gemini InfiniBand BGPDCMF BGQPAMI Pablo HPCToolkit Clp GLPK qpOASES Matio PAPI MATLABLib Eigen X11 Lemon GLM quadmath CAMAL RTlib DLlib AmgX CGAL CGALCore VTune TASMANIAN ArrayFireCPU SimMesh SimModel SimParasolid SimAcis SimField Valgrind QUO ViennaCL Avatar pebbl 104
Setting up export dependencies for all enabled SE packages ...
Probing the environment ...
-- USE_XSDK_DEFAULTS='FALSE'
-- BUILD_SHARED_LIBS='ON'
-- CMAKE_BUILD_TYPE='Release'
-- MPI_USE_COMPILER_WRAPPERS='ON'
-- Leaving current CMAKE_C_COMPILER=/usr/bin/cc since it is already set!
-- Leaving current CMAKE_CXX_COMPILER=/usr/bin/c++ since it is already set!
-- Leaving current CMAKE_Fortran_COMPILER=/usr/local/bin/mpif77 since it is already set!
-- MPI_EXEC='/usr/local/bin/mpiexec'
-- MPI_EXEC='/usr/local/bin/mpiexec'
-- CMAKE_C_COMPILER_ID='Clang'
-- CMAKE_C_COMPILER_VERSION='5.0.1'
-- CMAKE_CXX_COMPILER_ID='Clang'
-- CMAKE_CXX_COMPILER_VERSION='5.0.1'
-- KOKKOS_ARCH='NOT_SET'
-- Setting Kokkos_ENABLE_Profiling_DEFAULT=OFF because TPL_ENABLE_DLlib=OFF
-- Using the legacy tribits build because KOKKOS_ARCH not set
--
-- ****************** Kokkos Settings ******************
-- Execution Spaces
-- Device Parallel: None
-- Host Parallel: None
-- Host Serial: Serial
--
-- Architectures:
-- None
--
-- Enabled options
-- KOKKOS_ENABLE_SERIAL
-- KOKKOS_ENABLE_DEPRECATED_CODE
--
-- Final kokkos settings variable:
-- env;KOKKOS_CMAKE=yes;KOKKOS_SRC_PATH=/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos;KOKKOS_PATH=/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos;KOKKOS_INSTALL_PATH=/wrkdirs/usr/ports/math/trilinos/work/stage/usr/local;KOKKOS_ARCH=None;KOKKOS_DEVICES=Serial;KOKKOS_DEBUG=no;KOKKOS_OPTIONS=disable_profiling,disable_dualview_modify_check
-- *****************************************************
--
-- Trilinos_SET_INSTALL_RPATH='TRUE'
-- CMAKE_INSTALL_RPATH_USE_LINK_PATH='YES'
-- CMAKE_INSTALL_RPATH='/usr/local/lib'
-- C++11 Flags already set: '-std=c++11'
-- Trilinos_ENABLE_CXX11=ON
Getting information for all enabled TPLs ...
Processing enabled TPL: Pthread (enabled explicitly, disable with -DTPL_ENABLE_Pthread=OFF)
Processing enabled TPL: MPI (enabled explicitly, disable with -DTPL_ENABLE_MPI=OFF)
Processing enabled TPL: BLAS (enabled by TeuchosNumerics, disable with -DTPL_ENABLE_BLAS=OFF)
-- BLAS_LIBRARY_NAMES='blas blas_win32'
-- TPL_BLAS_LIBRARIES='/usr/local/lib/libblas.so'
Processing enabled TPL: LAPACK (enabled by TeuchosNumerics, disable with -DTPL_ENABLE_LAPACK=OFF)
-- LAPACK_LIBRARY_NAMES='lapack lapack_win32'
-- TPL_LAPACK_LIBRARIES='/usr/local/lib/liblapack.so'
Setting up testing support ...
-- CTEST_DROP_METHOD='http'
-- CTEST_DROP_SITE='testing-vm.sandia.gov'
-- CTEST_PROJECT_NAME='Trilinos'
-- CTEST_DROP_LOCATION='/cdash/submit.php?project=Trilinos'
-- CTEST_TRIGGER_SITE=''
-- CTEST_DROP_SITE_CDASH='TRUE'
Configuring individual enabled Trilinos packages ...
Processing enabled package: Kokkos (Core)
LEGACY STUFF GETTING CALLED
Processing enabled package: Teuchos (Core, Parser, ParameterList, Comm, Numerics, Remainder, KokkosCompat, KokkosComm)
-- C++ compiler supports __attribute__((constructor)) syntax
-- C++ compiler supports __attribute__((weak)) syntax and testing weak functions
-- C++ compiler does NOT support #pragma weak syntax and testing weak functions
Processing enabled package: Sacado (Libs)
Processing enabled package: Epetra (Libs)
Found new version of lapack. dggsvd3 is available.
Processing enabled package: Zoltan (Libs)
Processing enabled package: Triutils (Libs)
Processing enabled package: TrilinosSS (Libs)
Processing enabled package: EpetraExt (Libs)
Processing enabled package: Xpetra (Libs)
-- Xpetra support for 32 bit Epetra enabled.
-- Xpetra_Epetra_NO_32BIT_GLOBAL_INDICES=OFF
Processing enabled package: AztecOO (Libs)
Processing enabled package: Amesos (Libs)
Processing enabled package: Ifpack (Libs)
Processing enabled package: ML (Libs)
Processing enabled package: MueLu (Libs)
Processing enabled package: ROL (Libs)
-- ROL has been configured to use the build options:
-- ROL::Ptr is implemented by Teuchos::RCP
-- ROL::ParameterList is implemented by Teuchos::ParameterList
-- ROL::stacktrace is implemented by Teuchos::stacktrace
-- ROL::LinearAlgebra is implemented by Teuchos::SerialDense
-- ROL::LAPACK is implemented by Teuchos::LAPACK
No ETI support requested by packages.
Generating dummy makefiles in each directory to call Ninja ...
Set up for creating a distribution ...
Finished configuring Trilinos!
-- Configuring done
-- Generating done
-- Build files have been written to: /wrkdirs/usr/ports/math/trilinos/work/.build
[1/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_CPUDiscovery.cpp.o
[2/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Core.cpp.o
[3/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Error.cpp.o
[4/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_ExecPolicy.cpp.o
[5/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HBWSpace.cpp.o
[6/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostBarrier.cpp.o
[7/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o
[8/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostThreadTeam.cpp.o
[9/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_MemoryPool.cpp.o
[10/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Profiling_Interface.cpp.o
[11/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Serial.cpp.o
[12/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Serial_Task.cpp.o
[13/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_SharedAlloc.cpp.o
[14/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Spinwait.cpp.o
[15/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_hwloc.cpp.o
[16/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Threads/Kokkos_ThreadsExec.cpp.o
[17/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Threads/Kokkos_ThreadsExec_base.cpp.o
[18/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/OpenMP/Kokkos_OpenMP_Exec.cpp.o
[19/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/OpenMP/Kokkos_OpenMP_Task.cpp.o
[20/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Cuda/Kokkos_CudaSpace.cpp.o
[21/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Cuda/Kokkos_Cuda_Impl.cpp.o
[22/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Cuda/Kokkos_Cuda_Locks.cpp.o
[23/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Cuda/Kokkos_Cuda_Task.cpp.o
[24/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Qthreads/Kokkos_QthreadsExec.cpp.o
[25/841] Building CXX object packages/kokkos/core/src/CMakeFiles/kokkoscore.dir/Qthreads/Kokkos_Qthreads_Task.cpp.o
[26/841] Linking CXX shared library packages/kokkos/core/src/libkokkoscore.so.12.13
[27/841] Creating library symlink packages/kokkos/core/src/libkokkoscore.so.12 packages/kokkos/core/src/libkokkoscore.so
[28/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_ArrayView.cpp.o
[29/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CWrapperSupport.cpp.o
[30/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_CommandLineProcessor.cpp.o
[31/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Describable.cpp.o
[32/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_Details_Allocator.cpp.o
[33/841] Building CXX object packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o
FAILED: packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o
/usr/bin/c++ -DTEUCHOSCORE_LIB_EXPORTS_MODE -Dteuchoscore_EXPORTS -I. -Ipackages/teuchos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src -Ipackages/kokkos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos/core/src -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -MD -MT packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -MF packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o.d -o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -c /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:49:12: fatal error: 'mpi.h' file not found
# include <mpi.h>
^~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
gmake[1]: *** [/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/cmake/tribits/core/utils/NinjaMakefileCommon.make:20: install] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/trilinos/work/.build'
*** Error code 2
Stop.
make: stopped in /usr/ports/math/trilinos
@teamblubee, it should be impossible that you configure from scratch with:
-D CMAKE_C_COMPILER=`which mpicc` \
-D CMAKE_CXX_COMPILER=`which mpicxx` \
and end up with:
-- Leaving current CMAKE_C_COMPILER=cc since it is already set!
-- Leaving current CMAKE_CXX_COMPILER=c++ since it is already set!
Also, why is it reconfiguring during the build? It should not do that unless something is changing (and it should not).
@teamblubee, it should be impossible that you configure from scratch with:
-D CMAKE_C_COMPILER=`which mpicc` \ -D CMAKE_CXX_COMPILER=`which mpicxx` \
and end up with:
-- Leaving current CMAKE_C_COMPILER=cc since it is already set! -- Leaving current CMAKE_CXX_COMPILER=c++ since it is already set!
Also, why is it reconfiguring during the build? It should not do that unless something is changing (and it should not).
It's a clean tmp filesystem that's mounted then all the dependencies for the projects are scanned, that's why things seems to be reconfiguring; That doesn't affect the build it's just making sure that the build environment; it's a packaging stage.
After all the dependencies are checked then cmake is called with the supplied argument list.
cmake -DCMAKE_INSTALL_RPATH="/usr/local/lib" -DBUILD_SHARED_LIBS=ON
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF
-DTrilinos_ENABLE_Epetra=ON
-DTrilinos_ENABLE_EpetraExt=ON
-DTrilinos_ENABLE_Amesos=ON
-DTrilinos_ENABLE_Fortran=ON
-DTrilinos_ENABLE_Zoltan=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DTPL_ENABLE_DLlib=OFF
-DTPL_ENABLE_MPI=ON
-DCMAKE_C_COMPILER="/usr/local/bin/mpicc"
-DCMAKE_CXX_COMPILER="/usr/local/bin/mpic++"
-DCMAKE_Fortran_COMPILER="/usr/local/bin/mpif77"
After that cmake scans the build environment turns on missing dependencies and attempts to build.
I do not think that's the problem, the main issue seems to be that the package teuchoscore is only looking in a few places for it's libraries and includes.
This command shows that
/usr/bin/c++ -DTEUCHOSCORE_LIB_EXPORTS_MODE -Dteuchoscore_EXPORTS -I. -Ipackages/teuchos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src -Ipackages/kokkos/core/src -I/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/kokkos/core/src -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -MD -MT packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -MF packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o.d -o packages/teuchos/core/src/CMakeFiles/teuchoscore.dir/Teuchos_GlobalMPISession.cpp.o -c /wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp
/wrkdirs/usr/ports/math/trilinos/work/Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp:49:12: fatal error: 'mpi.h' file not found
Unless the Trilinos project teuchos placed mpi.h in Trilinos_src/packages/kokkos/cores/src mpi.h will not be found.
I applied a patch here: https://github.com/trilinos/Trilinos/issues/3755#issuecomment-433939970
that get pasts the missing headers but fails at linking. The build environment is pristine, all the required binaries, libraries and includes are in their respective places but this package isn't looking in the standard locations, why?
@teamblubee, the only thing to focus on is how you can be setting
-D CMAKE_C_COMPILER=`which mpicc` \
-D CMAKE_CXX_COMPILER=`which mpicxx` \
and end up with:
-- Leaving current CMAKE_C_COMPILER=cc since it is already set!
-- Leaving current CMAKE_CXX_COMPILER=c++ since it is already set!
Nothing else matters at this point.
@teamblubee, the only thing to focus on is how you can be setting
-D CMAKE_C_COMPILER=`which mpicc` \ -D CMAKE_CXX_COMPILER=`which mpicxx` \
and end up with:
-- Leaving current CMAKE_C_COMPILER=cc since it is already set! -- Leaving current CMAKE_CXX_COMPILER=c++ since it is already set!
Nothing else matters at this point.
That was the important question and I can't say why it works but setting these environmental variables
CC= mpicc
CXX= mpicxx
FC= mpif77
F77= mpif77
works and the build succeeds. CMakeCache.txt https://pastebin.com/iPtzP2R6
@bartlettroscoe thanks for focusing my attention, Best.
@teamblubee, not understand why env vars would override CMAKE_<LANG>_COMPILER
but if it is working for you I wound not stress on this too much..
Can we close this issue now?
@teamblubee, the only thing to focus on is how you can be setting
-D CMAKE_C_COMPILER=`which mpicc` \ -D CMAKE_CXX_COMPILER=`which mpicxx` \
and end up with:
-- Leaving current CMAKE_C_COMPILER=cc since it is already set! -- Leaving current CMAKE_CXX_COMPILER=c++ since it is already set!
Nothing else matters at this point.
That was the important question and I can't say why it works but setting these environmental variables
CC= mpicc CXX= mpicxx FC= mpif77 F77= mpif77
works and the build succeeds. CMakeCache.txt https://pastebin.com/iPtzP2R6
@bartlettroscoe thanks for focusing my attention, Best.
Yes, please and thanks again. I can proceed to builing dealii now!
Best, Owen
I saw the discussions about using instead of "mpih."
I am having a build failure because this file: Trilinos-d0a8f5e2bc674318a8579187c23112f26e092ce1/packages/teuchos/core/src/Teuchos_GlobalMPISession.cpp
is including "mpi.h"
There's a reference to a particular bugzilla that I do not have access to: https://software.sandia.gov/bugzilla/show_bug.cgi?id=5631
Is there any possible way to fix this upstream?
This is the configure argument that I am running; ${LOCALBASE} = /usr/local
best