Advertisement
illwieckz

netradiant clang issue #3.1

Apr 4th, 2020
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.80 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:106:10: error: cannot initialize return object of type 'const void *' with an lvalue of type 'double (*)(double)'
  112. return t;
  113. ^
  114. /home/illwieckz/dev/netradiant/libs/generic/callback.h:185:38: note: in instantiation of function template specialization 'detail::convertToOpaque<double (double)>' requested here
  115. return const_cast<void *>(detail::convertToOpaque(firstBound));
  116. ^
  117. /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
  118. Callback(const BindFirstOpaque<Caller> &caller) : Base(caller.getEnvironment(), BindFirstOpaque<Caller>::thunk) {
  119. ^
  120. /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
  121. return {typename A::Get(self), typename A::Set(self)};
  122. ^
  123. /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
  124. return make_property<property_impl<I>>(self);
  125. ^
  126. /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
  127. make_property<Face_SnapPlanes>(Face::m_quantise)
  128. ^
  129. In file included from /home/illwieckz/dev/netradiant/radiant/brushmodule.cpp:26:
  130. In file included from /home/illwieckz/dev/netradiant/radiant/brushnode.h:25:
  131. In file included from /home/illwieckz/dev/netradiant/libs/instancelib.h:29:
  132. In file included from /home/illwieckz/dev/netradiant/libs/scenelib.h:27:
  133. In file included from /home/illwieckz/dev/netradiant/include/iselection.h:27:
  134. /home/illwieckz/dev/netradiant/libs/generic/callback.h:118:10: error: cannot initialize return object of type 'void *' with an lvalue of type 'double (*)(double)'
  135. return t;
  136. ^
  137. /home/illwieckz/dev/netradiant/libs/generic/callback.h:185:38: note: in instantiation of function template specialization 'detail::convertToOpaque<double (double)>' requested here
  138. return const_cast<void *>(detail::convertToOpaque(firstBound));
  139. ^
  140. /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
  141. Callback(const BindFirstOpaque<Caller> &caller) : Base(caller.getEnvironment(), BindFirstOpaque<Caller>::thunk) {
  142. ^
  143. /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
  144. return {typename A::Get(self), typename A::Set(self)};
  145. ^
  146. /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
  147. return make_property<property_impl<I>>(self);
  148. ^
  149. /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
  150. make_property<Face_SnapPlanes>(Face::m_quantise)
  151. ^
  152. 3 warnings and 2 errors generated.
  153. *** [radiant/CMakeFiles/netradiant.dir/brushmodule.cpp.o] Error code 1
  154.  
  155. make[3]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  156. 1 error
  157.  
  158. make[3]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  159. *** [radiant/CMakeFiles/netradiant.dir/all] Error code 2
  160.  
  161. make[2]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  162. 1 error
  163.  
  164. make[2]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  165. *** [radiant/CMakeFiles/netradiant.dir/rule] Error code 2
  166.  
  167. make[1]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  168. 1 error
  169.  
  170. make[1]: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  171. *** [netradiant] Error code 2
  172.  
  173. make: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
  174. 1 error
  175.  
  176. make: stopped in /usr/home/illwieckz/dev/netradiant/build/freebsd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement