-
Notifications
You must be signed in to change notification settings - Fork 436
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 reference to google::protobuf::FileDescriptor::DebugString() #32
Comments
Since DebugString() is to print warning/error info, I commented this line out in generate_proto_def.cc. But other errors follow with protoc not finding tensorflow proto definitions: |
Can you re-run with |
|
That's very strange. Could you modify the tool to add this line:
|
How will that help? The build with my current toolchain fails now as it can't find DebugSting() |
The tool first generates the protos. For some reason, we suspect that the |
OK, reading more carefully, I see what you mean. You can't uncomment that line out. Can go back to the original version, then run bazel with |
#23 has same problem. |
Can you run with |
|
So, it's trying to link:
which maps to
which should be a symlink to something like
if you
|
for how many steps the model will be trained ? |
Was the problem resolved? |
Dear @Raviteja1996 , looks like the problem was resolved. The build log is for reference
Thank you. |
@drpngx @grwlf @zh794390558 I meet the similar problem. But after reading your discussion, I still have no idea about how to solve it. Could you please tell me more detailed operations step by step? Thank you so much! |
@iamxiaoyubei I have the same problem, can you tell me how to resolve it bazel-out/host/bin/lingvo/tools/_objs/generate_proto_def/generate_proto_def.o:generate_proto_def.cc:function main: error: undefined reference to 'tensorflow::GraphDef::descriptor()' |
@fangelyuan I have a bug with "undefined reference to tensorflow..." because I installed both tensorflow and tf-nightly. Just uninstall tensorflow and install tf-nightly. In addition, I am using the tf-nightly-gpu version 1.14.1-dev20190426, and I have encountered some other problems when installing the latest version. So I suggest you install this version. Hope can help. |
@iamxiaoyubei can i add your WECHAT |
@iamxiaoyubei lingvo is based on tensorflow. when you uninstall tensorflow, can it work normal? |
@fangelyuan Sorry, I don't want to add people on WeChat and I don't often read WeChat except after work. So, if you have any questions, you can communicate on github or send an email. If I see and have time, I will respond to you in time. Yes, it can work. Tf-nightly is the latest version of tensorflow. You can check the intro of tf-nightly online. |
@iamxiaoyubei thanks I success to build trainer. now i test transformer model , i hope you can help me when i encounter problem |
@Raviteja1996 I have the same problem. I build tensorflow (v1.15.0 commit: 590d6ee) from source with gcc 5.4 and bazel 0.25.2. Then build lingvo (commit: 8926ece), the problem occurred. I found that there's a flag "-D_GLIBCXX_USE_CXX11_ABI=0" in the file lingvo/lingvo/lingvo.bzl, so it can not find the symbol "_ZNK6google8protobuf14FileDescriptor11DebugStringEv" in libtensorflow_framework.so, it's "_ZNK6google8protobuf14FileDescriptor11DebugStringB5cxx11Ev" exactly in libtensorflow_framework.so. So, changing "-D_GLIBCXX_USE_CXX11_ABI=0" to "-D_GLIBCXX_USE_CXX11_ABI=1" solve the problem. Hope it can help you. |
i can confirm that this problem still exists at HEAD but it probably only happens in specific build environment the following one-liner will fix it
|
I just installed lingvo and it looks like I face the issue with protobuf linking. The nightly-tf seems to be up-to-date
The exact error from bazel build is
Could you please check?
The text was updated successfully, but these errors were encountered: