[afio] Compilation error in applications, including tests
Hi, I wanted to try out the proposed AFIO library, but I'm having trouble with compilation. I followed the instructions for inserting it into the boost checkout, by symlinking libs/afio to the AFIO checkout. Boost compilation happens correctly, including the AFIO library, however I get include failures on BindLib when I try to compile a test program. I then tried running the test suite, as per instructions: $ ./b2 libs/afio/test [snip] gcc.compile.c++.pch bin.v2/libs/afio/test/gcc-4.9.1/debug/threading-multi/test_functions.hpp.gch In file included from ./boost/afio/spinlock/include/boost/spinlock/concurrent_unordered_map.hpp:35:0, from ./boost/afio/config.hpp:341, from ./boost/afio/afio.hpp:41, from libs/afio/test/test_functions.hpp:17: ./boost/afio/spinlock/include/boost/spinlock/spinlock.hpp:81:36: fatal error: bindlib/include/import.h: No such file or directory #include "bindlib/include/import.h" ^ compilation terminated. ... And more of the same ilk. Am I missing some obvious configuration or something? The boost version is at tag boost-1.58.0 and AFIO is at tag v1.31_Boost_v1.58. The BindLib submodule does contain include/import.h. Regards, Brian
On 27 Apr 2015 at 13:26, Brian Ravnsgaard Riis wrote:
I wanted to try out the proposed AFIO library, but I'm having trouble with compilation.
I followed the instructions for inserting it into the boost checkout, by symlinking libs/afio to the AFIO checkout. Boost compilation happens correctly, including the AFIO library, however I get include failures on BindLib when I try to compile a test program.
I then tried running the test suite, as per instructions:
$ ./b2 libs/afio/test [snip] gcc.compile.c++.pch bin.v2/libs/afio/test/gcc-4.9.1/debug/threading-multi/test_functions.hpp.gch In file included from ./boost/afio/spinlock/include/boost/spinlock/concurrent_unordered_map.hpp:35:0, from ./boost/afio/config.hpp:341, from ./boost/afio/afio.hpp:41, from libs/afio/test/test_functions.hpp:17: ./boost/afio/spinlock/include/boost/spinlock/spinlock.hpp:81:36: fatal error: bindlib/include/import.h: No such file or directory #include "bindlib/include/import.h" ^ compilation terminated. ...
And more of the same ilk.
Am I missing some obvious configuration or something?
Yes, you didn't do a recursive submodule init and update as per the instructions. You need to specifically do: git submodule update --init --recursive ... to make sure the submodules of the submodules are checked out. In this case, spinlock does not have its bindlib being checked out. Or else use the tarball https://boostgsoc13.github.io/boost.afio/afio-stable.tar.bz2 which should be ready to go. Let me know if it isn't. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
Den 27-04-2015 kl. 23:02 skrev Niall Douglas:
You need to specifically do:
git submodule update --init --recursive
Right. I missed the --recursive flag. All seems good now. The test suite is running. Thanks a lot. Regards, Brian
participants (2)
-
Brian Ravnsgaard Riis
-
Niall Douglas