Linking error with boost after installing dealii with spack

10 views
Skip to first unread message

Christian Burkhardt

unread,
Nov 12, 2020, 2:41:48 AM11/12/20
to Spack

Dear spack community,

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 (https://groups.google.com/g/dealii/c/sFomyyf7lAU/m/yV0B-oWxBwAJ) 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

Massimiliano Culpo

unread,
Nov 16, 2020, 8:08:07 AM11/16/20
to Spack
Hi Christian,

Could you please submit this as a "build-error" issue in our Spack repository on Github? Feel free to ping the maintainers of the package if you do so. You can retrieve them with the following command:

```
$ spack mainainers dealii
davydden  jppelteret  luca-heltai
```

Massimiliano
Reply all
Reply to author
Forward
0 new messages