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

_resampler.so: undefined symbol #25

Closed
animesh opened this issue Apr 21, 2017 · 11 comments
Closed

_resampler.so: undefined symbol #25

animesh opened this issue Apr 21, 2017 · 11 comments

Comments

@animesh
Copy link

animesh commented Apr 21, 2017

faced this error while executing the example code

import sonnet as snt
import tensorflow as tf
snt.resampler(tf.constant([0.]), tf.constant([0.]))

recompiling the tensorflow to 1.1.0-rc2 and replacing the downloaded sonnet/tensorflow with this one solved the problem :)

@thesilencelies
Copy link

I checked out the 1.1 branch of tensorflow in the one in the sonnet tree, compiled tensorflow from that (which works), then rebuilt sonnet. However I still get the above error for _ZN10tensorflow8internal21checkOpMessageBuilder9NewString. I had the warning mentioned in #16 during build.
I guess I did something wrong, but I'm a little unsure how to implement the solution mentioned above...

@bgavran
Copy link

bgavran commented Apr 30, 2017

I have the same problem as @thesilencelies. I did a git pull in sonnet/tensorflow after which I followed the sonnet installation instructions, but I still get the _resampler.so: undefined symbol error

@PFCM
Copy link

PFCM commented May 1, 2017

I'm also getting this as per @thesilencelies. Tried tensorflow 1.1.0, then 1.1.0-rc2 when that didn't work. In both cases ldd on the produced _resampler.so shows:

        linux-vdso.so.1 =>  (0x00007ffe9c52b000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f87868d3000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f87866b5000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f878632d000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8786116000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8785d4f000)
        /lib64/ld-linux-x86-64.so.2 (0x000055b1b0e70000)

ie. it doesn't look as if the op library is being linked to anything tensorflow related? Using bazel 0.4.5 on ubuntu 17.10 if it helps.

Forget about this.

Fixed it by building Sonnet with

bazel build --config=opt --copt="-D_GLIBCXX_USE_CXX11_ABI=0" :install

I believe the issue was that Tensorflow was being built with GCC 4.x while Sonnet was using the system default which is >= 5.

@animesh
Copy link
Author

animesh commented May 2, 2017 via email

@Jazyy
Copy link

Jazyy commented May 4, 2017

@animesh I faced the same error and followd your ways , but I still get the _resampler.so: undefined symbol error .I guess that there might some steps were wrong in this process.

@animesh
Copy link
Author

animesh commented May 4, 2017

yeah i can imagine, there are many gotchas in setting this beast... for starter, what is your environment like? things like operating system, java, python, tensorflow and bazel versions? are you able to run everything else except sonnet?

@llbuaa2015
Copy link

use tensorflow 1.1.0-rc2 replacing the sonnet/tensorflow if 1.1.0-rc2 is used and
bazel build --config=opt --genrule_strategy=standalone --spawn_strategy=standalone :install
this works for me !

@thesilencelies
Copy link

PFCM's solution worked for me.

@urosjarc
Copy link

@PFCM I f****** love you!

@hyperji
Copy link

hyperji commented Jul 11, 2017

@PFCM Cool! I have installed sonnet almost 10 times, all failed, untill now. thank you.

@malcolmreynolds
Copy link
Collaborator

Anyone still having trouble - please see #56 - there are preliminary Wheel files available on PyPI. Please try to install and let us know how you get on.

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

No branches or pull requests

10 participants