Re: [deal.II] Linking error when compiling examples: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
Laryssa: The problem was that I had extracted the boost headers locally and had not built/installed it. David Wells (thanks David!) reported the issue here: https://github.com/dealii/dealii/issues/14925. Since then, I have been trying to link one of my projects against deal.ii (copy with bundled boost) and I get this error: c++: error: unrecognized command line option ‘-fopenmp-simd’ This is an unrelated problem you want to address. How did that flag end up on your command line? If the compiler doesn't understand the flag, then deal.II should not have added it. Do you have it set via an environment variable? [ 40%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/vanderPolDuffing.cpp.o In file included from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/tag_of.hpp:14:0, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/category_of.hpp:11, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/struct/detail/extension.hpp:14, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/struct/adapt_struct.hpp:22, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/std_pair.hpp:14, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/include/std_pair.hpp:11, from /nas/longleaf/home/laryssa/fch-ep/src/Datafile.h:11, from /nas/longleaf/home/laryssa/fch-ep/src/Datafile.cpp:8: /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/detail/is_mpl_sequence.hpp:12:69:fatal error: boost/fusion/support/detail/is_native_fusion_sequence.hpp: No such file or directory #include ^ compilation terminated. Shouldn't fusion be available once I use the bundled version of boost? I am not sure what to get out of this error message. This is a problem. The bundled version of boost is not complete -- boost is just too large for us to include everything. It only includes those parts we actually need in boost. But that also means that you are left high and dry if you are using other parts of boost in your own code. Are you? If you are, then the only option is to use the version of boost that comes with your system. Of course, in that case you have to not only install the boost headers in your system, but also the corresponding libraries. Best W. -- Wolfgang Bangerth email: bange...@colostate.edu www: http://www.math.colostate.edu/~bangerth/ -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/5b88563a-03ef-0f34-448d-0affa3f32cf8%40colostate.edu.
Re: [deal.II] Linking error when compiling examples: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
Laryssa, The bundled boost package only includes the files that are used within deal.II. If you want to use additional boost features, you should build boost yourself (and tell deal.II where to find it). Best, Daniel On Tue, Mar 21, 2023 at 1:19 PM Laryssa Abdala wrote: > > Great, that solved the problem. Thank you. > The problem was that I had extracted the boost headers locally and had not > built/installed it. David Wells (thanks David!) reported the issue here: > https://github.com/dealii/dealii/issues/14925. Since then, I have been > trying to link one of my projects against deal.ii (copy with bundled boost) > and I get this error: > > c++: error: unrecognized command line option ‘-fopenmp-simd’ > make[2]: *** [Tests/CodimHeatEquation/CMakeFiles/demo.dir/demo.cc.o] Error > 1 > make[1]: *** [Tests/CodimHeatEquation/CMakeFiles/demo.dir/all] Error 2 > make[1]: *** Waiting for unfinished jobs > [ 6%] Building CXX object CMakeFiles/fchep.dir/src/Datafile.cpp.o > [ 13%] Building CXX object CMakeFiles/fchep.dir/src/EPSolver.cpp.o > [ 13%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/FentonKarma4v.cpp.o > [ 16%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/IonicModel.cpp.o > [ 20%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/MinimalModel.cpp.o > [ 23%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/NashPanfilov.cpp.o > [ 26%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/Passive.cpp.o > [ 30%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/Ryzhii.cpp.o > [ 40%] Building CXX object CMakeFiles/fchep.dir/src/Timer.cpp.o > [ 40%] Building CXX object CMakeFiles/fchep.dir/src/TimeData.cpp.o > [ 40%] Building CXX object > CMakeFiles/fchep.dir/src/IonicModels/vanderPolDuffing.cpp.o > In file included from > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/tag_of.hpp:14:0, > from > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/category_of.hpp:11, > from > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/struct/detail/extension.hpp:14, > from > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/struct/adapt_struct.hpp:22, > from > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/std_pair.hpp:14, > from > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/include/std_pair.hpp:11, > from /nas/longleaf/home/laryssa/fch-ep/src/Datafile.h:11, > from /nas/longleaf/home/laryssa/fch-ep/src/Datafile.cpp:8: > > /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/detail/is_mpl_sequence.hpp:12:69: > fatal error: boost/fusion/support/detail/is_native_fusion_sequence.hpp: No > such file or directory > #include > ^ > compilation terminated. > > Shouldn't fusion be available once I use the bundled version of boost? I > am not sure what to get out of this error message. > > Thanks again, > Laryssa > > > On Monday, March 20, 2023 at 1:51:24 PM UTC-4 Wolfgang Bangerth wrote: > >> On 3/19/23 15:47, Laryssa Abdala wrote: >> > >> > I've tried using different versions of boost, but have not been >> > successful with any. I've attached the detailed.log if anyone could >> help >> > me. >> >> Laryssa, I don't know specifically what causes this error, but you can >> almost certainly avoid it if you use the bundled version of deal.II. I >> believe that you can achieve that by passing >> -DEAL_II_FORCE_BUNDLED_BOOST=ON >> to cmake when you configure. In the output, cmake currently reports >> (based on the file you had attached) this: >> # DEAL_II_WITH_BOOST set up with external dependencies >> With the flag above, it should then say that it is using the 'bundled' >> version of BOOST instead. >> >> Best >> W. >> >> >> -- >> >> Wolfgang Bangerth email: bang...@colostate.edu >> www: http://www.math.colostate.edu/~bangerth/ >> > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/261cbc2d-7920-4000-8cc3-154d148b32a4n%40googlegroups.com >
Re: [deal.II] Linking error when compiling examples: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
Great, that solved the problem. Thank you. The problem was that I had extracted the boost headers locally and had not built/installed it. David Wells (thanks David!) reported the issue here: https://github.com/dealii/dealii/issues/14925. Since then, I have been trying to link one of my projects against deal.ii (copy with bundled boost) and I get this error: c++: error: unrecognized command line option ‘-fopenmp-simd’ make[2]: *** [Tests/CodimHeatEquation/CMakeFiles/demo.dir/demo.cc.o] Error 1 make[1]: *** [Tests/CodimHeatEquation/CMakeFiles/demo.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs [ 6%] Building CXX object CMakeFiles/fchep.dir/src/Datafile.cpp.o [ 13%] Building CXX object CMakeFiles/fchep.dir/src/EPSolver.cpp.o [ 13%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/FentonKarma4v.cpp.o [ 16%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/IonicModel.cpp.o [ 20%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/MinimalModel.cpp.o [ 23%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/NashPanfilov.cpp.o [ 26%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/Passive.cpp.o [ 30%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/Ryzhii.cpp.o [ 40%] Building CXX object CMakeFiles/fchep.dir/src/Timer.cpp.o [ 40%] Building CXX object CMakeFiles/fchep.dir/src/TimeData.cpp.o [ 40%] Building CXX object CMakeFiles/fchep.dir/src/IonicModels/vanderPolDuffing.cpp.o In file included from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/tag_of.hpp:14:0, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/category_of.hpp:11, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/struct/detail/extension.hpp:14, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/struct/adapt_struct.hpp:22, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/adapted/std_pair.hpp:14, from /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/include/std_pair.hpp:11, from /nas/longleaf/home/laryssa/fch-ep/src/Datafile.h:11, from /nas/longleaf/home/laryssa/fch-ep/src/Datafile.cpp:8: /nas/longleaf/home/laryssa/dogwood/sfw/dealii/install-dbg/include/deal.II/bundled/boost/fusion/support/detail/is_mpl_sequence.hpp:12:69: fatal error: boost/fusion/support/detail/is_native_fusion_sequence.hpp: No such file or directory #include ^ compilation terminated. Shouldn't fusion be available once I use the bundled version of boost? I am not sure what to get out of this error message. Thanks again, Laryssa On Monday, March 20, 2023 at 1:51:24 PM UTC-4 Wolfgang Bangerth wrote: > On 3/19/23 15:47, Laryssa Abdala wrote: > > > > I've tried using different versions of boost, but have not been > > successful with any. I've attached the detailed.log if anyone could help > > me. > > Laryssa, I don't know specifically what causes this error, but you can > almost certainly avoid it if you use the bundled version of deal.II. I > believe that you can achieve that by passing > -DEAL_II_FORCE_BUNDLED_BOOST=ON > to cmake when you configure. In the output, cmake currently reports > (based on the file you had attached) this: > # DEAL_II_WITH_BOOST set up with external dependencies > With the flag above, it should then say that it is using the 'bundled' > version of BOOST instead. > > Best > W. > > > -- > > Wolfgang Bangerth email: bang...@colostate.edu > www: http://www.math.colostate.edu/~bangerth/ > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/261cbc2d-7920-4000-8cc3-154d148b32a4n%40googlegroups.com.
Re: [deal.II] Linking error when compiling examples: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
On 3/19/23 15:47, Laryssa Abdala wrote: I've tried using different versions of boost, but have not been successful with any. I've attached the detailed.log if anyone could help me. Laryssa, I don't know specifically what causes this error, but you can almost certainly avoid it if you use the bundled version of deal.II. I believe that you can achieve that by passing -DEAL_II_FORCE_BUNDLED_BOOST=ON to cmake when you configure. In the output, cmake currently reports (based on the file you had attached) this: #DEAL_II_WITH_BOOST set up with external dependencies With the flag above, it should then say that it is using the 'bundled' version of BOOST instead. Best W. -- Wolfgang Bangerth email: bange...@colostate.edu www: http://www.math.colostate.edu/~bangerth/ -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/eecef110-9791-e1c4-b724-5d9182815f67%40colostate.edu.
[deal.II] Linking error when compiling examples: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
Hello everyone, I am currently building dealii on a cluster and am getting a linking error when compiling some of the examples. This is what I get: ../lib/libdeal_II.g.so.9.4.1: error: undefined reference to 'boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)' ../lib/libdeal_II.g.so.9.4.1: error: undefined reference to 'boost::archive::basic_binary_iarchive::load_override(boost::archive::class_name_type&)' ../lib/libdeal_II.g.so.9.4.1: error: undefined reference to 'boost::archive::basic_binary_oprimitive >::save(std::__cxx11::basic_string, std::allocator > const&)' collect2: error: ld returned 1 exit status I've tried using different versions of boost, but have not been successful with any. I've attached the detailed.log if anyone could help me. Thanks, Laryssa -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAGtr4iDRFzFjZaPEdnzBVUhKzyA6NAQas7ytWJKB9RLJ96_Qpg%40mail.gmail.com. detailed.log Description: Binary data