tensorflow / tensorflow

An Open Source Machine Learning Framework for Everyone
https://tensorflow.org
Apache License 2.0
185.68k stars 74.19k forks source link

cuda10+tensorflow1.12 on linux build failed #25854

Closed beew closed 5 years ago

beew commented 5 years ago

System information

WARNING: Processed legacy workspace file /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade. WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior. DEBUG: /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5: Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default WARNING: /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/grpc/bazel/grpc_build_system.bzl:172:12 WARNING: /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/grpc/bazel/grpc_build_system.bzl:172:12 WARNING: /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/external/grpc/bazel/grpc_build_system.bzl:172:12 WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/timeseries/python/timeseries/BUILD:354:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions. WARNING: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/contrib/BUILD:13:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions. INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded). INFO: Found 1 target... ERROR: /home/bernard/opt/cuda_test/cuda10/tensorflow-1.12.0/tensorflow/BUILD:533:1: Executing genrule //tensorflow:tf_python_api_gen_v1 failed (Aborted): bash failed: error executing command (cd /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/execroot/org_tensorflow && \ exec env - \ CUDA_TOOLKIT_PATH=/home/bernard/opt/cuda_test/cuda10/cuda \ CUDNN_INSTALL_PATH=/home/bernard/opt/cuda_test/cuda10/cuda \ GCC_HOST_COMPILER_PATH=/usr/bin/gcc \ LD_LIBRARY_PATH=/home/bernard/opt/cuda_test/cuda10/opencv/lib:/home/bernard/opt/cuda_test/cuda10/openmpi/lib:/home/bernard/opt/cuda_test/cuda10/lib:/home/bernard/opt/cuda_test/cuda10/cuda/lib64:/home/bernard/opt/cuda_test/cuda10/cuda/extras/CUPTI/lib64:/home/bernard/opt/cuda_test/cuda10/lib::/home/bernard/opt/cuda_test/cuda10/TensorRT/lib \ NCCL_HDR_PATH=/usr/local/cuda-9.2/targets/x86_64-linux/lib/../include \ NCCL_INSTALL_PATH=/usr/local/cuda-9.2/targets/x86_64-linux/lib \ PATH=/home/bernard/opt/cuda_test/cuda10/opencv/bin:/home/bernard/opt/cuda_test/cuda10/openmpi/bin:/home/bernard/opt/cuda_test/cuda10/cuda/bin:/home/bernard/opt/cuda_test/cuda10/bin:/opt/openmpi-cuda/bin:/usr/local/cuda/bin:/home/bernard/bin:/home/bernard/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/bernard/opt/qt5/bin:/home/bernard/opt/opencv/bin \ PYTHON_BIN_PATH=/usr/bin/python3 \ PYTHON_LIB_PATH=/home/bernard/opt/cuda_test/cuda10/lib/python3.5/site-packages \ TENSORRT_INSTALL_PATH=/home/bernard/opt/cuda_test/cuda10/TensorRT/targets/x86_64-linux-gnu/lib \ TF_CUDA_CLANG=0 \ TF_CUDA_COMPUTE_CAPABILITIES=6.1 \ TF_CUDA_VERSION=10.0 \ TF_CUDNN_VERSION=7 \ TF_NCCL_VERSION=2 \ TF_NEED_CUDA=1 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_ROCM=0 \ TF_TENSORRT_VERSION=5.0.2 \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1 --root_init_template=tensorflow/api_template.init.py --apidir=bazel-out/k8-opt/genfiles/tensorflow_api/v1/ --apiname=tensorflow --apiversion=1 --package=tensorflow.python --output_package=tensorflow._api.v1 bazel-out/k8-opt/genfiles/tensorflow/_api/v1/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/app/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/bitwise/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/compat/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/data/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/data/experimental/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/debugging/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/distributions/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/dtypes/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/errors/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/feature_column/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/gfile/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/graph_util/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/image/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/io/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/initializers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/activations/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/densenet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/inception_resnet_v2/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/inception_v3/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/mobilenet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/mobilenet_v2/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/nasnet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/resnet50/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/vgg16/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/vgg19/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/xception/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/backend/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/callbacks/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/constraints/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/boston_housing/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/cifar10/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/cifar100/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/fashion_mnist/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/imdb/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/mnist/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/reuters/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/estimator/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/initializers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/layers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/losses/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/metrics/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/models/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/optimizers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/image/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/sequence/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/text/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/regularizers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/wrappers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/wrappers/scikit_learn/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/layers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/linalg/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/logging/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/losses/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/manip/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/math/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/metrics/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/nn/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/nn/rnn_cell/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/profiler/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/python_io/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/quantization/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/random/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/resource_loader/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/strings/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/builder/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/loader/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/main_op/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/signature_constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/signature_def_utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/tag_constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sets/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sparse/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/spectral/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/summary/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sysconfig/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/test/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/train/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/train/queue_runner/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/user_ops/init.py'): bash failed: error executing command (cd /home/bernard/.cache/bazel/_bazel_bernard/8b714e31638c9283b6c7060cf778d169/execroot/org_tensorflow && \ exec env - \ CUDA_TOOLKIT_PATH=/home/bernard/opt/cuda_test/cuda10/cuda \ CUDNN_INSTALL_PATH=/home/bernard/opt/cuda_test/cuda10/cuda \ GCC_HOST_COMPILER_PATH=/usr/bin/gcc \ LD_LIBRARY_PATH=/home/bernard/opt/cuda_test/cuda10/opencv/lib:/home/bernard/opt/cuda_test/cuda10/openmpi/lib:/home/bernard/opt/cuda_test/cuda10/lib:/home/bernard/opt/cuda_test/cuda10/cuda/lib64:/home/bernard/opt/cuda_test/cuda10/cuda/extras/CUPTI/lib64:/home/bernard/opt/cuda_test/cuda10/lib::/home/bernard/opt/cuda_test/cuda10/TensorRT/lib \ NCCL_HDR_PATH=/usr/local/cuda-9.2/targets/x86_64-linux/lib/../include \ NCCL_INSTALL_PATH=/usr/local/cuda-9.2/targets/x86_64-linux/lib \ PATH=/home/bernard/opt/cuda_test/cuda10/opencv/bin:/home/bernard/opt/cuda_test/cuda10/openmpi/bin:/home/bernard/opt/cuda_test/cuda10/cuda/bin:/home/bernard/opt/cuda_test/cuda10/bin:/opt/openmpi-cuda/bin:/usr/local/cuda/bin:/home/bernard/bin:/home/bernard/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/bernard/opt/qt5/bin:/home/bernard/opt/opencv/bin \ PYTHON_BIN_PATH=/usr/bin/python3 \ PYTHON_LIB_PATH=/home/bernard/opt/cuda_test/cuda10/lib/python3.5/site-packages \ TENSORRT_INSTALL_PATH=/home/bernard/opt/cuda_test/cuda10/TensorRT/targets/x86_64-linux-gnu/lib \ TF_CUDA_CLANG=0 \ TF_CUDA_COMPUTE_CAPABILITIES=6.1 \ TF_CUDA_VERSION=10.0 \ TF_CUDNN_VERSION=7 \ TF_NCCL_VERSION=2 \ TF_NEED_CUDA=1 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_ROCM=0 \ TF_TENSORRT_VERSION=5.0.2 \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1 --root_init_template=tensorflow/api_template.init.py --apidir=bazel-out/k8-opt/genfiles/tensorflow_api/v1/ --apiname=tensorflow --apiversion=1 --package=tensorflow.python --output_package=tensorflow._api.v1 bazel-out/k8-opt/genfiles/tensorflow/_api/v1/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/app/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/bitwise/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/compat/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/data/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/data/experimental/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/debugging/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/distributions/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/dtypes/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/errors/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/feature_column/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/gfile/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/graph_util/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/image/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/io/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/initializers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/activations/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/densenet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/inception_resnet_v2/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/inception_v3/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/mobilenet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/mobilenet_v2/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/nasnet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/resnet50/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/vgg16/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/vgg19/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/xception/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/backend/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/callbacks/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/constraints/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/boston_housing/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/cifar10/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/cifar100/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/fashion_mnist/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/imdb/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/mnist/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/reuters/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/estimator/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/initializers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/layers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/losses/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/metrics/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/models/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/optimizers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/image/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/sequence/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/text/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/regularizers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/wrappers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/wrappers/scikit_learn/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/layers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/linalg/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/logging/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/losses/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/manip/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/math/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/metrics/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/nn/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/nn/rnn_cell/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/profiler/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/python_io/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/quantization/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/random/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/resource_loader/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/strings/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/builder/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/loader/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/main_op/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/signature_constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/signature_def_utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/tag_constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sets/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sparse/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/spectral/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/summary/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sysconfig/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/test/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/train/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/train/queue_runner/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/user_ops/init.py') 2019-02-18 10:36:50.619656: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr /bin/bash: line 1: 27745 Aborted bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1 --root_init_template=tensorflow/api_template.init.py --apidir=bazel-out/k8-opt/genfiles/tensorflow_api/v1/ --apiname=tensorflow --apiversion=1 --package=tensorflow.python --output_package=tensorflow._api.v1 bazel-out/k8-opt/genfiles/tensorflow/_api/v1/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/app/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/bitwise/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/compat/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/data/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/data/experimental/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/debugging/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/distributions/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/dtypes/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/errors/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/feature_column/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/gfile/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/graph_util/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/image/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/io/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/initializers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/activations/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/densenet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/inception_resnet_v2/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/inception_v3/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/mobilenet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/mobilenet_v2/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/nasnet/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/resnet50/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/vgg16/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/vgg19/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/applications/xception/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/backend/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/callbacks/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/constraints/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/boston_housing/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/cifar10/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/cifar100/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/fashion_mnist/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/imdb/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/mnist/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/datasets/reuters/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/estimator/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/initializers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/layers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/losses/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/metrics/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/models/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/optimizers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/image/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/sequence/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/preprocessing/text/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/regularizers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/wrappers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/keras/wrappers/scikit_learn/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/layers/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/linalg/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/logging/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/losses/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/manip/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/math/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/metrics/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/nn/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/nn/rnn_cell/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/profiler/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/python_io/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/quantization/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/random/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/resource_loader/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/strings/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/builder/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/loader/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/main_op/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/signature_constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/signature_def_utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/tag_constants/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/saved_model/utils/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sets/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sparse/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/spectral/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/summary/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/sysconfig/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/test/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/train/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/train/queue_runner/init.py bazel-out/k8-opt/genfiles/tensorflow/_api/v1/user_ops/init.py Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 2.103s, Critical Path: 0.66s INFO: 0 processes. FAILED: Build did NOT complete successfully


note: Build for tensorflow 1.13 rc2 with the same build options and with Bazel-0.19.2 was successful
But if build  tensorflow 1.12 with bazel 0.19 or above it complains that cuda doesn't have a config file or something, it was related to the first warning above.
ymodak commented 5 years ago

@beew TF 1.13 rc2 comes with pre built binaries for cuda 10 where as TF 1.12 supports cuda 9. To use cuda 10 against TF 1.12, you have to build TF from sources yourself. Thanks!

beew commented 5 years ago

@ymodak

I am building from source myself. Please read OP and reopen the issue if there is no solution, thanks.