Created
February 2, 2021 06:55
-
-
Save loretoparisi/d8d7b29010d72bedb37cc61f4f48b1d2 to your computer and use it in GitHub Desktop.
executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loreto@ombromanto:~/Projects/docker-gpu-mnoavx$ docker run --gpus all -it -w /tensorflow -v $PWD:/mnt -e HOST_PERMS="$(id -u):$(id -g)" tensorflow/tensorflow:devel-gpu | |
________ _______________ | |
___ __/__________________________________ ____/__ /________ __ | |
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / / | |
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ / | |
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/ | |
WARNING: You are running this container as root, which can cause new files in | |
mounted volumes to be created as the root user on your host machine. | |
To avoid this, run the container by specifying your user's userid: | |
$ docker run -u $(id -u):$(id -g) args... | |
root@55166535ad1d:/tensorflow# ./configure | |
bash: ./configure: No such file or directory | |
root@55166535ad1d:/tensorflow# ls | |
root@55166535ad1d:/tensorflow# cd /tensorflow_src/ | |
root@55166535ad1d:/tensorflow_src# bazel clear | |
Extracting Bazel installation... | |
Starting local Bazel server and connecting to it... | |
Command 'clear' not found. Try 'bazel help'. | |
root@55166535ad1d:/tensorflow_src# bazel clean | |
INFO: Options provided by the client: | |
Inherited 'common' options: --isatty=1 --terminal_columns=160 | |
INFO: Reading rc options for 'clean' from /tensorflow_src/.bazelrc: | |
Inherited 'common' options: --experimental_repo_remote_exec | |
INFO: Reading rc options for 'clean' from /tensorflow_src/.bazelrc: | |
Inherited 'build' options: --apple_platform_type=macos --define framework_shared_object=true --java_toolchain=//third_party/toolchains/java:tf_java_toolchain --host_java_toolchain=//third_party/toolchains/java:tf_java_toolchain --define=tensorflow_enable_mlir_generated_gpu_kernels=0 --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --noincompatible_prohibit_aapt1 --enable_platform_specific_config --config=short_logs --config=v2 | |
INFO: Found applicable config definition build:short_logs in file /tensorflow_src/.bazelrc: --output_filter=DONT_MATCH_ANYTHING | |
INFO: Found applicable config definition build:v2 in file /tensorflow_src/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 | |
INFO: Found applicable config definition build:linux in file /tensorflow_src/.bazelrc: --copt=-w --host_copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels | |
INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow_src/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS | |
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes. | |
root@55166535ad1d:/tensorflow_src# ./configure | |
You have bazel 3.7.2 installed. | |
Please specify the location of python. [Default is /usr/bin/python3]: | |
Found possible Python library paths: | |
/usr/lib/python3/dist-packages | |
/usr/local/lib/python3.6/dist-packages | |
Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages] | |
Do you wish to build TensorFlow with ROCm support? [y/N]: N | |
No ROCm support will be enabled for TensorFlow. | |
Found CUDA 11.0 in: | |
/usr/local/cuda-11.0/targets/x86_64-linux/lib | |
/usr/local/cuda-11.0/targets/x86_64-linux/include | |
Found cuDNN 8 in: | |
/usr/lib/x86_64-linux-gnu | |
/usr/include | |
Found TensorRT 7 in: | |
/usr/lib/x86_64-linux-gnu | |
/usr/include/x86_64-linux-gnu | |
Please specify a list of comma-separated CUDA compute capabilities you want to build with. | |
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as "x.y" or "compute_xy" to include both virtual and binary GPU code, or as "sm_xy" to only include the binary code. | |
Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]: 6.1 | |
Do you want to use clang as CUDA compiler? [y/N]: N | |
nvcc will be used as CUDA compiler. | |
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: | |
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]: core2 | |
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: N | |
Not configuring the WORKSPACE for Android builds. | |
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details. | |
--config=mkl # Build with MKL support. | |
--config=mkl_aarch64 # Build with oneDNN support for Aarch64. | |
--config=monolithic # Config for mostly static monolithic build. | |
--config=numa # Build with NUMA support. | |
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects. | |
--config=v2 # Build TensorFlow 2.x instead of 1.x. | |
Preconfigured Bazel build configs to DISABLE default on features: | |
--config=noaws # Disable AWS S3 filesystem support. | |
--config=nogcp # Disable GCP support. | |
--config=nohdfs # Disable HDFS support. | |
--config=nonccl # Disable NVIDIA NCCL support. | |
Configuration finished | |
root@55166535ad1d:/tensorflow_src# bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
WARNING: The following configs were expanded more than once: [cuda, using_cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior. | |
INFO: Options provided by the client: | |
Inherited 'common' options: --isatty=1 --terminal_columns=160 | |
INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc: | |
Inherited 'common' options: --experimental_repo_remote_exec | |
INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc: | |
'build' options: --apple_platform_type=macos --define framework_shared_object=true --java_toolchain=//third_party/toolchains/java:tf_java_toolchain --host_java_toolchain=//third_party/toolchains/java:tf_java_toolchain --define=tensorflow_enable_mlir_generated_gpu_kernels=0 --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --noincompatible_prohibit_aapt1 --enable_platform_specific_config --config=short_logs --config=v2 | |
INFO: Reading rc options for 'build' from /tensorflow_src/.tf_configure.bazelrc: | |
'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --config=xla --config=tensorrt --action_env TF_CUDA_VERSION=11.0 --action_env TF_CUDNN_VERSION=8 --action_env CUDA_TOOLKIT_PATH=/usr/local/cuda-11.0 --action_env TF_CUDA_COMPUTE_CAPABILITIES=6.1 --action_env LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/include/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs --action_env GCC_HOST_COMPILER_PATH=/usr/bin/x86_64-linux-gnu-gcc-7 --config=cuda --action_env TF_CONFIGURE_IOS=0 | |
INFO: Found applicable config definition build:short_logs in file /tensorflow_src/.bazelrc: --output_filter=DONT_MATCH_ANYTHING | |
INFO: Found applicable config definition build:v2 in file /tensorflow_src/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 | |
INFO: Found applicable config definition build:xla in file /tensorflow_src/.bazelrc: --define=with_xla_support=true | |
INFO: Found applicable config definition build:tensorrt in file /tensorflow_src/.bazelrc: --action_env TF_NEED_TENSORRT=1 | |
INFO: Found applicable config definition build:cuda in file /tensorflow_src/.bazelrc: --config=using_cuda --define=using_cuda_nvcc=true | |
INFO: Found applicable config definition build:using_cuda in file /tensorflow_src/.bazelrc: --define=using_cuda=true --action_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --define=tensorflow_enable_mlir_generated_gpu_kernels=1 | |
INFO: Found applicable config definition build:opt in file /tensorflow_src/.tf_configure.bazelrc: --copt=core2 --host_copt=core2 --define with_default_optimizations=true | |
INFO: Found applicable config definition build:cuda in file /tensorflow_src/.bazelrc: --config=using_cuda --define=using_cuda_nvcc=true | |
INFO: Found applicable config definition build:using_cuda in file /tensorflow_src/.bazelrc: --define=using_cuda=true --action_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --define=tensorflow_enable_mlir_generated_gpu_kernels=1 | |
INFO: Found applicable config definition build:linux in file /tensorflow_src/.bazelrc: --copt=-w --host_copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels | |
INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow_src/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS | |
DEBUG: /root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:118:10: | |
Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default | |
WARNING: Download from http://mirror.tensorflow.org/files.pythonhosted.org/packages/12/59/eaa15ab9710a20e22225efd042cd2d6a0b559a0656d5baba9641a2a4a921/gast-0.4.0.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found | |
WARNING: Download from https://mirror.bazel.build/github.com/aws/aws-sdk-cpp/archive/1.7.336.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found | |
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1556410077 -0400" | |
DEBUG: Repository io_bazel_rules_docker instantiated at: | |
/tensorflow_src/WORKSPACE:23:10: in <toplevel> | |
/tensorflow_src/tensorflow/workspace0.bzl:65:34: in workspace | |
/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/external/bazel_toolchains/repositories/repositories.bzl:37:23: in repositories | |
Repository rule git_repository defined at: | |
/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel> | |
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/nvidia/nccl/archive/v2.8.3-1.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found | |
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/1c762a81d20f498a93c38c0f0b10ad7c18650422.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found | |
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (424 packages loaded, 34792 targets configured). | |
INFO: Found 1 target... | |
ERROR: /root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/external/zlib/BUILD.bazel:5:11: C++ compilation of rule '@zlib//:zlib' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/host/bin/external/zlib/_objs/zlib/gzwrite.d ... (remaining 35 argument(s) skipped) | |
x86_64-linux-gnu-gcc-7: error: core2: No such file or directory | |
Target //tensorflow/tools/pip_package:build_pip_package failed to build | |
Use --verbose_failures to see the command lines of failed build steps. | |
INFO: Elapsed time: 92.405s, Critical Path: 0.19s | |
INFO: 14 processes: 14 internal. | |
FAILED: Build did NOT complete successfully |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment