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

setup_all check gcc version #29

Closed
Naman-ntc opened this issue Dec 18, 2019 · 5 comments
Closed

setup_all check gcc version #29

Naman-ntc opened this issue Dec 18, 2019 · 5 comments

Comments

@Naman-ntc
Copy link

Hi,
Thanks for releasing the code. While running predict.py I was getting

tensorflow.python.framework.errors_impl.NotFoundError: ./coref_kernels.so: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs

I searched and found this link. It would be nice to either check the GCC version or keep this as a warning in the script to help anyone else stuck here!!

@jkkummerfeld
Copy link
Contributor

Thanks, I ran into this problem and the same thing fixed it for me.

@mandarjoshi90
Copy link
Owner

Sorry, I missed this earlier. I'll add a warning to the README. Just so I understand the solution, removing the flag -D_GLIBCXX_USE_CXX11_ABI=0 from setup_all.sh did the trick?

@jkkummerfeld
Copy link
Contributor

That's right.

@rainyrainyguo
Copy link

I removed the flag from setup_all.sh but still, get the error:

tensorflow.python.framework.errors_impl.NotFoundError: ./coref_kernels.so: undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringEv

@mariaBio
Copy link

mariaBio commented Apr 15, 2021

Thank you very much for everyone who contributed to the code release.

I am running the software on the SLURM cluster and facing exactly that same issue:
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: ./coref_kernels.so: undefined symbol: _ZN10tensorflow12OpDefBuilderC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

The setup_all.sh has the following line:

Linux (pip)

g++ -std=c++11 -shared coref_kernels.cc -o coref_kernels.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2
(so the flag that was suggested to be removed is not there)

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