Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Trilinos (in order to install peridigm) #1713

Closed
Chaztikov opened this issue Sep 10, 2017 · 15 comments
Closed

Installing Trilinos (in order to install peridigm) #1713

Chaztikov opened this issue Sep 10, 2017 · 15 comments

Comments

@Chaztikov
Copy link

I am having a bear of a time trying to install Trilinos and its dependencies on Ubuntu to run in parallel, not sure why. Here is my configure file:
! /bin/bash

sudo rm -r -f CMakeCache.txt CMakeFiles/
-D MPI_BASE_DIR:PATH="/usr/local/openmpi/"
-D HDF5_INCLUDE_DIRS:PATH="/usr/local/hdf5/include"
-D HDF5_LIBRARY_DIRS:PATH="/usr/local/hdf5/lib"
-D Netcdf_INCLUDE_DIRS:PATH=/usr/local/netcdf/include
-D Netcdf_LIBRARY_DIRS:PATH=/usr/local/netcdf/lib
-D Boost_INCLUDE_DIRS:PATH=/usr/local/boost/include
-D Boost_LIBRARY_DIRS:PATH=/usr/local/boost/lib \

cmake \ -D CMAKE_BUILD_TYPE:STRING=RELEASE \ -DCMAKE_C_COMPILER=/usr/bin/mpicc \ -DCMAKE_CXX_COMPILER=/usr/bin/mpicxx \ -DCMAKE_Fortran_COMPILER=/usr/bin/mpif90 \ -D Trilinos_WARNINGS_AS_ERRORS_FLAGS:STRING="" \ -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \ -D Trilinos_ENABLE_Teuchos:BOOL=ON \ -D Trilinos_ENABLE_Shards:BOOL=ON \ -D Trilinos_ENABLE_Sacado:BOOL=ON \ -D Trilinos_ENABLE_Epetra:BOOL=ON \ -D Trilinos_ENABLE_EpetraExt:BOOL=ON \ -D Trilinos_ENABLE_Ifpack:BOOL=ON \ -D Trilinos_ENABLE_AztecOO:BOOL=ON \ -D Trilinos_ENABLE_Amesos:BOOL=ON \ -D Trilinos_ENABLE_Anasazi:BOOL=ON \ -D Trilinos_ENABLE_Belos:BOOL=ON \ -D Trilinos_ENABLE_ML:BOOL=ON \ -D Trilinos_ENABLE_Phalanx:BOOL=ON \ -D Trilinos_ENABLE_Intrepid:BOOL=ON \ -D Trilinos_ENABLE_NOX:BOOL=ON \ -D Trilinos_ENABLE_Stratimikos:BOOL=ON \ -D Trilinos_ENABLE_Thyra:BOOL=ON \ -D Trilinos_ENABLE_Rythmos:BOOL=ON \ -D Trilinos_ENABLE_MOOCHO:BOOL=ON \ -D Trilinos_ENABLE_TriKota:BOOL=OFF \ -D Trilinos_ENABLE_Stokhos:BOOL=ON \ -D Trilinos_ENABLE_Zoltan:BOOL=ON \ -D Trilinos_ENABLE_Piro:BOOL=ON \ -D Trilinos_ENABLE_Teko:BOOL=ON \ -D Trilinos_ENABLE_SEACASIoss:BOOL=ON \ -D Trilinos_ENABLE_SEACAS:BOOL=ON \ -D Trilinos_ENABLE_SEACASBlot:BOOL=ON \ -D Trilinos_ENABLE_Pamgen:BOOL=ON \ -D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \ -D Trilinos_ENABLE_TESTS:BOOL=ON \ -D TPL_ENABLE_HDF5:BOOL=ON \ -D HDF5_INCLUDE_DIRS=/usr/include/hdf5 \ -D HDF5_INCLUDE_LIB=/usr/lib/x86_64-linux-gnu/hdf5/mpich \ -D Matio_LIBRARY_DIRS=/usr/lib/x86_64-linux-gnu \ -D Matio_LIBRARIES=/usr/lib/x86_64-linux-gnu/libmatio.a \ -D TPL_ENABLE_Netcdf:BOOL=ON \ -D TPL_Netcdf_Enables_Netcdf4:BOOL=ON \ -D TPL_ENABLE_MPI:BOOL=ON \ -D TPL_ENABLE_BLAS:BOOL=ON \ -D TPL_ENABLE_LAPACK:BOOL=ON \ -D TPL_ENABLE_Boost:BOOL=ON \ -D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF \ -D Trilinos_VERBOSE_CONFIGURE:BOOL=OFF \ -D X11_LIBRARY_DIRS=/usr/lib/X11 \ -D TPL_X11_INCLUDE_DIRS=/usr/include/X11 \ -D TPL_Netcdf_PARALLEL:BOOL=ON \ -D SEACAS_ENABLE_TESTS=ON \ ..

Here is the tail end of the output, seems it can't find X11, even though I specified where its libraries and include was...

Processing enabled TPL: X11 (enabled by SEACASSVDI, disable with -DTPL_ENABLE_X11=OFF) -- X11_LIBRARY_NAMES='X11' -- Searching for libs in X11_LIBRARY_DIRS='/usr/lib/X11' -- Searching for a lib in the set "X11": -- Searching for lib 'X11' ... -- NOTE: Did not find a lib in the lib set "X11" for the TPL 'X11'! -- ERROR: Could not find the libraries for the TPL 'X11'! -- TIP: If the TPL 'X11' is on your system then you can set: -DX11_LIBRARY_DIRS=';;...' to point to the directories where these libraries may be found. Or, just set: -DTPL_X11_LIBRARIES=';;...' to point to the full paths for the libraries which will bypass any search for libraries and these libraries will be used without question in the build. (But this will result in a build-time error if not all of the necessary symbols are found.) -- ERROR: Failed finding all of the parts of TPL 'X11' (see above), Aborting!

-- NOTE: The find module file for this failed TPL 'X11' is: /home/charles/Documents/code/Trilinos/cmake/TPLs/FindTPLX11.cmake which is pointed to in the file: /home/charles/Documents/code/Trilinos/TPLsList.cmake

TIP: One way to get past the configure failure for the TPL 'X11' is to simply disable it with: -DTPL_ENABLE_X11=OFF which will disable it and will recursively disable all of the downstream packages that have required dependencies on it, including the package 'SEACASSVDI' which triggered its enable. When you reconfigure, just grep the cmake stdout for 'X11' and then follow the disables that occur as a result to see what impact this TPL disable has on the configuration of Trilinos.

CMake Error at cmake/tribits/core/package_arch/TribitsProcessEnabledTpl.cmake:127 (MESSAGE): ERROR: TPL_X11_NOT_FOUND=TRUE, aborting! Call Stack (most recent call first): cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1659 (TRIBITS_PROCESS_ENABLED_TPL) cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:202 (TRIBITS_PROCESS_ENABLED_TPLS) cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL) CMakeLists.txt:93 (TRIBITS_PROJECT)

-- Configuring incomplete, errors occurred!

Thanks for reading!

@aprokop
Copy link
Contributor

aprokop commented Sep 10, 2017

@Chaztikov While I have not seen this error before, it seems that it looks for X11 headers/library and can't find any. Quick googling arounds seems to indicate that it is provided by libx11-dev on Ubuntu. Can you please check whether you have it (or something similar) installed? Also, it seems that the library is installed in /usr/lib/x86_64-linux-gnu/. I also think that an alternative would be disabling Matio, -D TPL_ENABLE_Matio=OFF.

@Chaztikov
Copy link
Author

Thanks for your swift response, I am not sure, but think I need Matio for Peridigm?

I specified X11's location correctly, I think but now receive errors, here is the CMakerErrors.log file:

Performing C++ SOURCE FILE Test FINITE_VALUE_HAVE_GLOBAL_ISNAN failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fb5dd/fast"
/usr/bin/make -f CMakeFiles/cmTC_fb5dd.dir/build.make CMakeFiles/cmTC_fb5dd.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_fb5dd.dir/src.cxx.o
/usr/bin/mpicxx -std=c++11 -DFINITE_VALUE_HAVE_GLOBAL_ISNAN -o CMakeFiles/cmTC_fb5dd.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:6:10: error: ‘isnan’ was not declared in this scope
isnan(x);
^
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:6:10: note: suggested alternative:
In file included from /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:2:0:
/home/charles/anaconda3/gcc/include/c++/cmath:632:5: note: ‘std::isnan’
isnan(_Tp __x)
^
CMakeFiles/cmTC_fb5dd.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_fb5dd.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_fb5dd.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_fb5dd/fast' failed
make: *** [cmTC_fb5dd/fast] Error 2

Source file was:

#include
int main()
{
double x = 1.0;
isnan(x);
return 0;
}

Performing C++ SOURCE FILE Test FINITE_VALUE_HAVE_GLOBAL_ISINF failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_88123/fast"
/usr/bin/make -f CMakeFiles/cmTC_88123.dir/build.make CMakeFiles/cmTC_88123.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_88123.dir/src.cxx.o
/usr/bin/mpicxx -std=c++11 -DFINITE_VALUE_HAVE_GLOBAL_ISINF -o CMakeFiles/cmTC_88123.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:6:10: error: ‘isinf’ was not declared in this scope
isinf(x);
^
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:6:10: note: suggested alternative:
In file included from /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:2:0:
/home/charles/anaconda3/gcc/include/c++/cmath:614:5: note: ‘std::isinf’
isinf(_Tp __x)
^
CMakeFiles/cmTC_88123.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_88123.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_88123.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_88123/fast' failed
make: *** [cmTC_88123/fast] Error 2

Source file was:

#include
int main()
{
double x = 1.0;
isinf(x);
return 0;
}

Performing C++ SOURCE FILE Test HAVE_GCC_ABI_DEMANGLE failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_50b7f/fast"
/usr/bin/make -f CMakeFiles/cmTC_50b7f.dir/build.make CMakeFiles/cmTC_50b7f.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_50b7f.dir/src.cxx.o
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_GCC_ABI_DEMANGLE -o CMakeFiles/cmTC_50b7f.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_50b7f
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_50b7f.dir/link.txt --verbose=1
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_GCC_ABI_DEMANGLE CMakeFiles/cmTC_50b7f.dir/src.cxx.o -o cmTC_50b7f -rdynamic
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'

Return value: 127
Source file was:

#include <cxxabi.h>
#include
#include
namespace MyNamespace {
class MyClass {};
}

int main()
{
const std::string
mangledName = typeid(MyNamespace::MyClass).name();
int status;
char *_demangledName = abi::__cxa_demangle(mangledName.c_str(), 0, 0, &status);
const std::string demangledName(_demangledName);
std::free(_demangledName);
return ( demangledName == "MyNamespace::MyClass" ? 0 : 1 );
}

Performing C++ SOURCE FILE Test HAVE_TEUCHOS_BLASFLOAT failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_23deb/fast"
/usr/bin/make -f CMakeFiles/cmTC_23deb.dir/build.make CMakeFiles/cmTC_23deb.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_23deb.dir/src.cxx.o
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_TEUCHOS_BLASFLOAT -o CMakeFiles/cmTC_23deb.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_23deb
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_23deb.dir/link.txt --verbose=1
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_TEUCHOS_BLASFLOAT CMakeFiles/cmTC_23deb.dir/src.cxx.o -o cmTC_23deb -rdynamic /usr/lib/libblas.so -Wl,-rpath,/usr/lib
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'

Return value: 127
Source file was:

#define F77_BLAS_MANGLE(name,NAME) name ## _

#include

#define SDOT_F77 F77_BLAS_MANGLE(sdot, SDOT)
#define SASUM_F77 F77_BLAS_MANGLE(sasum, SASUM)
#define SCASUM_F77 F77_BLAS_MANGLE(scasum, SCASUM)
#define SNRM2_F77 F77_BLAS_MANGLE(snrm2, SNRM2)
#define SCNRM2_F77 F77_BLAS_MANGLE(scnrm2, SCNRM2)

extern "C" {
float SDOT_F77(const int* n, const float x[], const int* incx, const float y[], const int* incy);
float SASUM_F77(const int* n, const float x[], const int* incx);
float SCASUM_F77(const int* n, const std::complex x[], const int* incx);
float SNRM2_F77(const int* n, const float x[], const int* incx);
float SCNRM2_F77(const int* n, const std::complex x[], const int* incx);
}

int main()
{
const int n = 3;
const float x[n] = { -1.0, -2.0, -2.0};
const std::complex xc[n] = { std::complex(3.0,-4.0),
std::complex(0.0,0.0),
std::complex(0.0,0.0) };
const int incx = 1;
float val;

val = SDOT_F77(&n, x, &incx, x, &incx);
if (val != 9.0) return 1;

val = SASUM_F77(&n, x, &incx);
if (val != 5.0) return 1;

val = SNRM2_F77(&n, x, &incx);
if (val != 3.0) return 1;

val = SCASUM_F77(&n, xc, &incx);
if (val != 7.0) return 1;

val = SCNRM2_F77(&n, xc, &incx);
if (val != 5.0) return 1;

return 0;
}

Performing C++ SOURCE FILE Test HAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_f6677/fast"
/usr/bin/make -f CMakeFiles/cmTC_f6677.dir/build.make CMakeFiles/cmTC_f6677.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f6677.dir/src.cxx.o
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN -o CMakeFiles/cmTC_f6677.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_f6677
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f6677.dir/link.txt --verbose=1
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN CMakeFiles/cmTC_f6677.dir/src.cxx.o -o cmTC_f6677 -rdynamic /usr/lib/libblas.so -Wl,-rpath,/usr/lib
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'

Return value: 127
Source file was:

#define F77_BLAS_MANGLE(name,NAME) name ## _

#include

#define SDOT_F77 F77_BLAS_MANGLE(sdot, SDOT)
#define SASUM_F77 F77_BLAS_MANGLE(sasum, SASUM)
#define SCASUM_F77 F77_BLAS_MANGLE(scasum, SCASUM)
#define SNRM2_F77 F77_BLAS_MANGLE(snrm2, SNRM2)
#define SCNRM2_F77 F77_BLAS_MANGLE(scnrm2, SCNRM2)

extern "C" {
double SDOT_F77(const int* n, const float x[], const int* incx, const float y[], const int* incy);
double SASUM_F77(const int* n, const float x[], const int* incx);
double SCASUM_F77(const int* n, const std::complex x[], const int* incx);
double SNRM2_F77(const int* n, const float x[], const int* incx);
double SCNRM2_F77(const int* n, const std::complex x[], const int* incx);
}

int main()
{
const int n = 3;
const float x[n] = { -1.0, -2.0, -2.0};
const std::complex xc[n] = { std::complex(3.0,-4.0),
std::complex(0.0,0.0),
std::complex(0.0,0.0) };
const int incx = 1;
double val;

val = SDOT_F77(&n, x, &incx, x, &incx);
if (val != 9.0) return 1;

val = SASUM_F77(&n, x, &incx);
if (val != 5.0) return 1;

val = SNRM2_F77(&n, x, &incx);
if (val != 3.0) return 1;

val = SCASUM_F77(&n, xc, &incx);
if (val != 7.0) return 1;

val = SCNRM2_F77(&n, xc, &incx);
if (val != 5.0) return 1;

return 0;
}

Performing C++ SOURCE FILE Test HAVE_TEUCHOS_LAPACKLARND failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_58c4b/fast"
/usr/bin/make -f CMakeFiles/cmTC_58c4b.dir/build.make CMakeFiles/cmTC_58c4b.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_58c4b.dir/src.cxx.o
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_TEUCHOS_LAPACKLARND -o CMakeFiles/cmTC_58c4b.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:12:38: warning: narrowing conversion of ‘0.0’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
int seed[4] = { 0.0, 0.0, 0.0, 1.0 };
^
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:12:38: warning: narrowing conversion of ‘0.0’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:12:38: warning: narrowing conversion of ‘0.0’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx:12:38: warning: narrowing conversion of ‘1.0e+0’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
Linking CXX executable cmTC_58c4b
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_58c4b.dir/link.txt --verbose=1
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_TEUCHOS_LAPACKLARND CMakeFiles/cmTC_58c4b.dir/src.cxx.o -o cmTC_58c4b -rdynamic /usr/lib/liblapack.so -Wl,-rpath,/usr/lib
CMakeFiles/cmTC_58c4b.dir/src.cxx.o: In function main': src.cxx:(.text+0x3a): undefined reference to dlarnd_'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_58c4b.dir/build.make:98: recipe for target 'cmTC_58c4b' failed
make[1]: *** [cmTC_58c4b] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_58c4b/fast' failed
make: *** [cmTC_58c4b/fast] Error 2

Return value: 1
Source file was:

#define F77_BLAS_MANGLE(name,NAME) name ## _

#define DLARND_F77 F77_BLAS_MANGLE(dlarnd,DLARND)

extern "C" { double DLARND_F77(const int* idist, int* seed); }

int main()
{

const int idist = 1;
int seed[4] = { 0.0, 0.0, 0.0, 1.0 };

double val = DLARND_F77(&idist, seed);

return (val < 0.0 ? 1 : 0);

}

Performing C++ SOURCE FILE Test HAVE_CXX_PRAGMA_WEAK failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_29fdd/fast"
/usr/bin/make -f CMakeFiles/cmTC_29fdd.dir/build.make CMakeFiles/cmTC_29fdd.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_29fdd.dir/src.cxx.o
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_CXX_PRAGMA_WEAK -o CMakeFiles/cmTC_29fdd.dir/src.cxx.o -c /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_29fdd
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_29fdd.dir/link.txt --verbose=1
/usr/bin/mpicxx -pedantic -Wall -Wno-long-long -Wwrite-strings -Wshadow -Woverloaded-virtual -std=c++11 -DHAVE_CXX_PRAGMA_WEAK CMakeFiles/cmTC_29fdd.dir/src.cxx.o -o cmTC_29fdd -rdynamic
CMakeFiles/cmTC_29fdd.dir/src.cxx.o: In function main': src.cxx:(.text+0x21): undefined reference to A::theFunction()'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_29fdd.dir/build.make:97: recipe for target 'cmTC_29fdd' failed
make[1]: *** [cmTC_29fdd] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_29fdd/fast' failed
make: *** [cmTC_29fdd/fast] Error 2

Source file was:

#include

namespace A {
// theFunction never gets defined, because we
// don't link with a library that defines it.
// That's OK, because it's weak linkage.
#pragma weak theFunction
extern void theFunction ();
}

int main() {
std::cout << "Hi! I am main." << std::endl;
if (A::theFunction != NULL) {
// Should never be called, since we don't link
// with a library that defines A::theFunction.
A::theFunction ();
}
return 0;
}

Determining if the function dggsvd3 exists failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_24973/fast"
/usr/bin/make -f CMakeFiles/cmTC_24973.dir/build.make CMakeFiles/cmTC_24973.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_24973.dir/CheckFunctionExists.c.o
/usr/bin/mpicc -pedantic -Wall -Wno-long-long -std=c99 -DCHECK_FUNCTION_EXISTS=dggsvd3 -o CMakeFiles/cmTC_24973.dir/CheckFunctionExists.c.o -c /home/charles/anaconda3/share/cmake-3.6/Modules/CheckFunctionExists.c
Linking C executable cmTC_24973
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_24973.dir/link.txt --verbose=1
/usr/bin/mpicc -pedantic -Wall -Wno-long-long -std=c99 -DCHECK_FUNCTION_EXISTS=dggsvd3 CMakeFiles/cmTC_24973.dir/CheckFunctionExists.c.o -o cmTC_24973 -rdynamic /usr/lib/liblapack.so /usr/lib/libblas.so -Wl,-rpath,/usr/lib
CMakeFiles/cmTC_24973.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x15): undefined reference to dggsvd3'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_24973.dir/build.make:99: recipe for target 'cmTC_24973' failed
make[1]: *** [cmTC_24973] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_24973/fast' failed
make: *** [cmTC_24973/fast] Error 2

Determining if the function DGGSVD3 exists failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_4053e/fast"
/usr/bin/make -f CMakeFiles/cmTC_4053e.dir/build.make CMakeFiles/cmTC_4053e.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4053e.dir/CheckFunctionExists.c.o
/usr/bin/mpicc -pedantic -Wall -Wno-long-long -std=c99 -DCHECK_FUNCTION_EXISTS=DGGSVD3 -o CMakeFiles/cmTC_4053e.dir/CheckFunctionExists.c.o -c /home/charles/anaconda3/share/cmake-3.6/Modules/CheckFunctionExists.c
Linking C executable cmTC_4053e
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4053e.dir/link.txt --verbose=1
/usr/bin/mpicc -pedantic -Wall -Wno-long-long -std=c99 -DCHECK_FUNCTION_EXISTS=DGGSVD3 CMakeFiles/cmTC_4053e.dir/CheckFunctionExists.c.o -o cmTC_4053e -rdynamic /usr/lib/liblapack.so /usr/lib/libblas.so -Wl,-rpath,/usr/lib
CMakeFiles/cmTC_4053e.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x15): undefined reference to DGGSVD3'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_4053e.dir/build.make:99: recipe for target 'cmTC_4053e' failed
make[1]: *** [cmTC_4053e] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_4053e/fast' failed
make: *** [cmTC_4053e/fast] Error 2

Determining if the function DGGSVD3_ exists failed with the following output:
Change Dir: /home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_18f0d/fast"
/usr/bin/make -f CMakeFiles/cmTC_18f0d.dir/build.make CMakeFiles/cmTC_18f0d.dir/build
make[1]: Entering directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_18f0d.dir/CheckFunctionExists.c.o
/usr/bin/mpicc -pedantic -Wall -Wno-long-long -std=c99 -DCHECK_FUNCTION_EXISTS=DGGSVD3_ -o CMakeFiles/cmTC_18f0d.dir/CheckFunctionExists.c.o -c /home/charles/anaconda3/share/cmake-3.6/Modules/CheckFunctionExists.c
Linking C executable cmTC_18f0d
/home/charles/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_18f0d.dir/link.txt --verbose=1
/usr/bin/mpicc -pedantic -Wall -Wno-long-long -std=c99 -DCHECK_FUNCTION_EXISTS=DGGSVD3_ CMakeFiles/cmTC_18f0d.dir/CheckFunctionExists.c.o -o cmTC_18f0d -rdynamic /usr/lib/liblapack.so /usr/lib/libblas.so -Wl,-rpath,/usr/lib
CMakeFiles/cmTC_18f0d.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x15): undefined reference to DGGSVD3_'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_18f0d.dir/build.make:99: recipe for target 'cmTC_18f0d' failed
make[1]: *** [cmTC_18f0d] Error 1
make[1]: Leaving directory '/home/charles/Documents/code/Trilinos/build2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_18f0d/fast' failed
make: *** [cmTC_18f0d/fast] Error 2

@mhoemmen
Copy link
Contributor

@Chaztikov It looks strange that you set CMAKE_CXX_COMPILER=/usr/bin/mpicxx, but set MPI_BASE_DIR:PATH="/usr/local/openmpi/". You probably want the MPI compiler wrappers that live in MPI_BASE_DIR/bin, not /usr/bin.

@mhoemmen
Copy link
Contributor

Also, if you set TPL_ENABLE_MPI:BOOL=ON and set MPI_BASE_DIR, then you don't have to set CMAKE_CXX_COMPILER, CMAKE_C_COMPILER, etc. The defaults usually work just fine.

@Chaztikov
Copy link
Author

Thanks a bunch! It seems to have worked, nearly, now when I
make -j 12
(I have one intel 6800K, 6 cores, so I believe 12 is appropriate)
I get
[ 64%] Generating answers64bitTPLs/hammond.rib.8.7
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.0
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.2
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.1
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.6
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.5
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.3
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.4
[ 64%] Generating answers64bitTPLs/hammond.rib.drops.8.7
[ 64%] Built target Zoltan_ch_hammond_copy_files
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
charles@liberty:~/Documents/code/Trilinos/build2$

@Chaztikov
Copy link
Author

I may see where this is coming from during the ./configure:

-- HDF5_LIBRARY_NAMES='hdf5;z;hdf5_hl'
-- Searching for libs in HDF5_LIBRARY_DIRS=''
-- Searching for a lib in the set "hdf5":
-- Searching for lib 'hdf5' ...
-- Found lib '/lib/libhdf5.so'
-- Searching for a lib in the set "z":
-- Searching for lib 'z' ...
-- Found lib '/usr/local/lib/libz.so'
-- Searching for a lib in the set "hdf5_hl":
-- Searching for lib 'hdf5_hl' ...
-- Found lib '/lib/libhdf5_hl.so'
-- TPL_HDF5_LIBRARIES='/lib/libhdf5.so;/usr/local/lib/libz.so;/lib/libhdf5_hl.so'
-- Searching for headers in HDF5_INCLUDE_DIRS='/usr/include/hdf5'
-- Searching for a header file in the set "hdf5.h":
-- Searching for header 'hdf5.h' ...
-- Found header '/include/hdf5.h'
-- Found TPL 'HDF5' include dirs '/include'
-- TPL_HDF5_INCLUDE_DIRS='/include'
Processing enabled TPL: Netcdf (enabled explicitly, disable with -DTPL_ENABLE_Netcdf=OFF)
-- Using FIND_PACKAGE(Netcdf ...) ...
-- NetCDF include file /usr/include/netcdf.h will be searched for define values
CMake Warning at cmake/tribits/common_tpls/find_modules/FindNetCDF.cmake:184 (message):
WARNING: The NetCDF found in does not have the correct NC_MAX_DIMS and
NC_MAX_VARS. It may not be compatible with Exodus. See NetCDF-Mapping.md
for details

Call Stack (most recent call first):
cmake/tribits/common_tpls/FindTPLNetcdf.cmake:66 (find_package)
cmake/tribits/core/package_arch/TribitsProcessEnabledTpl.cmake:89 (INCLUDE)
cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1659 (TRIBITS_PROCESS_ENABLED_TPL)
cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:202 (TRIBITS_PROCESS_ENABLED_TPLS)
cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)
CMakeLists.txt:93 (TRIBITS_PROJECT)

-- NetCDF does not require HDF5
-- NetCDF does not require PNetCDF
-- Found NetCDF: /usr/lib/x86_64-linux-gnu/libnetcdf.so
-- NetCDF Version:
-- NetCDF_NEEDS_HDF5 =
-- NetCDF_NEEDS_PNetCDF =
-- NetCDF_PARALLEL = False
-- NetCDF_INCLUDE_DIRS = /usr/include
-- NetCDF_LIBRARIES = /usr/lib/x86_64-linux-gnu/libnetcdf.so
-- NetCDF_BINARIES = ncdump;ncgen;nccopy
-- Netcdf_LIBRARY_NAMES='netcdf'
-- TPL_Netcdf_LIBRARIES='/usr/lib/x86_64-linux-gnu/libnetcdf.so'
-- TPL_Netcdf_INCLUDE_DIRS='/usr/include'
Processing enabled TPL: Matio (enabled by SEACASExo2mat, disable with -DTPL_ENABLE_Matio=OFF)
-- Matio_LIBRARY_NAMES='matio'
-- Searching for libs in Matio_LIBRARY_DIRS='/usr/lib/x86_64-linux-gnu'
-- Searching for a lib in the set "matio":
-- Searching for lib 'matio' ...
-- Found lib '/usr/lib/x86_64-linux-gnu/libmatio.so'
-- TPL_Matio_LIBRARIES='/usr/lib/x86_64-linux-gnu/libmatio.so'
-- Searching for headers in Matio_INCLUDE_DIRS='/usr/lib/x86_64-linux-gnu'
-- Searching for a header file in the set "matio.h":
-- Searching for header 'matio.h' ...
-- Found header '/usr/include/matio.h'
-- Found TPL 'Matio' include dirs '/usr/include'
-- TPL_Matio_INCLUDE_DIRS='/usr/include'
Processing enabled TPL: X11 (enabled by SEACASSVDI, disable with -DTPL_ENABLE_X11=OFF)
-- X11_LIBRARY_NAMES='X11'
-- Searching for libs in X11_LIBRARY_DIRS='/usr/lib/x86_64-linux-gnu'
-- Searching for a lib in the set "X11":
-- Searching for lib 'X11' ...
-- Found lib '/usr/lib/x86_64-linux-gnu/libX11.so'
-- TPL_X11_LIBRARIES='/usr/lib/x86_64-linux-gnu/libX11.so'
-- TPL_X11_INCLUDE_DIRS='/usr/include/X11'
Processing enabled TPL: DLlib (enabled explicitly, disable with -DTPL_ENABLE_DLlib=OFF)
-- Attempting to tentatively enable TPL 'DLlib' ...
-- DLlib_LIBRARY_NAMES='dl'
-- Searching for libs in DLlib_LIBRARY_DIRS=''
-- Searching for a lib in the set "dl":
-- Searching for lib 'dl' ...
-- Found lib '/usr/lib/x86_64-linux-gnu/libdl.so'
-- TPL_DLlib_LIBRARIES='/usr/lib/x86_64-linux-gnu/libdl.so'
-- Attempt to tentatively enable TPL 'DLlib' passed!

Setting up testing support ...

-- CTEST_DROP_METHOD='http'
-- CTEST_DROP_SITE='testing.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 ...

@Chaztikov
Copy link
Author

I seem to continue to have issues, possibly related to
#99

Is there a recommended order/way to install parallel netcdf with hdf5?

@mhoemmen
Copy link
Contributor

@Chaztikov What do the Peridigm developers recommend? I would suggest asking them about NetCDF etc. version issues.

@Chaztikov
Copy link
Author

Everything included in my configuration file seems to be what Peridigm recommends, I think I fixed one issue, now on to another

Thanks by the way for all of your time!

when I
make -j 12

I get fairly far in the process but then:

[ 87%] Building CXX object packages/rythmos/src/CMakeFiles/rythmos.dir/Rythmos_TimeStepNonlinearSolver.cpp.o
[ 87%] Building CXX object packages/rythmos/src/CMakeFiles/rythmos.dir/Rythmos_Version.cpp.o
[ 88%] Linking CXX static library libtpetra.a
[ 88%] Built target tpetra
[ 88%] Linking CXX static library librythmos.a
[ 88%] Built target rythmos
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

@Chaztikov
Copy link
Author

I updated my compiler to gcc-5, and now am getting this error:

[ 86%] Building CXX object packages/tpetra/core/src/CMakeFiles/tpetra.dir/Tpetra_MultiVectorFiller.cpp.o
[ 86%] Building CXX object packages/tpetra/core/src/CMakeFiles/tpetra.dir/Tpetra_RowGraph.cpp.o
[ 86%] Linking CXX static library libthyracore.a
[ 86%] Built target thyracore
[ 86%] Building CXX object packages/tpetra/core/src/CMakeFiles/tpetra.dir/Tpetra_Util.cpp.o
[ 86%] Building CXX object packages/tpetra/core/src/CMakeFiles/tpetra.dir/Tpetra_Version.cpp.o
[ 87%] Linking CXX static library libtpetra.a
[ 87%] Built target tpetra
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

I am using the mpicc installed by anaconda...could this cause an issue?

@mhoemmen
Copy link
Contributor

@Chaztikov If you do make without the -j flag, can you see an actual error?

@Chaztikov
Copy link
Author

I see

[ 69%] Building CXX object packages/epetraext/src/CMakeFiles/epetraext.dir/inout/EpetraExt_HDF5.cpp.o
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp: In member function ‘void EpetraExt::HDF5::Create(std::cxx11::string)’:
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:347:55: error: ‘H5Pset_fapl_mpio’ was not declared in this scope
H5Pset_fapl_mpio(plist_id
, mpiComm, MPI_INFO_NULL);
^
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp: In member function ‘void EpetraExt::HDF5::Open(std::cxx11::string, int)’:
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:382:62: error: ‘H5Pset_fapl_mpio’ was not declared in this scope
H5Pset_fapl_mpio(plist_id
, MPI_COMM_WORLD, MPI_INFO_NULL);
^
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:384:63: error: ‘H5Pset_fapl_mpio’ was not declared in this scope
H5Pset_fapl_mpio(plist_id
, MpiComm->Comm(), MPI_INFO_NULL);
^
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp: In member function ‘void EpetraExt::HDF5::Write(const string&, const Epetra_MultiVector&, bool)’:
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:1052:51: error: ‘H5Pset_dxpl_mpio’ was not declared in this scope
H5Pset_dxpl_mpio(plist_id
, H5FD_MPIO_COLLECTIVE);
^
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp: In member function ‘void EpetraExt::HDF5::Read(const string&, Epetra_MultiVector*&, bool, const int&)’:
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:1146:51: error: ‘H5Pset_dxpl_mpio’ was not declared in this scope
H5Pset_dxpl_mpio(plist_id_, H5FD_MPIO_COLLECTIVE);
^
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp: In member function ‘void EpetraExt::HDF5::Write(const string&, const string&, int, int, int, const void*)’:
/home/charles/Documents/code/Trilinos/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:1691:51: error: ‘H5Pset_dxpl_mpio’ was not declared in this scope
H5Pset_dxpl_mpio(plist_id_, H5FD_MPIO_COLLECTIVE);
^
packages/epetraext/src/CMakeFiles/epetraext.dir/build.make:950: recipe for target 'packages/epetraext/src/CMakeFiles/epetraext.dir/inout/EpetraExt_HDF5.cpp.o' failed
make[2]: *** [packages/epetraext/src/CMakeFiles/epetraext.dir/inout/EpetraExt_HDF5.cpp.o] Error 1
CMakeFiles/Makefile2:29683: recipe for target 'packages/epetraext/src/CMakeFiles/epetraext.dir/all' failed
make[1]: *** [packages/epetraext/src/CMakeFiles/epetraext.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
charles@liberty:~/Documen

@mhoemmen
Copy link
Contributor

@Chaztikov This looks like an HDF5 version issue. Does your HDF5 version implement functions like H5Pset_fapl_mpio?

@Chaztikov
Copy link
Author

Many thanks again, it seems there is another underlying issue, I believe you can close this!

@mhoemmen
Copy link
Contributor

@Chaztikov Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants