Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673332 - sci-libs/tensorflow-1.11.0 with dev-util/bazel-0.19.0 - ERROR: .../work/bazel-base-python3_7/external/protobuf_archive/BUILD.bazel:46:11: in cmd attribute of genrule rule @protobuf_archive//:link_headers: $(INCLUDEDIR) not defined
Summary: sci-libs/tensorflow-1.11.0 with dev-util/bazel-0.19.0 - ERROR: .../work/bazel...
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: 2018-12-17 11:58 UTC by Helmut Jarausch
Modified: 2018-12-24 10:46 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 Helmut Jarausch 2018-12-17 11:58:39 UTC
I have a slightly patched ebuild for tensorflow-1.11.0 (to allow usage of Python-3.7)
This builds just fine with bazel-0.18.0.

But bazel-0.19.0 fails with

>>> Configuring source in /var/tmp/portage/sci-libs/tensorflow-1.11.0/work/tensorflow-1.11.0 ...
 * python3_7: running run_in_build_dir do_configure
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/var/tmp/portage/sci-libs/tensorflow-1.11.0/work/tensorflow-1.11.0-python3_7/tools/bazel.rc
Extracting Bazel installation...
WARNING: ignoring LD_PRELOAD in environment.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.19.0- (@non-git) installed.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details.
	--config=mkl         	# Build with MKL support.
	--config=monolithic  	# Config for mostly static monolithic build.
Configuration finished
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-libs/tensorflow-1.11.0/work/tensorflow-1.11.0 ...
 * Running: bazel --output_base=/var/tmp/portage/sci-libs/tensorflow-1.11.0/work/bazel-base-python3_7 build --nobuild //tensorflow:libtensorflow_framework.so //tensorflow:libtensorflow.so //tensorflow:libtensorflow_cc.so //tensorflow/tools/pip_package:build_pip_package
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/var/tmp/portage/sci-libs/tensorflow-1.11.0/work/tensorflow-1.11.0-python3_7/tools/bazel.rc
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: 

Loading: 0 packages loaded

Analyzing: 4 targets (2 packages loaded)

Analyzing: 4 targets (3 packages loaded)

Analyzing: 4 targets (4 packages loaded, 0 targets configured)

ERROR: /var/tmp/portage/sci-libs/tensorflow-1.11.0/work/bazel-base-python3_7/external/protobuf_archive/BUILD.bazel:46:11: in cmd attribute of genrule rule @protobuf_archive//:link_headers: $(INCLUDEDIR) not defined
Analyzing: 4 targets (125 packages loaded, 361 targets configured)
    currently loading: tensorflow/core/kernels ... (9 packages)


ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis of target '@protobuf_archive//:link_headers' failed; build aborted
Analyzing: 4 targets (132 packages loaded, 362 targets configured)
    currently loading: tensorflow/core/kernels ... (2 packages)


INFO: Elapsed time: 2.542s
Analyzing: 4 targets (132 packages loaded, 362 targets configured)
    currently loading: tensorflow/core/kernels ... (2 packages)


INFO: 0 processes.
Analyzing: 4 targets (132 packages loaded, 362 targets configured)
    currently loading: tensorflow/core/kernels ... (2 packages)


FAILED: Build did NOT complete successfully (132 packages loaded, 362 targets \
configured)
    currently loading: tensorflow/core/kernels ... (2 packages)



FAILED: Build did NOT complete successfully (132 packages loaded, 362 targets \
configured)
    currently loading: tensorflow/core/kernels ... (2 packages)
 * ERROR: sci-libs/tensorflow-1.11.0::local failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 3823:  Called ebazel 'build' '--nobuild' '//tensorflow:libtensorflow_framework.so' '//tensorflow:libtensorflow.so' '//tensorflow:libtensorflow_cc.so' '//tensorflow/tools/pip_package:build_pip_package'
 *   environment, line 1900:  Called die
 * The specific snippet of code:
 *       bazel --output_base="${output_base}" $@ || die
Comment 1 Jason Zaman gentoo-dev 2018-12-24 10:46:10 UTC
tensorflow-1.12.0 is in the tree now. it works with the new bazel. it might also work with python3_7 but I haven't tested so didn't add the flag yet