Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685386 - sci-libs/tensorflow-1.13.1 fails early in compile phase with dev-util/bazel-0.24.1
Summary: sci-libs/tensorflow-1.13.1 fails early in compile phase with dev-util/bazel-0...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-08 20:31 UTC by Harris Landgarten
Modified: 2019-05-11 22:30 UTC (History)
1 user (show)

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


Attachments
build log (1557347219-install-sci-libs_tensorflow-1.13.1:0::gentoo.out,10.98 KB, application/x-extension-out)
2019-05-08 20:31 UTC, Harris Landgarten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2019-05-08 20:31:36 UTC
Created attachment 575546 [details]
build log

This regression only started with the last ebuild changes.

>>> Starting src_compile
bazel --bazelrc=/var/tmp/paludis/sci-libs-tensorflow-1.13.1/temp//bazelrc --output_base=/var/tmp/paludis/sci-libs-tensorflow-1.13.1/work/tensorflow-1.13.1-python3_6-bazel-base build --nobuild //tensorflow:libtensorflow_framework.so //tensorflow:libtensorflow.so //tensorflow:libtensorflow_cc.so //tensorflow/tools/pip_package:build_pip_package
WARNING: ignoring LD_PRELOAD in environment.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
Loading: 0 packages loaded

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =sci-libs/tensorflow-1.13.1:0::gentoo --destination installed --replacing =sci-libs/tensorflow-1.13.1:0::installed --x-of-y 1 of 1:
  * When installing 'sci-libs/tensorflow-1.13.1:0::gentoo' replacing { 'sci-libs/tensorflow-1.13.1:0::installed' }:
  * When running an ebuild command on 'sci-libs/tensorflow-1.13.1:0::gentoo':
  * Install failed for 'sci-libs/tensorflow-1.13.1:0::gentoo' (paludis::ActionFailedError)
ERROR: /var/tmp/paludis/sci-libs-tensorflow-1.13.1/work/tensorflow-1.13.1-python3_6-bazel-base/external/io_bazel_rules_closure/closure/private/defs.bzl:18:17: FileType function is not available. You may use a list of strings instead. You can temporarily reenable the function by passing the flag --incompatible_disallow_filetype=false
Comment 1 Jonas Stein gentoo-dev 2019-05-08 20:33:07 UTC
Thank you for the report. Please recompile and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 2 Harris Landgarten 2019-05-08 21:20:42 UTC
I already posted what I have. The ebuild references several external resources in setting up the workspace. It is possible something changed in an external resource.
Comment 3 Harris Landgarten 2019-05-09 02:49:08 UTC
This bug is related to bazel-0.24.1. The upgrade to bazel is causing this issue. Downgrading to bazel-0.22.0 allows tensorflow to build successfully. Please change the title of this bug to reference bazel-0.24.1
Comment 4 Larry the Git Cow gentoo-dev 2019-05-11 22:30:25 UTC
The bug has been closed via the following commit(s):

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

commit e796eb3282002db984134ba540602e34cda34b20
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2019-05-11 21:11:42 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2019-05-11 22:29:36 +0000

    sci-libs/tensorflow: set max version of bazel dep
    
    Closes: https://bugs.gentoo.org/685386
    Package-Manager: Portage-2.3.62, Repoman-2.3.11
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>

 sci-libs/tensorflow/tensorflow-1.13.1.ebuild | 1 +
 1 file changed, 1 insertion(+)