[Trilinos-Users] specify version of boost

Andrea Zonca zonca at sdsc.edu
Wed Aug 5 13:10:22 EDT 2015

I am trying to build trilinos on the Comet Supercomputer (SDSC).
Unfortunately we have 2 versions of boost installed, a old one in
/usr/lib64, and a newer one (1.55) in /opt/boost/intel.

The older version won’t work with Trilinos.
I specified:

    -D TPL_Boost_INCLUDE_DIRS="/opt/boost/intel/include" \
    -D TPL_Boost_LIBRARY_DIRS="/opt/boost/intel/lib" \

in my do-configure script, however I get this error:

[ 75%] Built target stkclassic_adapt
Linking CXX executable STKClassic_adapt_exe_1.exe
ld: warning: libboost_program_options.so.1.55.0, needed by
../../../stk_search/stk_search/libstkclassic_search.so.12.0.1, may
conflict with libboost_program_options.so.5
ld: warning: libboost_system.so.1.55.0, needed by
../../../stk_search/stk_search/libstkclassic_search.so.12.0.1, may
conflict with libboost_system.so.5
ld: CMakeFiles/STKClassic_adapt_exe_1.dir/AdaptMain.cpp.o: undefined
reference to symbol '_ZN5boost6system15system_categoryEv'
/opt/boost/intel/lib/libboost_system.so.1.55.0: error adding symbols:
DSO missing from command line
make[2]: *** [packages/stk/stk_classic/stk_adapt/stk_adapt/main/STKClassic_adapt_exe_1.exe]
Error 1
make[1]: *** [packages/stk/stk_classic/stk_adapt/stk_adapt/main/CMakeFiles/STKClassic_adapt_exe_1.dir/all]
Error 2
make: *** [all] Error 2

it looks like it is still loading libboost_system.so.5 from /usr/lib64.

Is there a way to configure better the build system to avoid this?

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

More information about the Trilinos-Users mailing list