{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1295","repository_url":"https://api.github.com/repos/mozilla/DeepSpeech","labels_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1295/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1295/comments","events_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1295/events","html_url":"https://github.com/mozilla/DeepSpeech/issues/1295","id":305840804,"number":1295,"title":"libctc_decoder_with_kenlm.so can't find symbol ","user":{"login":"fancyerii","id":5372812,"avatar_url":"https://avatars0.githubusercontent.com/u/5372812?v=4","gravatar_id":"","url":"https://api.github.com/users/fancyerii","html_url":"https://github.com/fancyerii","followers_url":"https://api.github.com/users/fancyerii/followers","following_url":"https://api.github.com/users/fancyerii/following{/other_user}","gists_url":"https://api.github.com/users/fancyerii/gists{/gist_id}","starred_url":"https://api.github.com/users/fancyerii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancyerii/subscriptions","organizations_url":"https://api.github.com/users/fancyerii/orgs","repos_url":"https://api.github.com/users/fancyerii/repos","events_url":"https://api.github.com/users/fancyerii/events{/privacy}","received_events_url":"https://api.github.com/users/fancyerii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-03-16T08:30:39Z","updated_at":"2018-03-16T09:58:56Z","closed_at":null,"author_association":"NONE","body":"For support and discussions, please use our [Discourse forums](https://discourse.mozilla.org/c/deep-speech).\r\n\r\nIf you've found a bug, or have a feature request, then please create an issue with the following information:\r\n\r\n- **Have I written custom code (as opposed to running examples on an unmodified clone of the repository)**:\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: 16.04\r\n- **TensorFlow installed from (our builds, or upstream TensorFlow)**: ('v1.5.0-17-gad8f785', '1.5.0-warpctc0.1')\r\n- **TensorFlow version (use command below)**:\r\n- **Python version**:  2.7.3\r\n- **Bazel version (if compiling from source)**: 0.9\r\n- **GCC/Compiler version (if compiling from source)**:\r\n     gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609\r\n- **CUDA/cuDNN version**:\r\n      8.0/6\r\n- **GPU model and memory**:\r\n      8G\r\n- **Exact command to reproduce**:\r\n\r\nBecause tensorflow1.5 don't support cuda8 and cudnn6, I built both tensorflow and native_client from source as follows:\r\n1. get tensorflow r1.5 from mozilla's fork:\r\n git clone https://github.com/mozilla/tensorflow.git\r\n git checkout r1.5\r\n2. ./configure\r\n3. build native_client\r\n4. build tensorflow\r\n\r\nBut when I run python DeepSpeech.py, it print error messages:\r\n```\r\ntensorflow.python.framework.errors_impl.NotFoundError: native_client/libctc_decoder_with_kenlm.so: undefined symbol: _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE\r\n```\r\n\r\nSo I check this so file:\r\nldd native_client\r\n```\r\nldd native_client/libctc_decoder_with_kenlm.so \r\n        linux-vdso.so.1 =>  (0x00007ffcd6b41000)\r\n        libtensorflow_framework.so => /home/lili/env-deepspeech/lib/python2.7/site-packages/tensorflow/libtensorflow_framework.so (0x00007f591c616000)\r\n```\r\n\r\n```\r\nnm /home/lili/env-deepspeech/lib/python2.7/site-packages/tensorflow/libtensorflow_framework.so|grep _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS\r\n000000000039fc50 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPb\r\n000000000039fae0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPf\r\n000000000039f930 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPi\r\n00000000003a0270 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_11TensorShapeE\r\n00000000003a0fc0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_12NameAttrListE\r\n00000000003a00f0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_16TensorShapeProtoE\r\n00000000003a0680 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_18PartialTensorShapeE\r\n00000000003a1140 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_3gtl13InlinedVectorINS_8DataTypeELi4EEE\r\n00000000003a0a90 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_6TensorE\r\n000000000039ff80 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNS_8DataTypeE\r\n00000000003a1460 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPPKNS_11TensorProtoE\r\n00000000003a15d0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPPKNS_12NameAttrListE\r\n000000000039f4d0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSs\r\n000000000039fdc0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorIbSaIbEE\r\n00000000003a1f10 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorIfSaIfEE\r\n00000000003a1c10 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorIiSaIiEE\r\n00000000003a0420 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorINS_11TensorShapeESaIS5_EE\r\n00000000003a18e0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorINS_12NameAttrListESaIS5_EE\r\n00000000003a1740 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorINS_16TensorShapeProtoESaIS5_EE\r\n00000000003a0830 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorINS_18PartialTensorShapeESaIS5_EE\r\n00000000003a0cb0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorINS_6TensorESaIS5_EE\r\n00000000003a2180 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorINS_8DataTypeESaIS5_EE\r\n000000000039f650 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorISsSaISsEE\r\n00000000003a1a80 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSt6vectorIxSaIxEE\r\n000000000039f7c0 T _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPx\r\n```\r\n\r\nit seems libctc_decoder_with_kenlm.so need \r\n_ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE\r\nBut libtensorflow_framework.so do not have that."},"comment":{"url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/comments/373662470","html_url":"https://github.com/mozilla/DeepSpeech/issues/1295#issuecomment-373662470","issue_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1295","id":373662470,"user":{"login":"lissyx","id":1645737,"avatar_url":"https://avatars0.githubusercontent.com/u/1645737?v=4","gravatar_id":"","url":"https://api.github.com/users/lissyx","html_url":"https://github.com/lissyx","followers_url":"https://api.github.com/users/lissyx/followers","following_url":"https://api.github.com/users/lissyx/following{/other_user}","gists_url":"https://api.github.com/users/lissyx/gists{/gist_id}","starred_url":"https://api.github.com/users/lissyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lissyx/subscriptions","organizations_url":"https://api.github.com/users/lissyx/orgs","repos_url":"https://api.github.com/users/lissyx/repos","events_url":"https://api.github.com/users/lissyx/events{/privacy}","received_events_url":"https://api.github.com/users/lissyx/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T09:58:56Z","updated_at":"2018-03-16T09:58:56Z","author_association":"COLLABORATOR","body":"@fancyerii I don't know exactly what you are doing, but yes, if you need `libdeepspeech.so` it should be built with that flag as well. And if you need CUDA, don't forget the `--config=cuda` when building `libdeepspeech.so` ..."}}
{"actor":{"display_login":"lissyx"}}