Advertisement
illwieckz

netradiant clang issue #3

Apr 4th, 2020
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.14 KB | None | 0 0
  1. make netradiant -j1
  2. [ 1%] Built target cmdlib
  3. [ 1%] Built target container
  4. [ 1%] Built target ddslib
  5. [ 3%] Built target debugging
  6. [ 5%] Built target etclib
  7. [ 5%] Built target filematch
  8. [ 7%] Built target generic
  9. [ 7%] Built target uilib
  10. [ 9%] Built target l_net
  11. [ 9%] Built target math
  12. [ 11%] Built target mathlib
  13. [ 11%] Built target memory
  14. [ 11%] Built target modulesystem
  15. [ 13%] Built target os
  16. [ 20%] Built target picomodel
  17. [ 22%] Built target profile
  18. [ 24%] Built target script
  19. [ 24%] Built target signal
  20. [ 28%] Built target splines
  21. [ 28%] Built target stream
  22. [ 30%] Built target string
  23. [ 32%] Built target xmllib
  24. [ 33%] Built target includes
  25. [ 33%] Built target archivepak
  26. [ 35%] Built target archivewad
  27. [ 35%] Built target archivezip
  28. [ 39%] Built target entity
  29. [ 41%] Built target image
  30. [ 43%] Built target crnrgba
  31. [ 45%] Built target imagehl
  32. [ 45%] Built target imagepng
  33. [ 47%] Built target imageq2
  34. [ 47%] Built target imagewebp
  35. [ 47%] Built target iqmmodel
  36. [ 49%] Built target mapq3
  37. [ 50%] Built target mapxml
  38. [ 54%] Built target md3model
  39. [ 56%] Built target model
  40. [ 58%] Built target shaders
  41. [ 60%] Built target vfspk3
  42. [ 67%] Built target gtkutil
  43. [ 69%] Built target imagecrn
  44. [ 69%] Built target modules
  45. [ 69%] Building CXX object radiant/CMakeFiles/netradiant.dir/brushmodule.cpp.o
  46. In file included from /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:24:
  47. In file included from /home/illwieckz/dev/netradiant/include/qerplugin.h:29:
  48. /home/illwieckz/dev/netradiant/libs/uilib/uilib.h:602:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
  49. #define this (*static_cast<self>(this))
  50. ^
  51. In file included from /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:24:
  52. In file included from /home/illwieckz/dev/netradiant/include/qerplugin.h:29:
  53. In file included from /home/illwieckz/dev/netradiant/libs/uilib/uilib.h:4:
  54. In file included from /usr/include/c++/v1/string:477:
  55. In file included from /usr/include/c++/v1/string_view:176:
  56. In file included from /usr/include/c++/v1/__string:56:
  57. In file included from /usr/include/c++/v1/algorithm:643:
  58. /usr/include/c++/v1/memory:1860:58: warning: destructor called on non-final 'EdgeInstance' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
  59. _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
  60. ^
  61. /usr/include/c++/v1/memory:1727:18: note: in instantiation of member function 'std::__1::allocator<EdgeInstance>::destroy' requested here
  62. {__a.destroy(__p);}
  63. ^
  64. /usr/include/c++/v1/memory:1595:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<EdgeInstance> >::__destroy<EdgeInstance>' requested here
  65. {__destroy(__has_destroy<allocator_type, _Tp*>(), __a, __p);}
  66. ^
  67. /usr/include/c++/v1/vector:413:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<EdgeInstance> >::destroy<EdgeInstance>' requested here
  68. __alloc_traits::destroy(__alloc(), _VSTD::__to_raw_pointer(--__soon_to_be_end));
  69. ^
  70. /usr/include/c++/v1/vector:356:29: note: in instantiation of member function 'std::__1::__vector_base<EdgeInstance, std::__1::allocator<EdgeInstance> >::__destruct_at_end' requested here
  71. void clear() _NOEXCEPT {__destruct_at_end(__begin_);}
  72. ^
  73. /usr/include/c++/v1/vector:441:9: note: in instantiation of member function 'std::__1::__vector_base<EdgeInstance, std::__1::allocator<EdgeInstance> >::clear' requested here
  74. clear();
  75. ^
  76. /usr/include/c++/v1/iterator:1425:74: note: in instantiation of member function 'std::__1::__vector_base<EdgeInstance, std::__1::allocator<EdgeInstance> >::~__vector_base' requested here
  77. template <class _Tp, class _Alloc> friend class _LIBCPP_TEMPLATE_VIS vector;
  78. ^
  79. /usr/include/c++/v1/memory:1860:64: note: qualify call to silence this warning
  80. _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
  81. ^
  82. /usr/include/c++/v1/memory:1860:58: warning: destructor called on non-final 'VertexInstance' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
  83. _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
  84. ^
  85. /usr/include/c++/v1/memory:1727:18: note: in instantiation of member function 'std::__1::allocator<VertexInstance>::destroy' requested here
  86. {__a.destroy(__p);}
  87. ^
  88. /usr/include/c++/v1/memory:1595:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<VertexInstance> >::__destroy<VertexInstance>' requested here
  89. {__destroy(__has_destroy<allocator_type, _Tp*>(), __a, __p);}
  90. ^
  91. /usr/include/c++/v1/vector:413:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<VertexInstance> >::destroy<VertexInstance>' requested here
  92. __alloc_traits::destroy(__alloc(), _VSTD::__to_raw_pointer(--__soon_to_be_end));
  93. ^
  94. /usr/include/c++/v1/vector:356:29: note: in instantiation of member function 'std::__1::__vector_base<VertexInstance, std::__1::allocator<VertexInstance> >::__destruct_at_end' requested here
  95. void clear() _NOEXCEPT {__destruct_at_end(__begin_);}
  96. ^
  97. /usr/include/c++/v1/vector:441:9: note: in instantiation of member function 'std::__1::__vector_base<VertexInstance, std::__1::allocator<VertexInstance> >::clear' requested here
  98. clear();
  99. ^
  100. /usr/include/c++/v1/iterator:1425:74: note: in instantiation of member function 'std::__1::__vector_base<VertexInstance, std::__1::allocator<VertexInstance> >::~__vector_base' requested here
  101. template <class _Tp, class _Alloc> friend class _LIBCPP_TEMPLATE_VIS vector;
  102. ^
  103. /usr/include/c++/v1/memory:1860:64: note: qualify call to silence this warning
  104. _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
  105. ^
  106. In file included from /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:26:
  107. In file included from /home/illwieckz/dev/netradiant/radiant/brushnode.h:25:
  108. In file included from /home/illwieckz/dev/netradiant/libs/instancelib.h:29:
  109. In file included from /home/illwieckz/dev/netradiant/libs/scenelib.h:27:
  110. In file included from /home/illwieckz/dev/netradiant/include/iselection.h:27:
  111. /home/illwieckz/dev/netradiant/libs/generic/callback.h:185:30: error: call to 'convertToOpaque' is ambiguous
  112. return const_cast<void *>(detail::convertToOpaque(firstBound));
  113. ^~~~~~~~~~~~~~~~~~~~~~~
  114. /home/illwieckz/dev/netradiant/libs/generic/callback.h:214:64: note: in instantiation of member function 'detail::BindFirstOpaqueN<detail::FunctionN<void (double (*const &)(double), const Callback<void (bool)> &)>::instance<&Face_SnapPlanes::Export>, void (double (*const &)(double), const Callback<void (bool)> &)>::getEnvironment' requested here
  115. Callback(const BindFirstOpaque<Caller> &caller) : Base(caller.getEnvironment(), BindFirstOpaque<Caller>::thunk) {
  116. ^
  117. /home/illwieckz/dev/netradiant/libs/property.h:70:13: note: in instantiation of function template specialization 'Callback<void (const Callback<void (bool)> &)>::Callback<detail::FunctionN<void (double (*const &)(double), const Callback<void (bool)> &)>::instance<&Face_SnapPlanes::Export> >' requested here
  118. return {typename A::Get(self), typename A::Set(self)};
  119. ^
  120. /home/illwieckz/dev/netradiant/libs/property.h:85:12: note: in instantiation of function template specialization 'make_property<PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> >' requested here
  121. return make_property<property_impl<I>>(self);
  122. ^
  123. /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:58:3: note: in instantiation of function template specialization 'make_property<Face_SnapPlanes, double (*)(double), bool>' requested here
  124. make_property<Face_SnapPlanes>(Face::m_quantise)
  125. ^
  126. /home/illwieckz/dev/netradiant/libs/generic/callback.h:105:21: note: candidate function [with T = double (double)]
  127. inline const void *convertToOpaque(const T *t) {
  128. ^
  129. /home/illwieckz/dev/netradiant/libs/generic/callback.h:131:21: note: candidate function [with R = double, Ts = <double>]
  130. inline const void *convertToOpaque(R(*const &t)(Ts...)) {
  131. ^
  132. /home/illwieckz/dev/netradiant/libs/generic/callback.h:117:15: note: candidate function [with T = double (double)]
  133. inline void *convertToOpaque(T *t) {
  134. ^
  135. /home/illwieckz/dev/netradiant/libs/generic/callback.h:79:21: note: candidate function [with T = double (*)(double)]
  136. inline const void *convertToOpaque(const T &t) {
  137. ^
  138. /home/illwieckz/dev/netradiant/libs/generic/callback.h:91:15: note: candidate function [with T = double (*const)(double)]
  139. inline void *convertToOpaque(T &t) {
  140. ^
  141. /home/illwieckz/dev/netradiant/libs/generic/callback.h:185:30: error: call to 'convertToOpaque' is ambiguous
  142. return const_cast<void *>(detail::convertToOpaque(firstBound));
  143. ^~~~~~~~~~~~~~~~~~~~~~~
  144. /home/illwieckz/dev/netradiant/libs/generic/callback.h:214:64: note: in instantiation of member function 'detail::BindFirstOpaqueN<detail::FunctionN<void (double (*&)(double), bool)>::instance<&Face_SnapPlanes::Import>, void (double (*&)(double), bool)>::getEnvironment' requested here
  145. Callback(const BindFirstOpaque<Caller> &caller) : Base(caller.getEnvironment(), BindFirstOpaque<Caller>::thunk) {
  146. ^
  147. /home/illwieckz/dev/netradiant/libs/property.h:70:36: note: in instantiation of function template specialization 'Callback<void (bool)>::Callback<detail::FunctionN<void (double (*&)(double), bool)>::instance<&Face_SnapPlanes::Import> >' requested here
  148. return {typename A::Get(self), typename A::Set(self)};
  149. ^
  150. /home/illwieckz/dev/netradiant/libs/property.h:85:12: note: in instantiation of function template specialization 'make_property<PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> >' requested here
  151. return make_property<property_impl<I>>(self);
  152. ^
  153. /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:58:3: note: in instantiation of function template specialization 'make_property<Face_SnapPlanes, double (*)(double), bool>' requested here
  154. make_property<Face_SnapPlanes>(Face::m_quantise)
  155. ^
  156. /home/illwieckz/dev/netradiant/libs/generic/callback.h:105:21: note: candidate function [with T = double (double)]
  157. inline const void *convertToOpaque(const T *t) {
  158. ^
  159. /home/illwieckz/dev/netradiant/libs/generic/callback.h:145:18: note: candidate function [with R = double, Ts = <double>]
  160. inline void *convertToOpaque(R(*&t)(Ts...)) {
  161. ^
  162. /home/illwieckz/dev/netradiant/libs/generic/callback.h:117:15: note: candidate function [with T = double (double)]
  163. inline void *convertToOpaque(T *t) {
  164. ^
  165. /home/illwieckz/dev/netradiant/libs/generic/callback.h:91:15: note: candidate function [with T = double (*)(double)]
  166. inline void *convertToOpaque(T &t) {
  167. ^
  168. /home/illwieckz/dev/netradiant/libs/generic/callback.h:131:21: note: candidate function [with R = double, Ts = <double>]
  169. inline const void *convertToOpaque(R(*const &t)(Ts...)) {
  170. ^
  171. /home/illwieckz/dev/netradiant/libs/generic/callback.h:79:21: note: candidate function [with T = double (*)(double)]
  172. inline const void *convertToOpaque(const T &t) {
  173. ^
  174. /home/illwieckz/dev/netradiant/libs/generic/callback.h:185:30: error: call to 'convertToOpaque' is ambiguous
  175. return const_cast<void *>(detail::convertToOpaque(firstBound));
  176. ^~~~~~~~~~~~~~~~~~~~~~~
  177. /home/illwieckz/dev/netradiant/libs/generic/callback.h:214:64: note: in instantiation of member function 'detail::BindFirstOpaqueN<detail::FunctionN<void (double (*const &)(double), const Callback<void (const char *)> &)>::instance<&make_property_chain_I_1<const char *, bool, double (*)(double), PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> >::Export>, void (double (*const &)(double), const Callback<void (const char *)> &)>::getEnvironment' requested here
  178. Callback(const BindFirstOpaque<Caller> &caller) : Base(caller.getEnvironment(), BindFirstOpaque<Caller>::thunk) {
  179. ^
  180. /home/illwieckz/dev/netradiant/libs/property.h:70:13: note: in instantiation of function template specialization 'Callback<void (const Callback<void (const char *)> &)>::Callback<detail::FunctionN<void (double (*const &)(double), const Callback<void (const char *)> &)>::instance<&make_property_chain_I_1<const char *, bool, double (*)(double), PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> >::Export> >' requested here
  181. return {typename A::Get(self), typename A::Set(self)};
  182. ^
  183. /home/illwieckz/dev/netradiant/libs/property.h:130:12: note: in instantiation of function template specialization 'make_property<PropertyAdaptor<double (*)(double), const char *, make_property_chain_I_1<const char *, bool, double (*)(double), PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> > > >' requested here
  184. return make_property<PropertyAdaptor<X, DST, I>>(it);
  185. ^
  186. /home/illwieckz/dev/netradiant/include/preferencesystem.h:44:9: note: in instantiation of function template specialization 'make_property_chain<PropertyImpl<bool, const char *>, Face_SnapPlanes>' requested here
  187. return make_property_chain<PropertyImpl<detail::propertyimpl_other<I>, const char *>, I>(it);
  188. ^
  189. /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:155:65: note: in instantiation of function template specialization 'make_property_string<Face_SnapPlanes, double (*)(double)>' requested here
  190. GlobalPreferenceSystem().registerPreference("BrushSnapPlanes", make_property_string<Face_SnapPlanes>(Face::m_quantise));
  191. ^
  192. /home/illwieckz/dev/netradiant/libs/generic/callback.h:105:21: note: candidate function [with T = double (double)]
  193. inline const void *convertToOpaque(const T *t) {
  194. ^
  195. /home/illwieckz/dev/netradiant/libs/generic/callback.h:131:21: note: candidate function [with R = double, Ts = <double>]
  196. inline const void *convertToOpaque(R(*const &t)(Ts...)) {
  197. ^
  198. /home/illwieckz/dev/netradiant/libs/generic/callback.h:117:15: note: candidate function [with T = double (double)]
  199. inline void *convertToOpaque(T *t) {
  200. ^
  201. /home/illwieckz/dev/netradiant/libs/generic/callback.h:79:21: note: candidate function [with T = double (*)(double)]
  202. inline const void *convertToOpaque(const T &t) {
  203. ^
  204. /home/illwieckz/dev/netradiant/libs/generic/callback.h:91:15: note: candidate function [with T = double (*const)(double)]
  205. inline void *convertToOpaque(T &t) {
  206. ^
  207. /home/illwieckz/dev/netradiant/libs/generic/callback.h:185:30: error: call to 'convertToOpaque' is ambiguous
  208. return const_cast<void *>(detail::convertToOpaque(firstBound));
  209. ^~~~~~~~~~~~~~~~~~~~~~~
  210. /home/illwieckz/dev/netradiant/libs/generic/callback.h:214:64: note: in instantiation of member function 'detail::BindFirstOpaqueN<detail::FunctionN<void (double (*&)(double), const char *)>::instance<&make_property_chain_I_1<const char *, bool, double (*)(double), PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> >::Import>, void (double (*&)(double), const char *)>::getEnvironment' requested here
  211. Callback(const BindFirstOpaque<Caller> &caller) : Base(caller.getEnvironment(), BindFirstOpaque<Caller>::thunk) {
  212. ^
  213. /home/illwieckz/dev/netradiant/libs/property.h:70:36: note: in instantiation of function template specialization 'Callback<void (const char *)>::Callback<detail::FunctionN<void (double (*&)(double), const char *)>::instance<&make_property_chain_I_1<const char *, bool, double (*)(double), PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> >::Import> >' requested here
  214. return {typename A::Get(self), typename A::Set(self)};
  215. ^
  216. /home/illwieckz/dev/netradiant/libs/property.h:130:12: note: in instantiation of function template specialization 'make_property<PropertyAdaptor<double (*)(double), const char *, make_property_chain_I_1<const char *, bool, double (*)(double), PropertyAdaptor<double (*)(double), bool, Face_SnapPlanes> > > >' requested here
  217. return make_property<PropertyAdaptor<X, DST, I>>(it);
  218. ^
  219. /home/illwieckz/dev/netradiant/include/preferencesystem.h:44:9: note: in instantiation of function template specialization 'make_property_chain<PropertyImpl<bool, const char *>, Face_SnapPlanes>' requested here
  220. return make_property_chain<PropertyImpl<detail::propertyimpl_other<I>, const char *>, I>(it);
  221. ^
  222. /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:155:65: note: in instantiation of function template specialization 'make_property_string<Face_SnapPlanes, double (*)(double)>' requested here
  223. GlobalPreferenceSystem().registerPreference("BrushSnapPlanes", make_property_string<Face_SnapPlanes>(Face::m_quantise));
  224. ^
  225. /home/illwieckz/dev/netradiant/libs/generic/callback.h:105:21: note: candidate function [with T = double (double)]
  226. inline const void *convertToOpaque(const T *t) {
  227. ^
  228. /home/illwieckz/dev/netradiant/libs/generic/callback.h:145:18: note: candidate function [with R = double, Ts = <double>]
  229. inline void *convertToOpaque(R(*&t)(Ts...)) {
  230. ^
  231. /home/illwieckz/dev/netradiant/libs/generic/callback.h:117:15: note: candidate function [with T = double (double)]
  232. inline void *convertToOpaque(T *t) {
  233. ^
  234. /home/illwieckz/dev/netradiant/libs/generic/callback.h:91:15: note: candidate function [with T = double (*)(double)]
  235. inline void *convertToOpaque(T &t) {
  236. ^
  237. /home/illwieckz/dev/netradiant/libs/generic/callback.h:131:21: note: candidate function [with R = double, Ts = <double>]
  238. inline const void *convertToOpaque(R(*const &t)(Ts...)) {
  239. ^
  240. /home/illwieckz/dev/netradiant/libs/generic/callback.h:79:21: note: candidate function [with T = double (*)(double)]
  241. inline const void *convertToOpaque(const T &t) {
  242. ^
  243. 3 warnings and 4 errors generated.
  244. *** [radiant/CMakeFiles/netradiant.dir/brushmodule.cpp.o] Error code 1
  245.  
  246. make[3]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  247. 1 error
  248.  
  249. make[3]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  250. *** [radiant/CMakeFiles/netradiant.dir/all] Error code 2
  251.  
  252. make[2]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  253. 1 error
  254.  
  255. make[2]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  256. *** [radiant/CMakeFiles/netradiant.dir/rule] Error code 2
  257.  
  258. make[1]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  259. 1 error
  260.  
  261. make[1]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  262. *** [netradiant] Error code 2
  263.  
  264. make: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  265. 1 error
  266.  
  267. make: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement