Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713482 - sci-libs/tensorflow-2.1.0: undeclared dependency on dev-python/pybind11
Summary: sci-libs/tensorflow-2.1.0: undeclared dependency on dev-python/pybind11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-19 15:08 UTC by Felix W.
Modified: 2020-10-09 03:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix W. 2020-03-19 15:08:24 UTC
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.
Comment 1 foufou33 2020-03-27 16:32:12 UTC
Hi, I can confirm that and the fix!
Comment 2 Larry the Git Cow gentoo-dev 2020-10-09 03:58:38 UTC
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(+)