Installation 从源代码构建tensorflow时出错-是否要求gcc>;v4.8?

Installation 从源代码构建tensorflow时出错-是否要求gcc>;v4.8?,installation,tensorflow,Installation,Tensorflow,从源生成时收到以下错误。我最好的猜测可能是我的gcc版本是4.8(我让TF安装在另一个装有gcc 5.4的盒子上) 其他值得注意的是:CUDNN library V6安装在LD_library_路径上的一个位置(我在另一台机器上工作时没有问题)。CUDA 8.0库。Tensorflow版本1.1.0-rc1 ERROR: /home/dparks/opt/tensorflow/tensorflow/stream_executor/BUILD:39:1: C++ compilation of ru

从源生成时收到以下错误。我最好的猜测可能是我的gcc版本是4.8(我让TF安装在另一个装有gcc 5.4的盒子上)

其他值得注意的是:CUDNN library V6安装在LD_library_路径上的一个位置(我在另一台机器上工作时没有问题)。CUDA 8.0库。Tensorflow版本1.1.0-rc1

ERROR: /home/dparks/opt/tensorflow/tensorflow/stream_executor/BUILD:39:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command 
  (cd /home/dparks/.cache/bazel/_bazel_dparks/3d9d26948e3f70203789e48515e761a6/execroot/tensorflow && \
  exec env - \
  external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-march=native' '-std=c++11' '-march=native' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.d '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DTENSORFLOW_USE_JEMALLOC -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/jemalloc -iquote bazel-out/local_linux-opt/genfiles/external/jemalloc -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/protobuf -iquote bazel-out/local_linux-opt/genfiles/external/protobuf -iquote external/eigen_archive -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/local_linux-opt/genfiles/external/local_config_sycl -iquote external/gif_archive -iquote bazel-out/local_linux-opt/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/local_linux-opt/genfiles/external/jpeg -iquote external/com_googlesource_code_re2 -iquote bazel-out/local_linux-opt/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/local_linux-opt/genfiles/external/farmhash_archive -iquote external/highwayhash -iquote bazel-out/local_linux-opt/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/local_linux-opt/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/local_linux-opt/genfiles/external/zlib_archive -iquote external/local_config_cuda -iquote bazel-out/local_linux-opt/genfiles/external/local_config_cuda -isystem external/jemalloc/include -isystem bazel-out/local_linux-opt/genfiles/external/jemalloc/include -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/external/protobuf/src -isystem external/eigen_archive -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive -isystem external/gif_archive/lib -isystem bazel-out/local_linux-opt/genfiles/external/gif_archive/lib -isystem external/farmhash_archive/src -isystem bazel-out/local_linux-opt/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/local_linux-opt/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/local_linux-opt/genfiles/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/local_linux-opt/genfiles/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/include -isystem bazel-out/local_linux-opt/genfiles/external/local_config_cuda/cuda/include -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c tensorflow/stream_executor/cuda/cuda_blas.cc -o bazel-out/local_linux-opt/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
tensorflow/stream_executor/cuda/cuda_blas.cc: In member function 'virtual bool perftools::gputools::cuda::CUDABlas::GetBlasGemmAlgorithms(std::vector<long long int>*)':
tensorflow/stream_executor/cuda/cuda_blas.cc:1916:9: error: 'CUBLAS_GEMM_ALGO5' was not declared in this scope
         CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
         ^
tensorflow/stream_executor/cuda/cuda_blas.cc:1916:28: error: 'CUBLAS_GEMM_ALGO6' was not declared in this scope
         CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
                            ^
tensorflow/stream_executor/cuda/cuda_blas.cc:1916:47: error: 'CUBLAS_GEMM_ALGO7' was not declared in this scope
         CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
                                               ^
tensorflow/stream_executor/cuda/cuda_blas.cc:1916:64: error: unable to deduce 'std::initializer_list<_Tp>&&' from '{CUBLAS_GEMM_DFALT, CUBLAS_GEMM_ALGO0, CUBLAS_GEMM_ALGO1, CUBLAS_GEMM_ALGO2, CUBLAS_GEMM_ALGO3, CUBLAS_GEMM_ALGO4, <expression error>, <expression error>, <expression error>}'
         CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
                                                                ^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasOperation_t perftools::gputools::cuda::{anonymous}::CUDABlasTranspose(perftools::gputools::blas::Transpose)':
tensorflow/stream_executor/cuda/cuda_blas.cc:410:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasFillMode_t perftools::gputools::cuda::{anonymous}::CUDABlasUpperLower(perftools::gputools::blas::UpperLower)':
tensorflow/stream_executor/cuda/cuda_blas.cc:421:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasDiagType_t perftools::gputools::cuda::{anonymous}::CUDABlasDiagonal(perftools::gputools::blas::Diagonal)':
tensorflow/stream_executor/cuda/cuda_blas.cc:432:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cudaDataType_t perftools::gputools::cuda::{anonymous}::CUDAComputationType(perftools::gputools::blas::ComputationType)':
tensorflow/stream_executor/cuda/cuda_blas.cc:519:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasSideMode_t perftools::gputools::cuda::{anonymous}::CUDABlasSide(perftools::gputools::blas::Side)':
tensorflow/stream_executor/cuda/cuda_blas.cc:443:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 3.900s, Critical Path: 3.27s
<代码>错误:/home /dPrace/Ott/TysFrase/TysFrase/SurryExtReuTor /Buff:39:C++编译规则“//TunSoFrase/SturialExtor:CUAAdStand”失败:CytoStoLoWrAPPrEDRIVRIVIO.IXNOTH-GCC失败:执行错误命令 (cd/home/dparks/.cache/bazel/_-bazel_-dparks/3d9d26948e3f70203789e4851e761a6/execroot/tensorflow&&\ 行政环境\ 外部/本地配置cuda/crosstool/clang/bin/crosstool包装器驱动程序不是gcc-U\U-FORTIFY\U源-D\U-FORTIFY\U源=1'-fstack保护器-fPIE-Wall-Wunused但设置参数-Wno自由非堆对象-fno省略帧指针-g0-O2-DNDEBUG-函数节-fdata节-march=native'-std=c++=11'-march=native'-MD-MF bazel out/local_linux-opt/bin/tensorflow/stream_executor/_objs/cuda_平台/tensorflow/stream_executor/cuda/cuda/cuda_blas.pic.d'-frandom seed=bazel out/local_linux-opt/bin/tensorflow/stream_executor/_objs/cuda_平台/tensorflow/stream_执行器/cuda/cuda/cuda_blas.pic.o'-fPIC-DEIGEN-MPL2\mallu-DTENSORFLOW\u使用jeoc-ikote.-iquete/local文件-iNote external/jemalloc-iNote bazel out/local_linux-opt/genfiles/external/jemalloc-iNote external/bazel_tools-iNote bazel out/local_linux-opt/genfiles/external/protobuf-iNote external/enigen_archive-iNote bazel out/local_linux-opt/genfiles/genfiles-external/eigen_archive-iNote external/local_config_sycl-iNote bazel out/local_linux-opt/genfiles/external/local_config_sycl-iNote external/gif_archive-iNote bazel out/local_linux-opt/genfiles/external/jpeg-iNote external/com_谷歌源代码re2-iNotebazel out/local_linux-opt/genfiles/external/com_googlesource_code_re2-iNote external/farmhash_archive-iNote bazel out/local_linux-opt/genfiles/external/farmhash_archive-iNote bazel out/local_linux-opt/genfiles/external/highwayhash-iNote external/png\u archive-iNote bazel out/local_linux-opt/genfiles/genfiles/external/png_归档-iNote external/zlib_归档-iNote bazel out/local_linux-opt/genfiles/external/zlib_归档-iNote external/local_config_cuda-iNote bazel out/local_linux-opt/genfiles/external/jemalloc/include-isystem bazel out/local_linux-opt/genfiles/external/jemalloc/include-isystem-external/bazel工具s/cpp/gcc3-isystem external/protobuf/src-isystem bazel-out/local_linux-opt/genfiles/external/protobuf/src-isystem external/eigen_archive-isystem bazel-out/local_linux-opt/genfiles/external/gif_archive/lib-isystem-external/farmhash_archive/src-isystem bazel out/local_linux-opt/genfiles/external/farmhash_archive/src-isystem external/png_archive-isystem bazel out/local_linux-opt/genfiles/external/farmhash_archive-isystem external/local_config_cuda/cuda-isystem bazel out/zlib_linux-opt out/genfiles/external/local\u config\u cuda/cuda-isystem external/local\u config\u cuda/cuda/include-isystem bazel out/local\u linux-opt/genfiles/external/local\u config\u cuda/cuda/include-无规范前缀-Wno内置宏重新定义“-D\u日期”=“redacted”'-D\u时间戳'-fno规范系统头文件-c tensorflow/stream_executor/cuda/cuda_blas.cc-o bazel out/local_linux-opt/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.o):com.google.devtools.build.lib.shell.BadExitStatusException:进程退出,状态为1。 tensorflow/stream_executor/cuda/cuda_blas.cc:在成员函数“virtual bool perftools::gputools::cuda::CUDABlas::getblasgemalgorithms(std::vector*)”中: tensorflow/stream_executor/cuda/cuda_blas.cc:1916:9:错误:“CUBLAS_GEMM_ALGO5”未在此范围内声明 CUBLAS_GEMM_ALGO5、CUBLAS_GEMM_ALGO6、CUBLAS_GEMM_ALGO7}){ ^ tensorflow/stream_executor/cuda/cuda_blas.cc:1916:28:错误:“CUBLAS_GEMM_ALGO6”未在此范围内声明 CUBLAS_GEMM_ALGO5、CUBLAS_GEMM_ALGO6、CUBLAS_GEMM_ALGO7}){ ^ tensorflow/stream_executor/cuda/cuda_blas.cc:1916:47:错误:“CUBLAS_GEMM_ALGO7”未在此范围内声明 CUBLAS_GEMM_ALGO5、CUBLAS_GEMM_ALGO6、CUBLAS_GEMM_ALGO7}){ ^ tensorflow/stream_executor/cuda/cuda_blas.cc:1916:64:错误:无法从{CUBLAS_GEMM_DFALT、CUBLAS_GEMM_ALGO0、CUBLAS_GEMM_ALGO1、CUBLAS_GEMM_ALGO2、CUBLAS_GEMM_ALGO3、CUBLAS_GEMM_ALGO4、}中推断出“std::initializerĀinitializer_list&” CUBLAS_GEMM_ALGO5、CUBLAS_GEMM_ALGO6、CUBLAS_GEMM_ALGO7}){ ^ tensorflow/stream_executor/cuda/cuda_blas.cc:在函数“cublasOperation_t perftools::gputools::cuda::{anonymous}::cudablasttranspose(perftools::gputools::blas::Transpose)”中: tensorflow/stream_executor/cuda/cuda_blas.cc:410:1:警告:控件到达非无效函数的末尾[-Wreturn类型] } ^ tensorflow/stream_executor/cuda/cuda_blas.cc:在函数“cublasFillMode_perftools::gputools::cuda::{anonymous}::CUDABlasUpperLower(perftools::gputools::blas::UpperLower)”中: tensorflow/stream_executor/cuda/cuda_blas.cc:421:1:警告:控件到达非无效函数的末尾[-Wreturn类型] } ^ tensorflow/stream_executor/cuda/cuda_blas.cc:在函数“cublasDiagType”中_