[Trilinos-Users] [EXTERNAL] Error building trilinos on MacOS

Bradley, Andrew Michael ambradl at sandia.gov
Fri Jun 10 15:28:05 EDT 2016


Hi Rich,

Add
    -D Trilinos_VERBOSE_CONFIGURE:BOOL=ON
to your Trilinos config and send the output. I'd like to see what it thinks boost is.


In addition, you might try

    -D Boost_INCLUDE_DIRS:FILEPATH="/Users/rmuller/Programs/boost/boost_1_61_0/include"
if that is indeed the include directory; the original line might just be off by that.

Cheers,
Andrew

________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of Muller, Richard <rmuller at sandia.gov>
Sent: Friday, June 10, 2016 1:25 PM
To: trilinos-users at trilinos.org
Subject: [EXTERNAL] [Trilinos-Users] Error building trilinos on MacOS

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/4a84cfca/attachment.html>


More information about the Trilinos-Users mailing list