The build process tries to find pybind11/pybind11.h in the system (although it also bundles pybind11). This fails, and the build subsequently breaks. Reproducible: Always Steps to Reproduce: 1. Unmask sci-libs/tensorflow and its dependencies without pulling pybind11 into depgraph 2. emerge -1av sci-libs/tensorflow 3. wait for it Actual Results: ERROR: /var/tmp/portage/sci-libs/tensorflow-2.1.0/work/tensorflow-2.1.0-python3_6/tensorflow/python/BUILD:684:1: C++ compilation of rule '//tensorflow/python:_pywrap_toco_api.so' fa iled (Exit 1) tensorflow/python/lite/toco_python_api_wrapper.cc:16:10: fatal error: pybind11/pybind11.h: No such file or directory 16 | #include "pybind11/pybind11.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. Expected Results: Either the bundled pybind11 is used in include pathes or pybind11 is declared as a build dependency. The package should succesfully installed. Can be worked around by merging pybind11 beforehand.
Hi, I can confirm that and the fix!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cb21debae3d6f68cbbaf5a26b9362b515282b66 commit 9cb21debae3d6f68cbbaf5a26b9362b515282b66 Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2020-10-09 03:56:56 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2020-10-09 03:56:56 +0000 sci-libs/tensorflow: Add missing pybind11 dep to 2.3 Closes: https://bugs.gentoo.org/713482 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Jason Zaman <perfinion@gentoo.org> sci-libs/tensorflow/tensorflow-2.3.1.ebuild | 1 + 1 file changed, 1 insertion(+)