[Trilinos-Users] Error building trilinos on MacOS

Muller, Richard rmuller at sandia.gov
Fri Jun 10 15:25:04 EDT 2016


I’m trying to build trilinos on MacOS 10.11.5 (El Capitan). Building from the github archive. Got the error:

[ 68%] Building CXX object packages/stk/stk_util/stk_util/util/CMakeFiles/stk_util_util.dir/PageAlignedAllocator.cpp.o
In file included from /Users/rmuller/Programs/trilinos/TrilinosGit/packages/stk/stk_util/stk_util/util/PageAlignedAllocator.cpp:35:
/Users/rmuller/Programs/trilinos/TrilinosGit/packages/stk/stk_util/stk_util/util/PageAlignedAllocator.hpp:37:10: fatal error:
      'boost/type_traits/is_same.hpp' file not found
#include <boost/type_traits/is_same.hpp>  // for is_same
         ^
1 error generated.
make[2]: *** [packages/stk/stk_util/stk_util/util/CMakeFiles/stk_util_util.dir/PageAlignedAllocator.cpp.o] Error 1
make[1]: *** [packages/stk/stk_util/stk_util/util/CMakeFiles/stk_util_util.dir/all] Error 2
make: *** [all] Error 2

I’m using boost 1.61 (also tried with v1.59). The file /Users/rmuller/Programs/boost/boost_1_61_0/boost/type_traits/is_same.hpp exists on my computer, and in my CMAKE configuration file I have:
    -D Boost_INCLUDE_DIRS:FILEPATH="/Users/rmuller/Programs/boost/boost_1_61_0"
defined.

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


Any suggestions for how to get around this?

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


More information about the Trilinos-Users mailing list