Advertisement
Guest User

Pyndri gcc-6 error

a guest
Dec 18th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.49 KB | None | 0 0
  1. Collecting pyndri
  2. Using cached pyndri-0.1.tar.gz
  3. Building wheels for collected packages: pyndri
  4. Running setup.py bdist_wheel for pyndri ... error
  5. Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a4v6mior/pyndri/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpe47eufclpip-wheel- --python-tag cp36:
  6. running bdist_wheel
  7. running build
  8. running build_py
  9. creating build
  10. creating build/lib.linux-x86_64-3.6
  11. creating build/lib.linux-x86_64-3.6/pyndri
  12. copying py/__init__.py -> build/lib.linux-x86_64-3.6/pyndri
  13. copying py/dictionary.py -> build/lib.linux-x86_64-3.6/pyndri
  14. copying py/compat.py -> build/lib.linux-x86_64-3.6/pyndri
  15. running build_ext
  16. building 'pyndri_ext' extension
  17. creating build/temp.linux-x86_64-3.6
  18. creating build/temp.linux-x86_64-3.6/src
  19. gcc-6 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -DP_NEEDS_GNU_CXX_NAMESPACE=1 -UNDEBUG -I/usr/include/python3.6m -c src/pyndri.cpp -o build/temp.linux-x86_64-3.6/src/pyndri.o
  20. cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  21. In file included from /usr/local/include/indri/QuerySpec.hpp:18:0,
  22. from /usr/local/include/indri/QueryServer.hpp:22,
  23. from /usr/local/include/indri/LocalQueryServer.hpp:26,
  24. from src/pyndri.cpp:13:
  25. /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1/include/c++/sstream:348:7: error: ‘struct std::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
  26. struct __xfer_bufptrs
  27. ^~~~~~
  28. src/pyndri.cpp: In function ‘int Index_init(Index*, PyObject*, PyObject*)’:
  29. src/pyndri.cpp:101:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  30. static char* kwlist[] = {"repository_path", NULL};
  31. ^
  32. src/pyndri.cpp: At global scope:
  33. src/pyndri.cpp:180:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  34. };
  35. ^
  36. src/pyndri.cpp:180:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  37. src/pyndri.cpp: In function ‘PyObject* Index_get_document_ids(Index*, PyObject*)’:
  38. src/pyndri.cpp:208:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  39. while (item = PyIter_Next(iterator)) {
  40. ^
  41. In file included from /usr/local/include/indri/DocListMemoryBuilder.hpp:24:0,
  42. from /usr/local/include/indri/MemoryIndex.hpp:35,
  43. from /usr/local/include/indri/Repository.hpp:26,
  44. from /usr/local/include/indri/InferenceNetwork.hpp:25,
  45. from /usr/local/include/indri/QueryServer.hpp:23,
  46. from /usr/local/include/indri/LocalQueryServer.hpp:26,
  47. from src/pyndri.cpp:13:
  48. src/pyndri.cpp: In function ‘PyObject* Index_get_dictionary(Index*, PyObject*)’:
  49. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  50. #define CHECK_EQ(first, second) assert(first == second)
  51.  
  52. src/pyndri.cpp:471:14:
  53. CHECK_EQ(PyDict_Size(token2id), self->index_->uniqueTermCount());
  54. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. src/pyndri.cpp:471:5: note: in expansion of macro ‘CHECK_EQ’
  56. CHECK_EQ(PyDict_Size(token2id), self->index_->uniqueTermCount());
  57. ^~~~~~~~
  58. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  59. #define CHECK_EQ(first, second) assert(first == second)
  60.  
  61. src/pyndri.cpp:472:14:
  62. CHECK_EQ(PyDict_Size(id2token), self->index_->uniqueTermCount());
  63. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. src/pyndri.cpp:472:5: note: in expansion of macro ‘CHECK_EQ’
  65. CHECK_EQ(PyDict_Size(id2token), self->index_->uniqueTermCount());
  66. ^~~~~~~~
  67. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  68. #define CHECK_EQ(first, second) assert(first == second)
  69.  
  70. src/pyndri.cpp:473:14:
  71. CHECK_EQ(PyDict_Size(id2df), self->index_->uniqueTermCount());
  72. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  73. src/pyndri.cpp:473:5: note: in expansion of macro ‘CHECK_EQ’
  74. CHECK_EQ(PyDict_Size(id2df), self->index_->uniqueTermCount());
  75. ^~~~~~~~
  76. src/pyndri.cpp: In function ‘PyObject* Index_get_term_frequencies(Index*, PyObject*)’:
  77. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  78. #define CHECK_EQ(first, second) assert(first == second)
  79.  
  80. src/pyndri.cpp:508:14:
  81. CHECK_EQ(PyDict_Size(id2tf), self->index_->uniqueTermCount());
  82. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  83. src/pyndri.cpp:508:5: note: in expansion of macro ‘CHECK_EQ’
  84. CHECK_EQ(PyDict_Size(id2tf), self->index_->uniqueTermCount());
  85. ^~~~~~~~
  86. src/pyndri.cpp: In function ‘int QueryEnvironment_init(QueryEnvironment*, PyObject*, PyObject*)’:
  87. src/pyndri.cpp:585:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  88. NULL};
  89. ^
  90. src/pyndri.cpp:585:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  91. src/pyndri.cpp:585:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  92. src/pyndri.cpp: In function ‘PyObject* QueryEnvironment_run_query(QueryEnvironment*, PyObject*, PyObject*)’:
  93. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  94. NULL};
  95. ^
  96. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  97. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  98. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  99. src/pyndri.cpp:675:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  100. while (item = PyIter_Next(iterator)) {
  101. ^
  102. error: command 'gcc-6' failed with exit status 1
  103.  
  104. ----------------------------------------
  105. Failed building wheel for pyndri
  106. Running setup.py clean for pyndri
  107. Failed to build pyndri
  108. Installing collected packages: pyndri
  109. Running setup.py install for pyndri ... error
  110. Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a4v6mior/pyndri/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-jcs4kwqt-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
  111. running install
  112. running build
  113. running build_py
  114. creating build
  115. creating build/lib.linux-x86_64-3.6
  116. creating build/lib.linux-x86_64-3.6/pyndri
  117. copying py/__init__.py -> build/lib.linux-x86_64-3.6/pyndri
  118. copying py/dictionary.py -> build/lib.linux-x86_64-3.6/pyndri
  119. copying py/compat.py -> build/lib.linux-x86_64-3.6/pyndri
  120. running build_ext
  121. building 'pyndri_ext' extension
  122. creating build/temp.linux-x86_64-3.6
  123. creating build/temp.linux-x86_64-3.6/src
  124. gcc-6 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -DP_NEEDS_GNU_CXX_NAMESPACE=1 -UNDEBUG -I/usr/include/python3.6m -c src/pyndri.cpp -o build/temp.linux-x86_64-3.6/src/pyndri.o
  125. cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  126. In file included from /usr/local/include/indri/QuerySpec.hpp:18:0,
  127. from /usr/local/include/indri/QueryServer.hpp:22,
  128. from /usr/local/include/indri/LocalQueryServer.hpp:26,
  129. from src/pyndri.cpp:13:
  130. /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1/include/c++/sstream:348:7: error: ‘struct std::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
  131. struct __xfer_bufptrs
  132. ^~~~~~
  133. src/pyndri.cpp: In function ‘int Index_init(Index*, PyObject*, PyObject*)’:
  134. src/pyndri.cpp:101:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  135. static char* kwlist[] = {"repository_path", NULL};
  136. ^
  137. src/pyndri.cpp: At global scope:
  138. src/pyndri.cpp:180:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  139. };
  140. ^
  141. src/pyndri.cpp:180:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  142. src/pyndri.cpp: In function ‘PyObject* Index_get_document_ids(Index*, PyObject*)’:
  143. src/pyndri.cpp:208:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  144. while (item = PyIter_Next(iterator)) {
  145. ^
  146. In file included from /usr/local/include/indri/DocListMemoryBuilder.hpp:24:0,
  147. from /usr/local/include/indri/MemoryIndex.hpp:35,
  148. from /usr/local/include/indri/Repository.hpp:26,
  149. from /usr/local/include/indri/InferenceNetwork.hpp:25,
  150. from /usr/local/include/indri/QueryServer.hpp:23,
  151. from /usr/local/include/indri/LocalQueryServer.hpp:26,
  152. from src/pyndri.cpp:13:
  153. src/pyndri.cpp: In function ‘PyObject* Index_get_dictionary(Index*, PyObject*)’:
  154. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  155. #define CHECK_EQ(first, second) assert(first == second)
  156.  
  157. src/pyndri.cpp:471:14:
  158. CHECK_EQ(PyDict_Size(token2id), self->index_->uniqueTermCount());
  159. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  160. src/pyndri.cpp:471:5: note: in expansion of macro ‘CHECK_EQ’
  161. CHECK_EQ(PyDict_Size(token2id), self->index_->uniqueTermCount());
  162. ^~~~~~~~
  163. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  164. #define CHECK_EQ(first, second) assert(first == second)
  165.  
  166. src/pyndri.cpp:472:14:
  167. CHECK_EQ(PyDict_Size(id2token), self->index_->uniqueTermCount());
  168. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169. src/pyndri.cpp:472:5: note: in expansion of macro ‘CHECK_EQ’
  170. CHECK_EQ(PyDict_Size(id2token), self->index_->uniqueTermCount());
  171. ^~~~~~~~
  172. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  173. #define CHECK_EQ(first, second) assert(first == second)
  174.  
  175. src/pyndri.cpp:473:14:
  176. CHECK_EQ(PyDict_Size(id2df), self->index_->uniqueTermCount());
  177. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  178. src/pyndri.cpp:473:5: note: in expansion of macro ‘CHECK_EQ’
  179. CHECK_EQ(PyDict_Size(id2df), self->index_->uniqueTermCount());
  180. ^~~~~~~~
  181. src/pyndri.cpp: In function ‘PyObject* Index_get_term_frequencies(Index*, PyObject*)’:
  182. src/pyndri.cpp:30:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  183. #define CHECK_EQ(first, second) assert(first == second)
  184.  
  185. src/pyndri.cpp:508:14:
  186. CHECK_EQ(PyDict_Size(id2tf), self->index_->uniqueTermCount());
  187. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  188. src/pyndri.cpp:508:5: note: in expansion of macro ‘CHECK_EQ’
  189. CHECK_EQ(PyDict_Size(id2tf), self->index_->uniqueTermCount());
  190. ^~~~~~~~
  191. src/pyndri.cpp: In function ‘int QueryEnvironment_init(QueryEnvironment*, PyObject*, PyObject*)’:
  192. src/pyndri.cpp:585:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  193. NULL};
  194. ^
  195. src/pyndri.cpp:585:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  196. src/pyndri.cpp:585:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  197. src/pyndri.cpp: In function ‘PyObject* QueryEnvironment_run_query(QueryEnvironment*, PyObject*, PyObject*)’:
  198. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  199. NULL};
  200. ^
  201. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  202. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  203. src/pyndri.cpp:641:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  204. src/pyndri.cpp:675:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  205. while (item = PyIter_Next(iterator)) {
  206. ^
  207. error: command 'gcc-6' failed with exit status 1
  208.  
  209. ----------------------------------------
  210. Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a4v6mior/pyndri/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-jcs4kwqt-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-a4v6mior/pyndri/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement