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

Undefined symbol on tensorflow 1.8 #22

Open
JiteshPshah opened this issue May 4, 2018 · 5 comments
Open

Undefined symbol on tensorflow 1.8 #22

JiteshPshah opened this issue May 4, 2018 · 5 comments

Comments

@JiteshPshah
Copy link

I am getting an error on roi_pooling.so: undefined symbol. on tensorflow 1.8
Which version is best suitable for roi pooling ?

@patzm
Copy link

patzm commented Jul 16, 2018

is it by coincidence the following?

File "<input>", line 1, in <module>
    from roi_pooling.roi_pooling_ops import roi_pooling
  File "/usr/local/lib/python2.7/dist-packages/roi_pooling/roi_pooling_ops.py", line 8, in <module>
    roi_pooling_module = tf.load_op_library(lib_path)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
NotFoundError: /usr/local/lib/python2.7/dist-packages/roi_pooling/roi_pooling.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

@offbye
Copy link

offbye commented Aug 8, 2018

same error, any ideas?

lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /data5/zxt/downloads/roi-pooling-master/roi_pooling/roi_pooling.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

@JiteshPshah
Copy link
Author

I solved this error by following this link:
http://windstop.tistory.com/155

@trikim
Copy link

trikim commented Jan 18, 2019

@JiteshPshah Thanks!
By changing the './roi_pooling/Makefile' file according to http://windstop.tistory.com/155, it works.

TF_INC = $(shell python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
TF_LIB = $(shell python -c 'import tensorflow; print(tensorflow.sysconfig.get_lib())')
CUDA_LIB = /usr/local/cuda-8.0/targets/x86_64-linux/lib/

all: clean build test

build: roi_pooling.so

roi_pooling.cu.o: roi_pooling.cu.cc
    nvcc -std=c++11 -c -o $@ $? -I $(TF_INC) -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -D _GLIBCXX_USE_CXX11_ABI=0 -L$(TF_LIB) -ltensorflow_framework

roi_pooling.so: roi_pooling.cc roi_pooling.cu.o
    g++ -std=c++11 -shared -o $@ $? -I $(TF_INC) -fPIC -lcudart -L$(CUDA_LIB) -D _GLIBCXX_USE_CXX11_ABI=0 -L$(TF_LIB) -ltensorflow_framework

@djongpo
Copy link

djongpo commented Jun 30, 2019

@JiteshPshah @trikim I also faced a similar issue . Can you help me out? I can't understand from the previous comments what needs to be done.

The link to the issue is here #28 (comment)

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

5 participants