Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 844196

Summary: sci-libs/tensorflow: unrestrict flatbuffers dep? (was: sci-libs/tensorflow-2.8.0 build fails with dev-libs/flatbuffers-2.0.6)
Product: Gentoo Linux Reporter: Hans Lub <hanslub42>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: UNCONFIRMED ---    
Severity: normal CC: sam, web.alexander
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
emerge --info output

Description Hans Lub 2022-05-14 16:35:02 UTC
Created attachment 778805 [details]
Build log

gcc gives up with an error message:

./tensorflow/lite/schema/schema_generated.h:3382:32: error: no matching function for call to 'tflite::QuantizationParameters::VerifyField<uint8_t>(flatbuffers::Verifier&, tflite::QuantizationParameters::FlatBuffersVTableOffset) const'
[...]
/usr/include/flatbuffers/table.h:115:8: note:   candidate expects 3 arguments, 2 provided


(full build log is attached)

The build succeeds after masking >=dev-libs/flatbuffers-2.0.1 (using dev-libs/flatbuffers-2.0.0-r1)
Comment 1 Hans Lub 2022-05-14 16:43:19 UTC
Created attachment 778808 [details]
emerge --info output
Comment 2 Hans Lub 2022-05-14 16:50:51 UTC
See also: https://github.com/tensorflow/tensorflow/issues/55740
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-17 01:36:46 UTC
Will need to bring back older flatbuffers for now given TF isn't really flexible wrt its deps.
Comment 4 Larry the Git Cow gentoo-dev 2022-06-17 18:00:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=574879c3f0e8fc498b503ca00d7ca5163dbcdfb3

commit 574879c3f0e8fc498b503ca00d7ca5163dbcdfb3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-17 18:00:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-17 18:00:31 +0000

    sci-libs/tensorflow: restrict flatbuffers dep
    
    Bug: https://bugs.gentoo.org/844196
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/tensorflow/tensorflow-2.5.0-r3.ebuild | 2 +-
 sci-libs/tensorflow/tensorflow-2.7.0.ebuild    | 2 +-
 sci-libs/tensorflow/tensorflow-2.8.0.ebuild    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db48002639cfc740f32be76605cc264dedd42213

commit db48002639cfc740f32be76605cc264dedd42213
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-17 17:58:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-17 17:58:56 +0000

    dev-libs/flatbuffers: restore 2.0.0-r1
    
    Needed for TF.
    
    This reverts commit d9104d1176f8add1d1a8a8fd13db0b51693537b9.
    
    Bug: https://bugs.gentoo.org/844196
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/flatbuffers/Manifest                    |  1 +
 dev-libs/flatbuffers/flatbuffers-2.0.0-r1.ebuild | 33 ++++++++++++++++++++++++
 2 files changed, 34 insertions(+)