-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation terminated with error on eigen #113
Comments
I got a notification for this issue- have you resolved it yourself? |
Yes. I find I download the wrong workspace.bzl file from tensorflow/tensorflow, which has a different eigen downloading url. Thus when running the core file, it cannot find the directory. Thank you! |
can you tell me which workspace.bzl file to choose for tensorflow-1.3 and bazel-0.5.4? native.new_http_archive(
e9",
build_file = str(Label("//third_party:eigen.BUILD")), and I am getting following error for this ERROR: /home/tensorflow/tensorflow/core/kernels/BUILD:2142:1: C++ compilation of rule '//tensorflow/core/kernels:self_adjoint_eig_v2_op' failed (Exit 1): gcc failed: error executing command |
I install the tensorflow serving via docker on Ubuntu 16.04 LTS. Bazel 0.2.0
When running the command
bazel test tensorflow_serving/...
, an error occurred:ERROR: /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/tensorflow/core/BUILD:801:1: C++ compilation of rule '@org_tensorflow//tensorflow/core:lib_internal' failed: gcc failed: error executing command (cd /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/serving && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -iquote external/org_tensorflow -iquote bazel-out/host/genfiles/external/org_tensorflow -iquote external/protobuf -iquote bazel-out/host/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/jpeg_archive -iquote bazel-out/host/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/re2 -iquote bazel-out/host/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -isystem external/protobuf/src -isystem bazel-out/host/genfiles/external/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem bazel-out/host/genfiles/external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/host/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/host/genfiles/external/png_archive/libpng-1.2.53 -isystem external/highwayhash -isystem bazel-out/host/genfiles/external/highwayhash -isystem external/re2 -isystem bazel-out/host/genfiles/external/re2 -isystem external/org_tensorflow/third_party/eigen3 -isystem bazel-out/host/genfiles/external/org_tensorflow/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-5f86b31739cd -isystem bazel-out/host/genfiles/external/eigen_archive/eigen-eigen-5f86b31739cd -isystem external/zlib_archive/zlib-1.2.8 -isystem bazel-out/host/genfiles/external/zlib_archive/zlib-1.2.8 -fno-exceptions -DEIGEN_AVOID_STL_ARRAY -pthread -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/host/bin/external/org_tensorflow/tensorflow/core/_objs/lib_internal/external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.o' -MD -MF bazel-out/host/bin/external/org_tensorflow/tensorflow/core/_objs/lib_internal/external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.d -c external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.cc -o bazel-out/host/bin/external/org_tensorflow/tensorflow/core/_objs/lib_internal/external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: gcc failed: error executing command (cd /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/serving && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -iquote external/org_tensorflow -iquote bazel-out/host/genfiles/external/org_tensorflow -iquote external/protobuf -iquote bazel-out/host/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/jpeg_archive -iquote bazel-out/host/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/re2 -iquote bazel-out/host/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -isystem external/protobuf/src -isystem bazel-out/host/genfiles/external/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem bazel-out/host/genfiles/external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/host/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/host/genfiles/external/png_archive/libpng-1.2.53 -isystem external/highwayhash -isystem bazel-out/host/genfiles/external/highwayhash -isystem external/re2 -isystem bazel-out/host/genfiles/external/re2 -isystem external/org_tensorflow/third_party/eigen3 -isystem bazel-out/host/genfiles/external/org_tensorflow/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-5f86b31739cd -isystem bazel-out/host/genfiles/external/eigen_archive/eigen-eigen-5f86b31739cd -isystem external/zlib_archive/zlib-1.2.8 -isystem bazel-out/host/genfiles/external/zlib_archive/zlib-1.2.8 -fno-exceptions -DEIGEN_AVOID_STL_ARRAY -pthread -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/host/bin/external/org_tensorflow/tensorflow/core/_objs/lib_internal/external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.o' -MD -MF bazel-out/host/bin/external/org_tensorflow/tensorflow/core/_objs/lib_internal/external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.d -c external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.cc -o bazel-out/host/bin/external/org_tensorflow/tensorflow/core/_objs/lib_internal/external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. In file included from external/org_tensorflow/tensorflow/core/lib/random/random_distributions.h:23:0, from external/org_tensorflow/tensorflow/core/lib/random/simple_philox.h:24, from external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.h:38, from external/org_tensorflow/tensorflow/core/lib/random/distribution_sampler.cc:16: external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1:67: fatal error: eigen-eigen-5f86b31739cd/unsupported/Eigen/CXX11/Tensor: No such file or directory #include "eigen-eigen-5f86b31739cd/unsupported/Eigen/CXX11/Tensor" ^ compilation terminated.
Based on other similar issues: Compile Issue about Eigen #2451 Tensorflow on ARMv7 #1243 I enlarged my swap to 4G. Now I have 16G RAM and 4G Swap. However, another similar error occurred.
ERROR: /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/tensorflow/core/util/ctc/BUILD:78:1: C++ compilation of rule '@org_tensorflow//tensorflow/core/util/ctc:ctc_loss_calculator_lib' failed: gcc failed: error executing command (cd /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/serving && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -iquote external/org_tensorflow -iquote bazel-out/host/genfiles/external/org_tensorflow -iquote external/protobuf -iquote bazel-out/host/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/jpeg_archive -iquote bazel-out/host/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/re2 -iquote bazel-out/host/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -isystem external/protobuf/src -isystem bazel-out/host/genfiles/external/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem bazel-out/host/genfiles/external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/host/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/host/genfiles/external/png_archive/libpng-1.2.53 -isystem external/highwayhash -isystem bazel-out/host/genfiles/external/highwayhash -isystem external/re2 -isystem bazel-out/host/genfiles/external/re2 -isystem external/org_tensorflow/third_party/eigen3 -isystem bazel-out/host/genfiles/external/org_tensorflow/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-5f86b31739cd -isystem bazel-out/host/genfiles/external/eigen_archive/eigen-eigen-5f86b31739cd -isystem external/zlib_archive/zlib-1.2.8 -isystem bazel-out/host/genfiles/external/zlib_archive/zlib-1.2.8 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/ctc/_objs/ctc_loss_calculator_lib/external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.pic.o' -MD -MF bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/ctc/_objs/ctc_loss_calculator_lib/external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.pic.d -fPIC -c external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.cc -o bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/ctc/_objs/ctc_loss_calculator_lib/external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: gcc failed: error executing command (cd /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/serving && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -iquote external/org_tensorflow -iquote bazel-out/host/genfiles/external/org_tensorflow -iquote external/protobuf -iquote bazel-out/host/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/jpeg_archive -iquote bazel-out/host/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/re2 -iquote bazel-out/host/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -isystem external/protobuf/src -isystem bazel-out/host/genfiles/external/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem bazel-out/host/genfiles/external/farmhash_archive/farmhash-34c13ddfab0e35422f4c3979f360635a8c050260 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/host/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/host/genfiles/external/png_archive/libpng-1.2.53 -isystem external/highwayhash -isystem bazel-out/host/genfiles/external/highwayhash -isystem external/re2 -isystem bazel-out/host/genfiles/external/re2 -isystem external/org_tensorflow/third_party/eigen3 -isystem bazel-out/host/genfiles/external/org_tensorflow/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-5f86b31739cd -isystem bazel-out/host/genfiles/external/eigen_archive/eigen-eigen-5f86b31739cd -isystem external/zlib_archive/zlib-1.2.8 -isystem bazel-out/host/genfiles/external/zlib_archive/zlib-1.2.8 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/ctc/_objs/ctc_loss_calculator_lib/external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.pic.o' -MD -MF bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/ctc/_objs/ctc_loss_calculator_lib/external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.pic.d -fPIC -c external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.cc -o bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/ctc/_objs/ctc_loss_calculator_lib/external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. In file included from external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.h:21:0, from external/org_tensorflow/tensorflow/core/util/ctc/ctc_loss_calculator.cc:16: external/org_tensorflow/third_party/eigen3/Eigen/Core:1:47: fatal error: eigen-eigen-5f86b31739cd/Eigen/Core: No such file or directory #include "eigen-eigen-5f86b31739cd/Eigen/Core" ^ compilation terminated.
Is it also a out-of-memory problem?
The text was updated successfully, but these errors were encountered: