Error with boost after installing dealii with spack

67 views
Skip to first unread message

Christian Burkhardt

unread,
Nov 11, 2020, 12:07:35 PM11/11/20
to deal.II User Group

Hi everyone,

I'm currently trying to install dea...@9.2.0 on our hpc cluster (Centos 7) using spack. While trying to install it using the 'releases/v0.15' branch, I faced a similar problem as reported in (omp_simd error in step-67 when installing deal.ii 9.2.0 with spack) and could workaround by setting ''-DDEAL_II_COMPONENT_EXAMPLES=OFF’' .

Now the installation runs fine and I can compile and run step-1 of the tutorials for example. As soon as I'm trying to compile my own code, there are errors with the boost package:


CMakeFiles/NonlinHeat_RK_2Stage_SubCycling_LineInput_MPI.dir/NonlinHeat_RK_2Stage_SubCycling_LineInput_MPI.cc.o:NonlinHeat_RK_2Stage_SubCycling_LineInput_MPI.cc:function boost::archive::detail::common_oarchive<boost::archive::text_oarchive>::vsave(boost::archive::class_name_type const&): error: undefined reference to 'boost::archive::text_oarchive_impl<boost::archive::text_oarchive>::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/NonlinHeat_RK_2Stage_SubCycling_LineInput_MPI.dir/NonlinHeat_RK_2Stage_SubCycling_LineInput_MPI.cc.o:NonlinHeat_RK_2Stage_SubCycling_LineInput_MPI.cc:function void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&): error: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'

I tried different other boost versions (1.59.0 / 1.62.0 / 1.63.0 / 1.67.0 / 1.73.0 ) and always had the same outcome.

Am I missing something here? I would appreciate any help and thank you in advance.

Christian

Marc Fehling

unread,
Nov 11, 2020, 3:38:31 PM11/11/20
to deal.II User Group
Hi Christian!

Right now I have two things in mind that you could try out:
  • Configure your own project with cmake from scratch, if you haven't already done so.
  • Build deal.II with the bundled version of boost and see if the problem persists.
You can also try out to build deal.II with the upstream master branch. Recently a check for matching boost versions has been introduced (see #11024).

Marc

Jean-Paul Pelteret

unread,
Nov 12, 2020, 2:36:38 AM11/12/20
to dea...@googlegroups.com, Marc Fehling
Hi Christian,


It sounds like what might be happening is that your project is preferrentially picking up a system boost rather than the one that you've compiled deal.II with. Marc's suggestion of building the development version with that patch (#11024) would likely confirm that. You could also compile your project with "make VERBOSE=1" and see if a system boost appears in the link line. If so, then you'll probably need to either setup a spack environment for deal.II to make sure that all of its (spack) dependencies take preference when the environment is active, or you can load the appropriate boost module (I believe that this would have the same effect). With either of these, you should clean your project build directory and then configure it once more.

I hope that this helps you solve your problem.

Best,
Jean-Paul
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/128c7d58-ca2b-43f5-b4bc-b47be4c0cd11o%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages