Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Ubuntu 20.04 #246

Open
m-kru opened this issue Apr 20, 2021 · 1 comment
Open

Build fails on Ubuntu 20.04 #246

m-kru opened this issue Apr 20, 2021 · 1 comment

Comments

@m-kru
Copy link

m-kru commented Apr 20, 2021

/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp: In function ‘void pycohal::wrap_test_functions(pybind11::module_&)’:
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:106:17: error: variable ‘pybind11::module_ lSubModule’ has initializer but incomplete type
  106 |     py::module_ lSubModule = aModule.def_submodule("tests");
      |                 ^~~~~~~~~~
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:106:30: error: invalid use of incomplete type ‘class pybind11::module_’
  106 |     py::module_ lSubModule = aModule.def_submodule("tests");
      |                              ^~~~~~~
In file included from /home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:22:
include/uhal/pycohal/enums_logging.hpp:6:7: note: forward declaration of ‘class pybind11::module_’
    6 | class module_;
      |       ^~~~~~~
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp: In function ‘void pybind11_init__core(pybind11::module&)’:
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:229:23: error: invalid initialization of reference of type ‘pybind11::module_&’ from expression of type ‘pybind11::module’
  229 |   pycohal::wrap_enums(m);
      |                       ^
In file included from /home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:22:
include/uhal/pycohal/enums_logging.hpp:20:19: note: in passing argument 1 of ‘void pycohal::wrap_enums(pybind11::module_&)’
   20 |   void wrap_enums(pybind11::module_&);
      |                   ^~~~~~~~~~~~~~~~~~
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:232:35: error: invalid initialization of reference of type ‘pybind11::module_&’ from expression of type ‘pybind11::module’
  232 |   pycohal::wrap_logging_functions(m);
      |                                   ^
In file included from /home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:22:
include/uhal/pycohal/enums_logging.hpp:22:31: note: in passing argument 1 of ‘void pycohal::wrap_logging_functions(pybind11::module_&)’
   22 |   void wrap_logging_functions(pybind11::module_&);
      |                               ^~~~~~~~~~~~~~~~~~
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:235:28: error: invalid initialization of reference of type ‘pybind11::module_&’ from expression of type ‘pybind11::module’
  235 |   pycohal::wrap_exceptions(m);
      |                            ^
In file included from /home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:23:
include/uhal/pycohal/exceptions.hpp:17:24: note: in passing argument 1 of ‘void pycohal::wrap_exceptions(pybind11::module_&)’
   17 |   void wrap_exceptions(pybind11::module_&);
      |                        ^~~~~~~~~~~~~~~~~~
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:238:32: error: invalid initialization of reference of type ‘pybind11::module_&’ from expression of type ‘pybind11::module’
  238 |   pycohal::wrap_test_functions(m);
      |                                ^
/home/mkru/workspace/ipbus-software/uhal/python/src/common/cactus_pycohal.cpp:104:41: note: in passing argument 1 of ‘void pycohal::wrap_test_functions(pybind11::module_&)’
  104 |   void wrap_test_functions(py::module_& aModule)
      |                            ~~~~~~~~~~~~~^~~~~~~
make[2]: *** [/home/mkru/workspace/ipbus-software/uhal/config/mfRules.mk:87: /home/mkru/workspace/ipbus-software/uhal/python/obj/cactus_pycohal.o] Error 1
make[2]: Leaving directory '/home/mkru/workspace/ipbus-software/uhal/python'
make[1]: *** [Makefile:49: python/.virtual.Makefile] Error 2
make[1]: Leaving directory '/home/mkru/workspace/ipbus-software/uhal'
make: *** [Makefile:58: uhal/.virtual.Makefile] Error 2

pybind installed from Ubuntu official repository.

@tswilliams
Copy link
Collaborator

Hi

Which version of pybind is installed? Is the pybind submodule of the ipbus-software repo checked out? The pybind sources should be present under uhal/python/pybind

Cheers,
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants