Skip to content
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

solve the building issues "Undefined reference to symbol 'ceil@@GLIBC_2.2.5'" #3097

Merged
merged 2 commits into from Jun 30, 2016
Merged

solve the building issues "Undefined reference to symbol 'ceil@@GLIBC_2.2.5'" #3097

merged 2 commits into from Jun 30, 2016

Conversation

fayeshine
Copy link
Contributor

This is to solve the bug Undefined reference to symbol 'ceil@@GLIBC_2.2.5'
#3070,
the solution is inspired from bazelbuild/bazel#934 and #1171

This is to solve #3070,
the solution is inspired from bazelbuild/bazel#934 and #1171
@tensorflow-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@vrv
Copy link

vrv commented Jun 29, 2016

@tensorflow-jenkins test this please

@vrv
Copy link

vrv commented Jun 29, 2016

Sadly doesn't work on mac, let me find an example of how to fix this.

@vrv
Copy link

vrv commented Jun 29, 2016

@SarthakDubey
Copy link

I am facing the same error. Is there a fix/patch for it yet?

@vrv
Copy link

vrv commented Jun 29, 2016

This is the fix/patch, it just needs one more modification before it can go in.

@SarthakDubey
Copy link

So the patch worked for me but gives an error:

virtual memory exhausted: Cannot allocate memory

Full error O/P:
ERROR: /home/sarthak/tensorflow/tensorflow/core/kernels/BUILD:331:1: C++ compilation of rule '//tensorflow/core/kernels:tile_ops' failed: gcc failed: error executing command (cd /home/sarthak/.cache/bazel/_bazel_sarthak/886c0f367c70255a45d3226b973459e4/tensorflow && \ exec env - \ PATH=/home/sarthak/.linuxbrew/bin:/home/sarthak/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/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' -DOPENSSL_NO_ASM -iquote . -iquote bazel-out/host/genfiles -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 -iquote external/boringssl_git -iquote bazel-out/host/genfiles/external/boringssl_git -iquote external/jsoncpp_git -iquote bazel-out/host/genfiles/external/jsoncpp_git -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 third_party/eigen3 -isystem bazel-out/host/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-802d984ade26 -isystem bazel-out/host/genfiles/external/eigen_archive/eigen-eigen-802d984ade26 -isystem external/zlib_archive/zlib-1.2.8 -isystem bazel-out/host/genfiles/external/zlib_archive/zlib-1.2.8 -isystem external/boringssl_git/include -isystem bazel-out/host/genfiles/external/boringssl_git/include -isystem external/jsoncpp_git/include -isystem bazel-out/host/genfiles/external/jsoncpp_git/include -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/tensorflow/core/kernels/_objs/tile_ops/tensorflow/core/kernels/tile_ops.pic.o' -MD -MF bazel-out/host/bin/tensorflow/core/kernels/_objs/tile_ops/tensorflow/core/kernels/tile_ops.pic.d -fPIC -c tensorflow/core/kernels/tile_ops.cc -o bazel-out/host/bin/tensorflow/core/kernels/_objs/tile_ops/tensorflow/core/kernels/tile_ops.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. virtual memory exhausted: Cannot allocate memory

@fayeshine
Copy link
Contributor Author

@vrv , I modified as the example does

@vrv
Copy link

vrv commented Jun 30, 2016

@tensorflow-jenkins test this please

@vrv vrv merged commit 09d2363 into tensorflow:master Jun 30, 2016
@sammoes
Copy link

sammoes commented Aug 4, 2016

Fixes it for Ubuntu 16.04 too.

@rasmi
Copy link
Member

rasmi commented Sep 5, 2016

@vrv I'm still running into this issue on RHEL 6.7 using gcc 4.7.2. This patch is included in my source, since I just puled recently. Any suggestions?

EDIT:
This did the trick for me. Modify LINK_OPTS in bazel-tensorflow/external/protobuf/BUILD by adding the -lm flag to //conditions:default:

LINK_OPTS = select({
    ":android": [],
    "//conditions:default": ["-lpthread", "-lm"],
})

@sammoes
Copy link

sammoes commented Sep 6, 2016

Just fix it manually
The patched file

Op 5 sep. 2016 om 23:52 heeft Rasmi <notifications@github.commailto:notifications@github.com> het volgende geschreven:

@vrvhttps://github.com/vrv I'm still running into this issue on RHEL 6.7 using gcc 4.7.2. This patch is included in my source, since I just puled recently. Any suggestions?

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//pull/3097#issuecomment-244814825, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFjpIQ11LtJMNlUHXJQkYOJlPBg2MAJ3ks5qnI8WgaJpZM4JAxlt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants