question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_resampler.so: undefined symbol

See original GitHub issue

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 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11

github_iconTop GitHub Comments

14reactions
PFCMcommented, May 2, 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.

1reaction
urosjarccommented, May 13, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when running C++ libraries in iOS Xcode Project
Undefined symbols for architecture x86_64: "_mpg123_scan", referenced from: MP3InputStream::open(std::__1::basic_string<char, ...
Read more >
Build fails on debian stretch: run/libspeexresampler.a(resample.c.o ...
Build fails on debian stretch: run/libspeexresampler.a(resample.c.o): undefined reference to symbol 'floor@@GLIBC_2.2.5'. This issue was migrated from bug ...
Read more >
Product "Undefined symbol" in Band Maths Expression - s2tbx ...
Hello I want to run an expression in Band Maths however I receive an error for one of the bands "Undefined symbol '$10.B10'...
Read more >
Tensorflow-io issue - General Discussion
Hi, am running YAMNet for environmental sound classification, and I am getting an error today that I don't get two days ago, ...
Read more >
Using rnn_vad in my project - Google Groups
modules/audio_processing/agc2/rnn_vad/rnn.cc:106: undefined reference to `webrtc::PushSincResampler::Resample(float const*, unsigned long, float*, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found