Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote


I'm trying to build Cadabra2 from source on Ubuntu 19.04 according to instructions on the github main page. The build fails and gives the error message

[ 86%] Linking CXX executable cadabra2cadabra
/usr/bin/ld: CMakeFiles/cadabra2cadabra.dir/DataCell.cc.o: in function `boost::system::error_category::std_category::equivalent(std::error_code const&, int) const':
/usr/include/boost/system/error_code.hpp:733: undefined reference to `boost::system::generic_category()'
/usr/bin/ld: /usr/include/boost/system/error_code.hpp:736: undefined reference to `boost::system::generic_category()'
/usr/bin/ld: /usr/include/boost/system/error_code.hpp:748: undefined reference to `boost::system::generic_category()'
/usr/bin/ld: CMakeFiles/cadabra2cadabra.dir/DataCell.cc.o: in function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const':
/usr/include/boost/system/error_code.hpp:703: undefined reference to `boost::system::generic_category()'
/usr/bin/ld: /usr/include/boost/system/error_code.hpp:706: undefined reference to `boost::system::generic_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [core/CMakeFiles/cadabra2cadabra.dir/build.make:144: core/cadabra2cadabra] Virhe 1
make[1]: *** [CMakeFiles/Makefile2:354: core/CMakeFiles/cadabra2cadabra.dir/all] Virhe 2
make: *** [Makefile:163: all] Virhe 2

(The system language is Finnish, so Virhe 1 is just Error 1 and so on.)

There has been no previous error messages and all of the dependencies should be installed properly. I have seen similar error messages on StackExchange questions, for example https://stackoverflow.com/questions/9723793/undefined-reference-to-boostsystemsystem-category-when-compiling/50146757#50146757. However, the errors aren't exactly the same and the answers haven't changed my problem.

Does anyone know what I'm doing wrong?

Thanks lammasmainen

in Installation trouble by (130 points)

1 Answer

+1 vote

I have just pushed a change to github related to boost. Can you give that another shot and let me know?

by (71.6k points)

The build and installation worked this time without errors. Thanks!