Advertisement
Guest User

Log for make in Ndless

a guest
Apr 28th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.66 KB | None | 0 0
  1. make -C ndless-sdk
  2. make[1]: Entering directory '/Ndless/ndless-sdk'
  3. make -C libsyscalls
  4. make[2]: Entering directory '/Ndless/ndless-sdk/libsyscalls'
  5. make[2]: Nothing to be done for 'all'.
  6. make[2]: Leaving directory '/Ndless/ndless-sdk/libsyscalls'
  7. make -C libndls
  8. make[2]: Entering directory '/Ndless/ndless-sdk/libndls'
  9. make[2]: Leaving directory '/Ndless/ndless-sdk/libndls'
  10. make -C thirdparty
  11. make[2]: Entering directory '/Ndless/ndless-sdk/thirdparty'
  12. make -C nspire-io lib
  13. make[3]: Entering directory '/Ndless/ndless-sdk/thirdparty/nspire-io'
  14. make[3]: Nothing to be done for 'lib'.
  15. make[3]: Leaving directory '/Ndless/ndless-sdk/thirdparty/nspire-io'
  16. make ../lib/libnspireio.a ../include/nspireio2.h ../include/nspireio/console.hpp ../include/nspireio/file.hpp ../include/nspireio/ios_base.hpp ../include/nspireio/ios_base.ipp ../include/nspireio/nspireio.h ../include/nspireio/platform-nspire.h ../include/nspireio/platform-prizm.h ../include/nspireio/platform.h ../include/nspireio/queue.h ../include/nspireio/uart.hpp
  17. make[3]: Entering directory '/Ndless/ndless-sdk/thirdparty'
  18. make[3]: '../lib/libnspireio.a' is up to date.
  19. make[3]: '../include/nspireio2.h' is up to date.
  20. make[3]: '../include/nspireio/console.hpp' is up to date.
  21. make[3]: '../include/nspireio/file.hpp' is up to date.
  22. make[3]: '../include/nspireio/ios_base.hpp' is up to date.
  23. make[3]: '../include/nspireio/ios_base.ipp' is up to date.
  24. make[3]: '../include/nspireio/nspireio.h' is up to date.
  25. make[3]: '../include/nspireio/platform-nspire.h' is up to date.
  26. make[3]: '../include/nspireio/platform-prizm.h' is up to date.
  27. make[3]: '../include/nspireio/platform.h' is up to date.
  28. make[3]: '../include/nspireio/queue.h' is up to date.
  29. make[3]: '../include/nspireio/uart.hpp' is up to date.
  30. make[3]: Leaving directory '/Ndless/ndless-sdk/thirdparty'
  31. cd zlib && (make libz.a || (CC=nspire-gcc CHOST=arm-none-eabi CFLAGS="-O3 -c" ./configure --static && make libz.a))
  32. make[3]: Entering directory '/Ndless/ndless-sdk/thirdparty/zlib'
  33. make[3]: 'libz.a' is up to date.
  34. make[3]: Leaving directory '/Ndless/ndless-sdk/thirdparty/zlib'
  35. make ../lib/libz.a ../include/zlib.h ../include/zconf.h
  36. make[3]: Entering directory '/Ndless/ndless-sdk/thirdparty'
  37. make[3]: '../lib/libz.a' is up to date.
  38. make[3]: '../include/zlib.h' is up to date.
  39. make[3]: '../include/zconf.h' is up to date.
  40. make[3]: Leaving directory '/Ndless/ndless-sdk/thirdparty'
  41. make -C freetype2 CC=nspire-gcc ANSIFLAGS="-O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB" AR="/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-ar" SYSTEM_ZLIB=yes library
  42. make[3]: Entering directory '/Ndless/ndless-sdk/thirdparty/freetype2'
  43. make[3]: Nothing to be done for 'library'.
  44. make[3]: Leaving directory '/Ndless/ndless-sdk/thirdparty/freetype2'
  45. make ../lib/libfreetype.a ../include/freetype2/ft2build.h ../include/freetype2/freetype/freetype.h ../include/freetype2/freetype/ftadvanc.h ../include/freetype2/freetype/ftautoh.h ../include/freetype2/freetype/ftbbox.h ../include/freetype2/freetype/ftbdf.h ../include/freetype2/freetype/ftbitmap.h ../include/freetype2/freetype/ftbzip2.h ../include/freetype2/freetype/ftcache.h ../include/freetype2/freetype/ftcffdrv.h ../include/freetype2/freetype/ftchapters.h ../include/freetype2/freetype/ftcid.h ../include/freetype2/freetype/fterrdef.h ../include/freetype2/freetype/fterrors.h ../include/freetype2/freetype/ftfntfmt.h ../include/freetype2/freetype/ftgasp.h ../include/freetype2/freetype/ftglyph.h ../include/freetype2/freetype/ftgxval.h ../include/freetype2/freetype/ftgzip.h ../include/freetype2/freetype/ftimage.h ../include/freetype2/freetype/ftincrem.h ../include/freetype2/freetype/ftlcdfil.h ../include/freetype2/freetype/ftlist.h ../include/freetype2/freetype/ftlzw.h ../include/freetype2/freetype/ftmac.h ../include/freetype2/freetype/ftmm.h ../include/freetype2/freetype/ftmodapi.h ../include/freetype2/freetype/ftmoderr.h ../include/freetype2/freetype/ftotval.h ../include/freetype2/freetype/ftoutln.h ../include/freetype2/freetype/ftpfr.h ../include/freetype2/freetype/ftrender.h ../include/freetype2/freetype/ftsizes.h ../include/freetype2/freetype/ftsnames.h ../include/freetype2/freetype/ftstroke.h ../include/freetype2/freetype/ftsynth.h ../include/freetype2/freetype/ftsystem.h ../include/freetype2/freetype/fttrigon.h ../include/freetype2/freetype/ftttdrv.h ../include/freetype2/freetype/fttypes.h ../include/freetype2/freetype/ftwinfnt.h ../include/freetype2/freetype/t1tables.h ../include/freetype2/freetype/ttnameid.h ../include/freetype2/freetype/tttables.h ../include/freetype2/freetype/tttags.h ../include/freetype2/freetype/ttunpat.h ../include/freetype2/freetype/config/ftconfig.h ../include/freetype2/freetype/config/ftheader.h ../include/freetype2/freetype/config/ftmodule.h ../include/freetype2/freetype/config/ftoption.h ../include/freetype2/freetype/config/ftstdlib.h
  46. make[3]: Entering directory '/Ndless/ndless-sdk/thirdparty'
  47. make[3]: '../lib/libfreetype.a' is up to date.
  48. make[3]: '../include/freetype2/ft2build.h' is up to date.
  49. make[3]: '../include/freetype2/freetype/freetype.h' is up to date.
  50. make[3]: '../include/freetype2/freetype/ftadvanc.h' is up to date.
  51. make[3]: '../include/freetype2/freetype/ftautoh.h' is up to date.
  52. make[3]: '../include/freetype2/freetype/ftbbox.h' is up to date.
  53. make[3]: '../include/freetype2/freetype/ftbdf.h' is up to date.
  54. make[3]: '../include/freetype2/freetype/ftbitmap.h' is up to date.
  55. make[3]: '../include/freetype2/freetype/ftbzip2.h' is up to date.
  56. make[3]: '../include/freetype2/freetype/ftcache.h' is up to date.
  57. make[3]: '../include/freetype2/freetype/ftcffdrv.h' is up to date.
  58. make[3]: '../include/freetype2/freetype/ftchapters.h' is up to date.
  59. make[3]: '../include/freetype2/freetype/ftcid.h' is up to date.
  60. make[3]: '../include/freetype2/freetype/fterrdef.h' is up to date.
  61. make[3]: '../include/freetype2/freetype/fterrors.h' is up to date.
  62. make[3]: '../include/freetype2/freetype/ftfntfmt.h' is up to date.
  63. make[3]: '../include/freetype2/freetype/ftgasp.h' is up to date.
  64. make[3]: '../include/freetype2/freetype/ftglyph.h' is up to date.
  65. make[3]: '../include/freetype2/freetype/ftgxval.h' is up to date.
  66. make[3]: '../include/freetype2/freetype/ftgzip.h' is up to date.
  67. make[3]: '../include/freetype2/freetype/ftimage.h' is up to date.
  68. make[3]: '../include/freetype2/freetype/ftincrem.h' is up to date.
  69. make[3]: '../include/freetype2/freetype/ftlcdfil.h' is up to date.
  70. make[3]: '../include/freetype2/freetype/ftlist.h' is up to date.
  71. make[3]: '../include/freetype2/freetype/ftlzw.h' is up to date.
  72. make[3]: '../include/freetype2/freetype/ftmac.h' is up to date.
  73. make[3]: '../include/freetype2/freetype/ftmm.h' is up to date.
  74. make[3]: '../include/freetype2/freetype/ftmodapi.h' is up to date.
  75. make[3]: '../include/freetype2/freetype/ftmoderr.h' is up to date.
  76. make[3]: '../include/freetype2/freetype/ftotval.h' is up to date.
  77. make[3]: '../include/freetype2/freetype/ftoutln.h' is up to date.
  78. make[3]: '../include/freetype2/freetype/ftpfr.h' is up to date.
  79. make[3]: '../include/freetype2/freetype/ftrender.h' is up to date.
  80. make[3]: '../include/freetype2/freetype/ftsizes.h' is up to date.
  81. make[3]: '../include/freetype2/freetype/ftsnames.h' is up to date.
  82. make[3]: '../include/freetype2/freetype/ftstroke.h' is up to date.
  83. make[3]: '../include/freetype2/freetype/ftsynth.h' is up to date.
  84. make[3]: '../include/freetype2/freetype/ftsystem.h' is up to date.
  85. make[3]: '../include/freetype2/freetype/fttrigon.h' is up to date.
  86. make[3]: '../include/freetype2/freetype/ftttdrv.h' is up to date.
  87. make[3]: '../include/freetype2/freetype/fttypes.h' is up to date.
  88. make[3]: '../include/freetype2/freetype/ftwinfnt.h' is up to date.
  89. make[3]: '../include/freetype2/freetype/t1tables.h' is up to date.
  90. make[3]: '../include/freetype2/freetype/ttnameid.h' is up to date.
  91. make[3]: '../include/freetype2/freetype/tttables.h' is up to date.
  92. make[3]: '../include/freetype2/freetype/tttags.h' is up to date.
  93. make[3]: '../include/freetype2/freetype/ttunpat.h' is up to date.
  94. make[3]: '../include/freetype2/freetype/config/ftconfig.h' is up to date.
  95. make[3]: '../include/freetype2/freetype/config/ftheader.h' is up to date.
  96. make[3]: '../include/freetype2/freetype/config/ftmodule.h' is up to date.
  97. make[3]: '../include/freetype2/freetype/config/ftoption.h' is up to date.
  98. make[3]: '../include/freetype2/freetype/config/ftstdlib.h' is up to date.
  99. make[3]: Leaving directory '/Ndless/ndless-sdk/thirdparty'
  100. make[2]: Leaving directory '/Ndless/ndless-sdk/thirdparty'
  101. make -C tools
  102. make[2]: Entering directory '/Ndless/ndless-sdk/tools'
  103. make all in luna...
  104. make[3]: Entering directory '/Ndless/ndless-sdk/tools/luna'
  105. make[3]: Nothing to be done for 'all'.
  106. make[3]: Leaving directory '/Ndless/ndless-sdk/tools/luna'
  107. make all in genzehn...
  108. make[3]: Entering directory '/Ndless/ndless-sdk/tools/genzehn'
  109. g++ -Wall -Wextra -std=c++11 -I elfio-3.2 genzehn.cpp -lboost_program_options -lz -o ../../bin/genzehn || g++ -Wall -Wextra -std=c++11 -I elfio-3.2 genzehn.cpp -lboost_program_options-mt -lz -o ../../bin/genzehn
  110. In file included from genzehn.cpp:12:
  111. zehn.h:1:1: error: expected unqualified-id before ‘.’ token
  112. 1 | ../../include/zehn.h
  113. | ^
  114. genzehn.cpp: In function ‘int main(int, char**)’:
  115. genzehn.cpp:96:9: error: ‘Zehn_header’ was not declared in this scope; did you mean ‘gz_header’?
  116. 96 | Zehn_header header;
  117. | ^~~~~~~~~~~
  118. | gz_header
  119. genzehn.cpp:110:29: error: ‘ZEHN_SIGNATURE’ was not declared in this scope
  120. 110 | if(buffer[i] == ZEHN_SIGNATURE && buffer[i + 1] == ZEHN_VERSION)
  121. | ^~~~~~~~~~~~~~
  122. genzehn.cpp:110:64: error: ‘ZEHN_VERSION’ was not declared in this scope; did you mean ‘ZLIB_VERSION’?
  123. 110 | if(buffer[i] == ZEHN_SIGNATURE && buffer[i + 1] == ZEHN_VERSION)
  124. | ^~~~~~~~~~~~
  125. | ZLIB_VERSION
  126. genzehn.cpp:126:53: error: ‘header’ was not declared in this scope; did you mean ‘gz_header’?
  127. 126 | if(!zehn_file.read(reinterpret_cast<char*>(&header), sizeof(header)))
  128. | ^~~~~~
  129. | gz_header
  130. genzehn.cpp:135:25: error: ‘header’ was not declared in this scope; did you mean ‘gz_header’?
  131. 135 | << header.reloc_count << "\trelocations" << std::endl
  132. | ^~~~~~
  133. | gz_header
  134. genzehn.cpp:143:21: error: ‘Zehn_reloc’ was not declared in this scope
  135. 143 | std::vector<Zehn_reloc> relocs(header.reloc_count);
  136. | ^~~~~~~~~~
  137. genzehn.cpp:143:31: error: template argument 1 is invalid
  138. 143 | std::vector<Zehn_reloc> relocs(header.reloc_count);
  139. | ^
  140. genzehn.cpp:143:31: error: template argument 2 is invalid
  141. genzehn.cpp:144:21: error: ‘Zehn_flag’ was not declared in this scope
  142. 144 | std::vector<Zehn_flag> flags(header.flag_count);
  143. | ^~~~~~~~~
  144. genzehn.cpp:144:30: error: template argument 1 is invalid
  145. 144 | std::vector<Zehn_flag> flags(header.flag_count);
  146. | ^
  147. genzehn.cpp:144:30: error: template argument 2 is invalid
  148. genzehn.cpp:147:59: error: request for member ‘data’ in ‘relocs’, which is of non-class type ‘int’
  149. 147 | if(!zehn_file.read(reinterpret_cast<char*>(relocs.data()), sizeof(Zehn_reloc) * header.reloc_count))
  150. | ^~~~
  151. genzehn.cpp:153:58: error: request for member ‘data’ in ‘flags’, which is of non-class type ‘int’
  152. 153 | if(!zehn_file.read(reinterpret_cast<char*>(flags.data()), sizeof(Zehn_flag) * header.flag_count))
  153. | ^~~~
  154. genzehn.cpp:165:45: error: invalid types ‘int[int]’ for array subscript
  155. 165 | if(header.reloc_count != 0 && relocs[0].type == Zehn_reloc_type::FILE_COMPRESSED)
  156. | ^
  157. genzehn.cpp:165:57: error: ‘Zehn_reloc_type’ has not been declared
  158. 165 | if(header.reloc_count != 0 && relocs[0].type == Zehn_reloc_type::FILE_COMPRESSED)
  159. | ^~~~~~~~~~~~~~~
  160. genzehn.cpp:166:68: error: invalid types ‘int[int]’ for array subscript
  161. 166 | std::cout << "This file is compressed (type " << relocs[0].offset << ")" << std::endl;
  162. | ^
  163. genzehn.cpp:169:25: error: ‘begin’ was not declared in this scope
  164. 169 | for(auto flag : flags)
  165. | ^~~~~
  166. genzehn.cpp:169:25: note: suggested alternatives:
  167. In file included from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/string:54,
  168. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/locale_classes.h:40,
  169. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/ios_base.h:41,
  170. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ios:42,
  171. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ostream:38,
  172. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/iostream:39,
  173. from genzehn.cpp:4:
  174. /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/range_access.h:90:5: note: ‘std::begin’
  175. 90 | begin(_Tp (&__arr)[_Nm])
  176. | ^~~~~
  177. In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17,
  178. from /usr/include/boost/mpl/list/list0.hpp:27,
  179. from /usr/include/boost/mpl/list/list10.hpp:18,
  180. from /usr/include/boost/mpl/list/list20.hpp:18,
  181. from /usr/include/boost/mpl/list.hpp:36,
  182. from /usr/include/boost/math/policies/policy.hpp:9,
  183. from /usr/include/boost/math/special_functions/math_fwd.hpp:29,
  184. from /usr/include/boost/math/special_functions/sign.hpp:17,
  185. from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34,
  186. from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:63,
  187. from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
  188. from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:42,
  189. from /usr/include/boost/lexical_cast.hpp:32,
  190. from /usr/include/boost/program_options/value_semantic.hpp:14,
  191. from /usr/include/boost/program_options/options_description.hpp:13,
  192. from /usr/include/boost/program_options.hpp:15,
  193. from genzehn.cpp:8:
  194. /usr/include/boost/mpl/begin_end_fwd.hpp:22:38: note: ‘boost::mpl::begin’
  195. 22 | template< typename Sequence > struct begin;
  196. | ^~~~~
  197. In file included from /usr/include/boost/range/functions.hpp:18,
  198. from /usr/include/boost/range/iterator_range_core.hpp:38,
  199. from /usr/include/boost/lexical_cast.hpp:30,
  200. from /usr/include/boost/program_options/value_semantic.hpp:14,
  201. from /usr/include/boost/program_options/options_description.hpp:13,
  202. from /usr/include/boost/program_options.hpp:15,
  203. from genzehn.cpp:8:
  204. /usr/include/boost/range/begin.hpp:106:61: note: ‘boost::range_adl_barrier::begin’
  205. 106 | inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type begin( const T& r )
  206. | ^~~~~
  207. genzehn.cpp:169:25: error: ‘end’ was not declared in this scope
  208. 169 | for(auto flag : flags)
  209. | ^~~~~
  210. genzehn.cpp:169:25: note: suggested alternatives:
  211. In file included from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/string:54,
  212. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/locale_classes.h:40,
  213. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/ios_base.h:41,
  214. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ios:42,
  215. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ostream:38,
  216. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/iostream:39,
  217. from genzehn.cpp:4:
  218. /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/range_access.h:100:5: note: ‘std::end’
  219. 100 | end(_Tp (&__arr)[_Nm])
  220. | ^~~
  221. In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17,
  222. from /usr/include/boost/mpl/list/list0.hpp:27,
  223. from /usr/include/boost/mpl/list/list10.hpp:18,
  224. from /usr/include/boost/mpl/list/list20.hpp:18,
  225. from /usr/include/boost/mpl/list.hpp:36,
  226. from /usr/include/boost/math/policies/policy.hpp:9,
  227. from /usr/include/boost/math/special_functions/math_fwd.hpp:29,
  228. from /usr/include/boost/math/special_functions/sign.hpp:17,
  229. from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34,
  230. from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:63,
  231. from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
  232. from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:42,
  233. from /usr/include/boost/lexical_cast.hpp:32,
  234. from /usr/include/boost/program_options/value_semantic.hpp:14,
  235. from /usr/include/boost/program_options/options_description.hpp:13,
  236. from /usr/include/boost/program_options.hpp:15,
  237. from genzehn.cpp:8:
  238. /usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note: ‘boost::mpl::end’
  239. 23 | template< typename Sequence > struct end;
  240. | ^~~
  241. In file included from /usr/include/boost/range/functions.hpp:19,
  242. from /usr/include/boost/range/iterator_range_core.hpp:38,
  243. from /usr/include/boost/lexical_cast.hpp:30,
  244. from /usr/include/boost/program_options/value_semantic.hpp:14,
  245. from /usr/include/boost/program_options/options_description.hpp:13,
  246. from /usr/include/boost/program_options.hpp:15,
  247. from genzehn.cpp:8:
  248. /usr/include/boost/range/end.hpp:100:61: note: ‘boost::range_adl_barrier::end’
  249. 100 | inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type end( const T& r )
  250. | ^~~
  251. genzehn.cpp:173:18: error: ‘Zehn_flag_type’ has not been declared
  252. 173 | case Zehn_flag_type::EXECUTABLE_NAME:
  253. | ^~~~~~~~~~~~~~
  254. genzehn.cpp:176:18: error: ‘Zehn_flag_type’ has not been declared
  255. 176 | case Zehn_flag_type::EXECUTABLE_VERSION:
  256. | ^~~~~~~~~~~~~~
  257. genzehn.cpp:179:18: error: ‘Zehn_flag_type’ has not been declared
  258. 179 | case Zehn_flag_type::EXECUTABLE_AUTHOR:
  259. | ^~~~~~~~~~~~~~
  260. genzehn.cpp:182:18: error: ‘Zehn_flag_type’ has not been declared
  261. 182 | case Zehn_flag_type::EXECUTABLE_NOTICE:
  262. | ^~~~~~~~~~~~~~
  263. genzehn.cpp:185:18: error: ‘Zehn_flag_type’ has not been declared
  264. 185 | case Zehn_flag_type::NDLESS_VERSION_MAX:
  265. | ^~~~~~~~~~~~~~
  266. genzehn.cpp:186:18: error: ‘Zehn_flag_type’ has not been declared
  267. 186 | case Zehn_flag_type::NDLESS_VERSION_MIN:
  268. | ^~~~~~~~~~~~~~
  269. genzehn.cpp:187:18: error: ‘Zehn_flag_type’ has not been declared
  270. 187 | case Zehn_flag_type::NDLESS_REVISION_MAX:
  271. | ^~~~~~~~~~~~~~
  272. genzehn.cpp:188:18: error: ‘Zehn_flag_type’ has not been declared
  273. 188 | case Zehn_flag_type::NDLESS_REVISION_MIN:
  274. | ^~~~~~~~~~~~~~
  275. genzehn.cpp:189:18: error: ‘Zehn_flag_type’ has not been declared
  276. 189 | case Zehn_flag_type::RUNS_ON_32MB:
  277. | ^~~~~~~~~~~~~~
  278. genzehn.cpp:190:18: error: ‘Zehn_flag_type’ has not been declared
  279. 190 | case Zehn_flag_type::RUNS_ON_CLICKPAD:
  280. | ^~~~~~~~~~~~~~
  281. genzehn.cpp:191:18: error: ‘Zehn_flag_type’ has not been declared
  282. 191 | case Zehn_flag_type::RUNS_ON_COLOR:
  283. | ^~~~~~~~~~~~~~
  284. genzehn.cpp:192:18: error: ‘Zehn_flag_type’ has not been declared
  285. 192 | case Zehn_flag_type::RUNS_ON_TOUCHPAD:
  286. | ^~~~~~~~~~~~~~
  287. genzehn.cpp:195:18: error: ‘Zehn_flag_type’ has not been declared
  288. 195 | case Zehn_flag_type::RUNS_ON_HWW:
  289. | ^~~~~~~~~~~~~~
  290. genzehn.cpp:199:18: error: ‘Zehn_flag_type’ has not been declared
  291. 199 | case Zehn_flag_type::USES_LCD_BLIT:
  292. | ^~~~~~~~~~~~~~
  293. genzehn.cpp:221:5: error: ‘elfio’ was not declared in this scope; did you mean ‘ELFIO::elfio’?
  294. 221 | elfio input_reader;
  295. | ^~~~~
  296. | ELFIO::elfio
  297. In file included from genzehn.cpp:10:
  298. elfio-3.2/elfio/elfio.hpp:71:7: note: ‘ELFIO::elfio’ declared here
  299. 71 | class elfio
  300. | ^~~~~
  301. genzehn.cpp:223:9: error: ‘input_reader’ was not declared in this scope
  302. 223 | if(!input_reader.load(args["input"].as<std::string>()))
  303. | ^~~~~~~~~~~~
  304. genzehn.cpp:229:8: error: ‘input_reader’ was not declared in this scope
  305. 229 | if(input_reader.get_machine() != EM_ARM)
  306. | ^~~~~~~~~~~~
  307. genzehn.cpp:243:5: error: ‘Zehn_header’ was not declared in this scope; did you mean ‘gz_header’?
  308. 243 | Zehn_header header;
  309. | ^~~~~~~~~~~
  310. | gz_header
  311. genzehn.cpp:245:17: error: ‘Zehn_reloc’ was not declared in this scope
  312. 245 | std::vector<Zehn_reloc> reloc_table;
  313. | ^~~~~~~~~~
  314. genzehn.cpp:245:27: error: template argument 1 is invalid
  315. 245 | std::vector<Zehn_reloc> reloc_table;
  316. | ^
  317. genzehn.cpp:245:27: error: template argument 2 is invalid
  318. genzehn.cpp:246:17: error: ‘Zehn_flag’ was not declared in this scope
  319. 246 | std::vector<Zehn_flag> flag_table;
  320. | ^~~~~~~~~
  321. genzehn.cpp:246:26: error: template argument 1 is invalid
  322. 246 | std::vector<Zehn_flag> flag_table;
  323. | ^
  324. genzehn.cpp:246:26: error: template argument 2 is invalid
  325. genzehn.cpp:251:14: error: ‘Elf_Xword’ was not declared in this scope; did you mean ‘ELFIO::Elf_Xword’?
  326. 251 | std::set<Elf_Xword> undefined_symbols; uint32_t got_address = 0; std::set<uint32_t> undo_relocs;
  327. | ^~~~~~~~~
  328. | ELFIO::Elf_Xword
  329. In file included from elfio-3.2/elfio/elfio.hpp:42,
  330. from genzehn.cpp:10:
  331. elfio-3.2/elfio/elf_types.hpp:54:18: note: ‘ELFIO::Elf_Xword’ declared here
  332. 54 | typedef uint64_t Elf_Xword;
  333. | ^~~~~~~~~
  334. genzehn.cpp:251:23: error: template argument 1 is invalid
  335. 251 | std::set<Elf_Xword> undefined_symbols; uint32_t got_address = 0; std::set<uint32_t> undo_relocs;
  336. | ^
  337. genzehn.cpp:251:23: error: template argument 2 is invalid
  338. genzehn.cpp:251:23: error: template argument 3 is invalid
  339. genzehn.cpp:254:58: error: ‘ZEHN_VERSION’ was not declared in this scope; did you mean ‘ZLIB_VERSION’?
  340. 254 | std::cout << "Generating Zehn file, version " << ZEHN_VERSION << "." << std::endl;
  341. | ^~~~~~~~~~~~
  342. | ZLIB_VERSION
  343. genzehn.cpp:256:5: error: ‘header’ was not declared in this scope; did you mean ‘gz_header’?
  344. 256 | header.signature = ZEHN_SIGNATURE;
  345. | ^~~~~~
  346. | gz_header
  347. genzehn.cpp:256:24: error: ‘ZEHN_SIGNATURE’ was not declared in this scope
  348. 256 | header.signature = ZEHN_SIGNATURE;
  349. | ^~~~~~~~~~~~~~
  350. genzehn.cpp:257:22: error: ‘ZEHN_VERSION’ was not declared in this scope; did you mean ‘ZLIB_VERSION’?
  351. 257 | header.version = ZEHN_VERSION;
  352. | ^~~~~~~~~~~~
  353. | ZLIB_VERSION
  354. genzehn.cpp:258:27: error: ‘input_reader’ was not declared in this scope
  355. 258 | header.entry_offset = input_reader.get_entry();
  356. | ^~~~~~~~~~~~
  357. genzehn.cpp:265:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  358. 265 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NAME, zehn_extra_string(args["name"].as<std::string>(), extra_data)});
  359. | ^~~~~~~~~
  360. genzehn.cpp:265:31: error: ‘Zehn_flag_type’ has not been declared
  361. 265 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NAME, zehn_extra_string(args["name"].as<std::string>(), extra_data)});
  362. | ^~~~~~~~~~~~~~
  363. genzehn.cpp:267:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  364. 267 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_AUTHOR, zehn_extra_string(args["author"].as<std::string>(), extra_data)});
  365. | ^~~~~~~~~
  366. genzehn.cpp:267:31: error: ‘Zehn_flag_type’ has not been declared
  367. 267 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_AUTHOR, zehn_extra_string(args["author"].as<std::string>(), extra_data)});
  368. | ^~~~~~~~~~~~~~
  369. genzehn.cpp:269:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  370. 269 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_VERSION, args["version"].as<uint32_t>()});
  371. | ^~~~~~~~~
  372. genzehn.cpp:269:31: error: ‘Zehn_flag_type’ has not been declared
  373. 269 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_VERSION, args["version"].as<uint32_t>()});
  374. | ^~~~~~~~~~~~~~
  375. genzehn.cpp:271:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  376. 271 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NOTICE, zehn_extra_string(args["notice"].as<std::string>(), extra_data)});
  377. | ^~~~~~~~~
  378. genzehn.cpp:271:31: error: ‘Zehn_flag_type’ has not been declared
  379. 271 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NOTICE, zehn_extra_string(args["notice"].as<std::string>(), extra_data)});
  380. | ^~~~~~~~~~~~~~
  381. genzehn.cpp:274:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  382. 274 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MIN, args["ndless-min"].as<uint32_t>()});
  383. | ^~~~~~~~~
  384. genzehn.cpp:274:31: error: ‘Zehn_flag_type’ has not been declared
  385. 274 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MIN, args["ndless-min"].as<uint32_t>()});
  386. | ^~~~~~~~~~~~~~
  387. genzehn.cpp:276:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  388. 276 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MIN, args["ndless-rev-min"].as<uint32_t>()});
  389. | ^~~~~~~~~
  390. genzehn.cpp:276:31: error: ‘Zehn_flag_type’ has not been declared
  391. 276 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MIN, args["ndless-rev-min"].as<uint32_t>()});
  392. | ^~~~~~~~~~~~~~
  393. genzehn.cpp:278:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  394. 278 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MAX, args["ndless-max"].as<uint32_t>()});
  395. | ^~~~~~~~~
  396. genzehn.cpp:278:31: error: ‘Zehn_flag_type’ has not been declared
  397. 278 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MAX, args["ndless-max"].as<uint32_t>()});
  398. | ^~~~~~~~~~~~~~
  399. genzehn.cpp:280:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  400. 280 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MAX, args["ndless-rev-max"].as<uint32_t>()});
  401. | ^~~~~~~~~
  402. genzehn.cpp:280:31: error: ‘Zehn_flag_type’ has not been declared
  403. 280 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MAX, args["ndless-rev-max"].as<uint32_t>()});
  404. | ^~~~~~~~~~~~~~
  405. genzehn.cpp:282:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  406. 282 | flag_table.push_back({Zehn_flag_type::RUNS_ON_COLOR, args["color-support"].as<bool>()});
  407. | ^~~~~~~~~
  408. genzehn.cpp:282:27: error: ‘Zehn_flag_type’ has not been declared
  409. 282 | flag_table.push_back({Zehn_flag_type::RUNS_ON_COLOR, args["color-support"].as<bool>()});
  410. | ^~~~~~~~~~~~~~
  411. genzehn.cpp:283:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  412. 283 | flag_table.push_back({Zehn_flag_type::RUNS_ON_CLICKPAD, args["clickpad-support"].as<bool>()});
  413. | ^~~~~~~~~
  414. genzehn.cpp:283:27: error: ‘Zehn_flag_type’ has not been declared
  415. 283 | flag_table.push_back({Zehn_flag_type::RUNS_ON_CLICKPAD, args["clickpad-support"].as<bool>()});
  416. | ^~~~~~~~~~~~~~
  417. genzehn.cpp:284:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  418. 284 | flag_table.push_back({Zehn_flag_type::RUNS_ON_TOUCHPAD, args["touchpad-support"].as<bool>()});
  419. | ^~~~~~~~~
  420. genzehn.cpp:284:27: error: ‘Zehn_flag_type’ has not been declared
  421. 284 | flag_table.push_back({Zehn_flag_type::RUNS_ON_TOUCHPAD, args["touchpad-support"].as<bool>()});
  422. | ^~~~~~~~~~~~~~
  423. genzehn.cpp:285:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  424. 285 | flag_table.push_back({Zehn_flag_type::RUNS_ON_32MB, args["32MB-support"].as<bool>()});
  425. | ^~~~~~~~~
  426. genzehn.cpp:285:27: error: ‘Zehn_flag_type’ has not been declared
  427. 285 | flag_table.push_back({Zehn_flag_type::RUNS_ON_32MB, args["32MB-support"].as<bool>()});
  428. | ^~~~~~~~~~~~~~
  429. genzehn.cpp:293:9: error: ‘section’ was not declared in this scope; did you mean ‘ELFIO::section’?
  430. 293 | section *s = input_reader.sections[i];
  431. | ^~~~~~~
  432. | ELFIO::section
  433. In file included from elfio-3.2/elfio/elfio.hpp:45,
  434. from genzehn.cpp:10:
  435. elfio-3.2/elfio/elfio_section.hpp:31:7: note: ‘ELFIO::section’ declared here
  436. 31 | class section
  437. | ^~~~~~~
  438. genzehn.cpp:293:18: error: ‘s’ was not declared in this scope
  439. 293 | section *s = input_reader.sections[i];
  440. | ^
  441. genzehn.cpp:300:13: error: ‘symbol_section_accessor’ was not declared in this scope; did you mean ‘ELFIO::symbol_section_accessor’?
  442. 300 | symbol_section_accessor ssa(input_reader, s);
  443. | ^~~~~~~~~~~~~~~~~~~~~~~
  444. | ELFIO::symbol_section_accessor
  445. In file included from elfio-3.2/elfio/elfio.hpp:839,
  446. from genzehn.cpp:10:
  447. elfio-3.2/elfio/elfio_symbols.hpp:29:7: note: ‘ELFIO::symbol_section_accessor’ declared here
  448. 29 | class symbol_section_accessor
  449. | ^~~~~~~~~~~~~~~~~~~~~~~
  450. genzehn.cpp:301:22: error: expected ‘;’ before ‘count’
  451. 301 | Elf_Xword count = ssa.get_symbols_num();
  452. | ^~~~~~
  453. | ;
  454. genzehn.cpp:302:26: error: expected ‘;’ before ‘i’
  455. 302 | for(Elf_Xword i = 0; i < count; ++i)
  456. | ^~
  457. | ;
  458. genzehn.cpp:302:38: error: ‘count’ was not declared in this scope; did you mean ‘std::count’?
  459. 302 | for(Elf_Xword i = 0; i < count; ++i)
  460. | ^~~~~
  461. | std::count
  462. In file included from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/algorithm:62,
  463. from genzehn.cpp:5:
  464. /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/stl_algo.h:4077:5: note: ‘std::count’ declared here
  465. 4077 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
  466. | ^~~~~
  467. genzehn.cpp:304:17: error: ‘Elf_Half’ was not declared in this scope; did you mean ‘ELFIO::Elf_Half’?
  468. 304 | Elf_Half section; std::string name; unsigned char bind, type;
  469. | ^~~~~~~~
  470. | ELFIO::Elf_Half
  471. In file included from elfio-3.2/elfio/elfio.hpp:42,
  472. from genzehn.cpp:10:
  473. elfio-3.2/elfio/elf_types.hpp:51:18: note: ‘ELFIO::Elf_Half’ declared here
  474. 51 | typedef uint16_t Elf_Half;
  475. | ^~~~~~~~
  476. genzehn.cpp:305:17: error: ‘Elf64_Addr’ was not declared in this scope; did you mean ‘ELFIO::Elf64_Addr’?
  477. 305 | Elf64_Addr u1; Elf_Xword u2; unsigned char u3; //Unused
  478. | ^~~~~~~~~~
  479. | ELFIO::Elf64_Addr
  480. In file included from elfio-3.2/elfio/elfio.hpp:42,
  481. from genzehn.cpp:10:
  482. elfio-3.2/elfio/elf_types.hpp:59:18: note: ‘ELFIO::Elf64_Addr’ declared here
  483. 59 | typedef uint64_t Elf64_Addr;
  484. | ^~~~~~~~~~
  485. genzehn.cpp:305:41: error: expected ‘;’ before ‘u2’
  486. 305 | Elf64_Addr u1; Elf_Xword u2; unsigned char u3; //Unused
  487. | ^~~
  488. | ;
  489. genzehn.cpp:306:21: error: ‘ssa’ was not declared in this scope
  490. 306 | if(!ssa.get_symbol(i, name, u1, u2, bind, type, section, u3))
  491. | ^~~
  492. genzehn.cpp:306:45: error: ‘u1’ was not declared in this scope; did you mean ‘u3’?
  493. 306 | if(!ssa.get_symbol(i, name, u1, u2, bind, type, section, u3))
  494. | ^~
  495. | u3
  496. genzehn.cpp:306:49: error: ‘u2’ was not declared in this scope; did you mean ‘u3’?
  497. 306 | if(!ssa.get_symbol(i, name, u1, u2, bind, type, section, u3))
  498. | ^~
  499. | u3
  500. genzehn.cpp:323:39: error: request for member ‘insert’ in ‘undefined_symbols’, which is of non-class type ‘int’
  501. 323 | undefined_symbols.insert(i);
  502. | ^~~~~~
  503. genzehn.cpp:404:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  504. 404 | flag_table.push_back({Zehn_flag_type::USES_LCD_BLIT, uses_lcd_blit});
  505. | ^~~~~~~~~
  506. genzehn.cpp:404:27: error: ‘Zehn_flag_type’ has not been declared
  507. 404 | flag_table.push_back({Zehn_flag_type::USES_LCD_BLIT, uses_lcd_blit});
  508. | ^~~~~~~~~~~~~~
  509. genzehn.cpp:414:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  510. 414 | flag_table.push_back({Zehn_flag_type::RUNS_ON_HWW, hww_compat});
  511. | ^~~~~~~~~
  512. genzehn.cpp:414:27: error: ‘Zehn_flag_type’ has not been declared
  513. 414 | flag_table.push_back({Zehn_flag_type::RUNS_ON_HWW, hww_compat});
  514. | ^~~~~~~~~~~~~~
  515. genzehn.cpp:422:9: error: ‘section’ was not declared in this scope; did you mean ‘ELFIO::section’?
  516. 422 | section *s = input_reader.sections[i];
  517. | ^~~~~~~
  518. | ELFIO::section
  519. In file included from elfio-3.2/elfio/elfio.hpp:45,
  520. from genzehn.cpp:10:
  521. elfio-3.2/elfio/elfio_section.hpp:31:7: note: ‘ELFIO::section’ declared here
  522. 31 | class section
  523. | ^~~~~~~
  524. genzehn.cpp:422:18: error: ‘s’ was not declared in this scope
  525. 422 | section *s = input_reader.sections[i];
  526. | ^
  527. genzehn.cpp:441:25: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  528. 441 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE_GOT, static_cast<uint32_t>(s->get_address())});
  529. | ^~~~~~~~~
  530. genzehn.cpp:441:36: error: ‘Zehn_reloc_type’ has not been declared
  531. 441 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE_GOT, static_cast<uint32_t>(s->get_address())});
  532. | ^~~~~~~~~~~~~~~
  533. genzehn.cpp:474:61: error: ‘Elf32_Rel’ was not declared in this scope; did you mean ‘ELFIO::Elf32_Rel’?
  534. 474 | unsigned int entries_count = s->get_size() / sizeof(Elf32_Rel);
  535. | ^~~~~~~~~
  536. | ELFIO::Elf32_Rel
  537. In file included from elfio-3.2/elfio/elfio.hpp:42,
  538. from genzehn.cpp:10:
  539. elfio-3.2/elfio/elf_types.hpp:699:8: note: ‘ELFIO::Elf32_Rel’ declared here
  540. 699 | struct Elf32_Rel {
  541. | ^~~~~~~~~
  542. genzehn.cpp:480:15: error: ‘Elf32_Rel’ does not name a type; did you mean ‘Elf32_Half’?
  543. 480 | const Elf32_Rel *entries = reinterpret_cast<const Elf32_Rel*>(s->get_data()), *entries_end = entries + entries_count;
  544. | ^~~~~~~~~
  545. | Elf32_Half
  546. genzehn.cpp:481:19: error: ‘Elf32_Rel’ does not name a type; did you mean ‘Elf32_Half’?
  547. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  548. | ^~~~~~~~~
  549. | Elf32_Half
  550. genzehn.cpp:481:46: error: expected ‘;’ before ‘entry’
  551. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  552. | ^~~~~~
  553. | ;
  554. genzehn.cpp:481:47: error: ‘entry’ was not declared in this scope
  555. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  556. | ^~~~~
  557. genzehn.cpp:481:55: error: ‘entries_end’ was not declared in this scope; did you mean ‘entries_count’?
  558. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  559. | ^~~~~~~~~~~
  560. | entries_count
  561. genzehn.cpp:483:34: error: request for member ‘find’ in ‘undefined_symbols’, which is of non-class type ‘int’
  562. 483 | if(undefined_symbols.find(ELF32_R_SYM(entry->r_info)) != undefined_symbols.end())
  563. | ^~~~
  564. genzehn.cpp:483:88: error: request for member ‘end’ in ‘undefined_symbols’, which is of non-class type ‘int’
  565. 483 | if(undefined_symbols.find(ELF32_R_SYM(entry->r_info)) != undefined_symbols.end())
  566. | ^~~
  567. genzehn.cpp:521:37: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  568. 521 | reloc_table.push_back({Zehn_reloc_type::UNALIGNED_RELOC, 0});
  569. | ^~~~~~~~~
  570. genzehn.cpp:521:48: error: ‘Zehn_reloc_type’ has not been declared
  571. 521 | reloc_table.push_back({Zehn_reloc_type::UNALIGNED_RELOC, 0});
  572. | ^~~~~~~~~~~~~~~
  573. genzehn.cpp:527:29: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  574. 527 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE, static_cast<uint32_t>(entry->r_offset)});
  575. | ^~~~~~~~~
  576. genzehn.cpp:527:40: error: ‘Zehn_reloc_type’ has not been declared
  577. 527 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE, static_cast<uint32_t>(entry->r_offset)});
  578. | ^~~~~~~~~~~~~~~
  579. genzehn.cpp:535:21: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  580. 535 | reloc_table.push_back({Zehn_reloc_type::SET_ZERO, offset});
  581. | ^~~~~~~~~
  582. genzehn.cpp:535:32: error: ‘Zehn_reloc_type’ has not been declared
  583. 535 | reloc_table.push_back({Zehn_reloc_type::SET_ZERO, offset});
  584. | ^~~~~~~~~~~~~~~
  585. genzehn.cpp:559:21: error: request for member ‘insert’ in ‘reloc_table’, which is of non-class type ‘int’
  586. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  587. | ^~~~~~
  588. genzehn.cpp:559:40: error: request for member ‘begin’ in ‘reloc_table’, which is of non-class type ‘int’
  589. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  590. | ^~~~~
  591. genzehn.cpp:559:50: error: ‘Zehn_reloc_type’ has not been declared
  592. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  593. | ^~~~~~~~~~~~~~~
  594. genzehn.cpp:559:106: error: ‘Zehn_compress_type’ has not been declared
  595. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  596. | ^~~~~~~~~~~~~~~~~~
  597. genzehn.cpp:565:38: error: request for member ‘size’ in ‘reloc_table’, which is of non-class type ‘int’
  598. 565 | header.reloc_count = reloc_table.size();
  599. | ^~~~
  600. genzehn.cpp:566:36: error: request for member ‘size’ in ‘flag_table’, which is of non-class type ‘int’
  601. 566 | header.flag_count = flag_table.size();
  602. | ^~~~
  603. genzehn.cpp:570:35: error: request for member ‘size’ in ‘reloc_table’, which is of non-class type ‘int’
  604. 570 | + reloc_table.size() * sizeof(Zehn_reloc)
  605. | ^~~~
  606. genzehn.cpp:571:34: error: request for member ‘size’ in ‘flag_table’, which is of non-class type ‘int’
  607. 571 | + flag_table.size() * sizeof(Zehn_flag)
  608. | ^~~~
  609. genzehn.cpp:598:67: error: request for member ‘data’ in ‘reloc_table’, which is of non-class type ‘int’
  610. 598 | output_writer.write(reinterpret_cast<const char*>(reloc_table.data()), reloc_table.size() * sizeof(Zehn_reloc));
  611. | ^~~~
  612. genzehn.cpp:598:88: error: request for member ‘size’ in ‘reloc_table’, which is of non-class type ‘int’
  613. 598 | output_writer.write(reinterpret_cast<const char*>(reloc_table.data()), reloc_table.size() * sizeof(Zehn_reloc));
  614. | ^~~~
  615. genzehn.cpp:599:66: error: request for member ‘data’ in ‘flag_table’, which is of non-class type ‘int’
  616. 599 | output_writer.write(reinterpret_cast<const char*>(flag_table.data()), flag_table.size() * sizeof(Zehn_flag));
  617. | ^~~~
  618. genzehn.cpp:599:86: error: request for member ‘size’ in ‘flag_table’, which is of non-class type ‘int’
  619. 599 | output_writer.write(reinterpret_cast<const char*>(flag_table.data()), flag_table.size() * sizeof(Zehn_flag));
  620. | ^~~~
  621. In file included from genzehn.cpp:12:
  622. zehn.h:1:1: error: expected unqualified-id before ‘.’ token
  623. 1 | ../../include/zehn.h
  624. | ^
  625. genzehn.cpp: In function ‘int main(int, char**)’:
  626. genzehn.cpp:96:9: error: ‘Zehn_header’ was not declared in this scope; did you mean ‘gz_header’?
  627. 96 | Zehn_header header;
  628. | ^~~~~~~~~~~
  629. | gz_header
  630. genzehn.cpp:110:29: error: ‘ZEHN_SIGNATURE’ was not declared in this scope
  631. 110 | if(buffer[i] == ZEHN_SIGNATURE && buffer[i + 1] == ZEHN_VERSION)
  632. | ^~~~~~~~~~~~~~
  633. genzehn.cpp:110:64: error: ‘ZEHN_VERSION’ was not declared in this scope; did you mean ‘ZLIB_VERSION’?
  634. 110 | if(buffer[i] == ZEHN_SIGNATURE && buffer[i + 1] == ZEHN_VERSION)
  635. | ^~~~~~~~~~~~
  636. | ZLIB_VERSION
  637. genzehn.cpp:126:53: error: ‘header’ was not declared in this scope; did you mean ‘gz_header’?
  638. 126 | if(!zehn_file.read(reinterpret_cast<char*>(&header), sizeof(header)))
  639. | ^~~~~~
  640. | gz_header
  641. genzehn.cpp:135:25: error: ‘header’ was not declared in this scope; did you mean ‘gz_header’?
  642. 135 | << header.reloc_count << "\trelocations" << std::endl
  643. | ^~~~~~
  644. | gz_header
  645. genzehn.cpp:143:21: error: ‘Zehn_reloc’ was not declared in this scope
  646. 143 | std::vector<Zehn_reloc> relocs(header.reloc_count);
  647. | ^~~~~~~~~~
  648. genzehn.cpp:143:31: error: template argument 1 is invalid
  649. 143 | std::vector<Zehn_reloc> relocs(header.reloc_count);
  650. | ^
  651. genzehn.cpp:143:31: error: template argument 2 is invalid
  652. genzehn.cpp:144:21: error: ‘Zehn_flag’ was not declared in this scope
  653. 144 | std::vector<Zehn_flag> flags(header.flag_count);
  654. | ^~~~~~~~~
  655. genzehn.cpp:144:30: error: template argument 1 is invalid
  656. 144 | std::vector<Zehn_flag> flags(header.flag_count);
  657. | ^
  658. genzehn.cpp:144:30: error: template argument 2 is invalid
  659. genzehn.cpp:147:59: error: request for member ‘data’ in ‘relocs’, which is of non-class type ‘int’
  660. 147 | if(!zehn_file.read(reinterpret_cast<char*>(relocs.data()), sizeof(Zehn_reloc) * header.reloc_count))
  661. | ^~~~
  662. genzehn.cpp:153:58: error: request for member ‘data’ in ‘flags’, which is of non-class type ‘int’
  663. 153 | if(!zehn_file.read(reinterpret_cast<char*>(flags.data()), sizeof(Zehn_flag) * header.flag_count))
  664. | ^~~~
  665. genzehn.cpp:165:45: error: invalid types ‘int[int]’ for array subscript
  666. 165 | if(header.reloc_count != 0 && relocs[0].type == Zehn_reloc_type::FILE_COMPRESSED)
  667. | ^
  668. genzehn.cpp:165:57: error: ‘Zehn_reloc_type’ has not been declared
  669. 165 | if(header.reloc_count != 0 && relocs[0].type == Zehn_reloc_type::FILE_COMPRESSED)
  670. | ^~~~~~~~~~~~~~~
  671. genzehn.cpp:166:68: error: invalid types ‘int[int]’ for array subscript
  672. 166 | std::cout << "This file is compressed (type " << relocs[0].offset << ")" << std::endl;
  673. | ^
  674. genzehn.cpp:169:25: error: ‘begin’ was not declared in this scope
  675. 169 | for(auto flag : flags)
  676. | ^~~~~
  677. genzehn.cpp:169:25: note: suggested alternatives:
  678. In file included from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/string:54,
  679. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/locale_classes.h:40,
  680. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/ios_base.h:41,
  681. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ios:42,
  682. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ostream:38,
  683. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/iostream:39,
  684. from genzehn.cpp:4:
  685. /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/range_access.h:90:5: note: ‘std::begin’
  686. 90 | begin(_Tp (&__arr)[_Nm])
  687. | ^~~~~
  688. In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17,
  689. from /usr/include/boost/mpl/list/list0.hpp:27,
  690. from /usr/include/boost/mpl/list/list10.hpp:18,
  691. from /usr/include/boost/mpl/list/list20.hpp:18,
  692. from /usr/include/boost/mpl/list.hpp:36,
  693. from /usr/include/boost/math/policies/policy.hpp:9,
  694. from /usr/include/boost/math/special_functions/math_fwd.hpp:29,
  695. from /usr/include/boost/math/special_functions/sign.hpp:17,
  696. from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34,
  697. from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:63,
  698. from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
  699. from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:42,
  700. from /usr/include/boost/lexical_cast.hpp:32,
  701. from /usr/include/boost/program_options/value_semantic.hpp:14,
  702. from /usr/include/boost/program_options/options_description.hpp:13,
  703. from /usr/include/boost/program_options.hpp:15,
  704. from genzehn.cpp:8:
  705. /usr/include/boost/mpl/begin_end_fwd.hpp:22:38: note: ‘boost::mpl::begin’
  706. 22 | template< typename Sequence > struct begin;
  707. | ^~~~~
  708. In file included from /usr/include/boost/range/functions.hpp:18,
  709. from /usr/include/boost/range/iterator_range_core.hpp:38,
  710. from /usr/include/boost/lexical_cast.hpp:30,
  711. from /usr/include/boost/program_options/value_semantic.hpp:14,
  712. from /usr/include/boost/program_options/options_description.hpp:13,
  713. from /usr/include/boost/program_options.hpp:15,
  714. from genzehn.cpp:8:
  715. /usr/include/boost/range/begin.hpp:106:61: note: ‘boost::range_adl_barrier::begin’
  716. 106 | inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type begin( const T& r )
  717. | ^~~~~
  718. genzehn.cpp:169:25: error: ‘end’ was not declared in this scope
  719. 169 | for(auto flag : flags)
  720. | ^~~~~
  721. genzehn.cpp:169:25: note: suggested alternatives:
  722. In file included from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/string:54,
  723. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/locale_classes.h:40,
  724. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/ios_base.h:41,
  725. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ios:42,
  726. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/ostream:38,
  727. from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/iostream:39,
  728. from genzehn.cpp:4:
  729. /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/range_access.h:100:5: note: ‘std::end’
  730. 100 | end(_Tp (&__arr)[_Nm])
  731. | ^~~
  732. In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17,
  733. from /usr/include/boost/mpl/list/list0.hpp:27,
  734. from /usr/include/boost/mpl/list/list10.hpp:18,
  735. from /usr/include/boost/mpl/list/list20.hpp:18,
  736. from /usr/include/boost/mpl/list.hpp:36,
  737. from /usr/include/boost/math/policies/policy.hpp:9,
  738. from /usr/include/boost/math/special_functions/math_fwd.hpp:29,
  739. from /usr/include/boost/math/special_functions/sign.hpp:17,
  740. from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34,
  741. from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:63,
  742. from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
  743. from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:42,
  744. from /usr/include/boost/lexical_cast.hpp:32,
  745. from /usr/include/boost/program_options/value_semantic.hpp:14,
  746. from /usr/include/boost/program_options/options_description.hpp:13,
  747. from /usr/include/boost/program_options.hpp:15,
  748. from genzehn.cpp:8:
  749. /usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note: ‘boost::mpl::end’
  750. 23 | template< typename Sequence > struct end;
  751. | ^~~
  752. In file included from /usr/include/boost/range/functions.hpp:19,
  753. from /usr/include/boost/range/iterator_range_core.hpp:38,
  754. from /usr/include/boost/lexical_cast.hpp:30,
  755. from /usr/include/boost/program_options/value_semantic.hpp:14,
  756. from /usr/include/boost/program_options/options_description.hpp:13,
  757. from /usr/include/boost/program_options.hpp:15,
  758. from genzehn.cpp:8:
  759. /usr/include/boost/range/end.hpp:100:61: note: ‘boost::range_adl_barrier::end’
  760. 100 | inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type end( const T& r )
  761. | ^~~
  762. genzehn.cpp:173:18: error: ‘Zehn_flag_type’ has not been declared
  763. 173 | case Zehn_flag_type::EXECUTABLE_NAME:
  764. | ^~~~~~~~~~~~~~
  765. genzehn.cpp:176:18: error: ‘Zehn_flag_type’ has not been declared
  766. 176 | case Zehn_flag_type::EXECUTABLE_VERSION:
  767. | ^~~~~~~~~~~~~~
  768. genzehn.cpp:179:18: error: ‘Zehn_flag_type’ has not been declared
  769. 179 | case Zehn_flag_type::EXECUTABLE_AUTHOR:
  770. | ^~~~~~~~~~~~~~
  771. genzehn.cpp:182:18: error: ‘Zehn_flag_type’ has not been declared
  772. 182 | case Zehn_flag_type::EXECUTABLE_NOTICE:
  773. | ^~~~~~~~~~~~~~
  774. genzehn.cpp:185:18: error: ‘Zehn_flag_type’ has not been declared
  775. 185 | case Zehn_flag_type::NDLESS_VERSION_MAX:
  776. | ^~~~~~~~~~~~~~
  777. genzehn.cpp:186:18: error: ‘Zehn_flag_type’ has not been declared
  778. 186 | case Zehn_flag_type::NDLESS_VERSION_MIN:
  779. | ^~~~~~~~~~~~~~
  780. genzehn.cpp:187:18: error: ‘Zehn_flag_type’ has not been declared
  781. 187 | case Zehn_flag_type::NDLESS_REVISION_MAX:
  782. | ^~~~~~~~~~~~~~
  783. genzehn.cpp:188:18: error: ‘Zehn_flag_type’ has not been declared
  784. 188 | case Zehn_flag_type::NDLESS_REVISION_MIN:
  785. | ^~~~~~~~~~~~~~
  786. genzehn.cpp:189:18: error: ‘Zehn_flag_type’ has not been declared
  787. 189 | case Zehn_flag_type::RUNS_ON_32MB:
  788. | ^~~~~~~~~~~~~~
  789. genzehn.cpp:190:18: error: ‘Zehn_flag_type’ has not been declared
  790. 190 | case Zehn_flag_type::RUNS_ON_CLICKPAD:
  791. | ^~~~~~~~~~~~~~
  792. genzehn.cpp:191:18: error: ‘Zehn_flag_type’ has not been declared
  793. 191 | case Zehn_flag_type::RUNS_ON_COLOR:
  794. | ^~~~~~~~~~~~~~
  795. genzehn.cpp:192:18: error: ‘Zehn_flag_type’ has not been declared
  796. 192 | case Zehn_flag_type::RUNS_ON_TOUCHPAD:
  797. | ^~~~~~~~~~~~~~
  798. genzehn.cpp:195:18: error: ‘Zehn_flag_type’ has not been declared
  799. 195 | case Zehn_flag_type::RUNS_ON_HWW:
  800. | ^~~~~~~~~~~~~~
  801. genzehn.cpp:199:18: error: ‘Zehn_flag_type’ has not been declared
  802. 199 | case Zehn_flag_type::USES_LCD_BLIT:
  803. | ^~~~~~~~~~~~~~
  804. genzehn.cpp:221:5: error: ‘elfio’ was not declared in this scope; did you mean ‘ELFIO::elfio’?
  805. 221 | elfio input_reader;
  806. | ^~~~~
  807. | ELFIO::elfio
  808. In file included from genzehn.cpp:10:
  809. elfio-3.2/elfio/elfio.hpp:71:7: note: ‘ELFIO::elfio’ declared here
  810. 71 | class elfio
  811. | ^~~~~
  812. genzehn.cpp:223:9: error: ‘input_reader’ was not declared in this scope
  813. 223 | if(!input_reader.load(args["input"].as<std::string>()))
  814. | ^~~~~~~~~~~~
  815. genzehn.cpp:229:8: error: ‘input_reader’ was not declared in this scope
  816. 229 | if(input_reader.get_machine() != EM_ARM)
  817. | ^~~~~~~~~~~~
  818. genzehn.cpp:243:5: error: ‘Zehn_header’ was not declared in this scope; did you mean ‘gz_header’?
  819. 243 | Zehn_header header;
  820. | ^~~~~~~~~~~
  821. | gz_header
  822. genzehn.cpp:245:17: error: ‘Zehn_reloc’ was not declared in this scope
  823. 245 | std::vector<Zehn_reloc> reloc_table;
  824. | ^~~~~~~~~~
  825. genzehn.cpp:245:27: error: template argument 1 is invalid
  826. 245 | std::vector<Zehn_reloc> reloc_table;
  827. | ^
  828. genzehn.cpp:245:27: error: template argument 2 is invalid
  829. genzehn.cpp:246:17: error: ‘Zehn_flag’ was not declared in this scope
  830. 246 | std::vector<Zehn_flag> flag_table;
  831. | ^~~~~~~~~
  832. genzehn.cpp:246:26: error: template argument 1 is invalid
  833. 246 | std::vector<Zehn_flag> flag_table;
  834. | ^
  835. genzehn.cpp:246:26: error: template argument 2 is invalid
  836. genzehn.cpp:251:14: error: ‘Elf_Xword’ was not declared in this scope; did you mean ‘ELFIO::Elf_Xword’?
  837. 251 | std::set<Elf_Xword> undefined_symbols; uint32_t got_address = 0; std::set<uint32_t> undo_relocs;
  838. | ^~~~~~~~~
  839. | ELFIO::Elf_Xword
  840. In file included from elfio-3.2/elfio/elfio.hpp:42,
  841. from genzehn.cpp:10:
  842. elfio-3.2/elfio/elf_types.hpp:54:18: note: ‘ELFIO::Elf_Xword’ declared here
  843. 54 | typedef uint64_t Elf_Xword;
  844. | ^~~~~~~~~
  845. genzehn.cpp:251:23: error: template argument 1 is invalid
  846. 251 | std::set<Elf_Xword> undefined_symbols; uint32_t got_address = 0; std::set<uint32_t> undo_relocs;
  847. | ^
  848. genzehn.cpp:251:23: error: template argument 2 is invalid
  849. genzehn.cpp:251:23: error: template argument 3 is invalid
  850. genzehn.cpp:254:58: error: ‘ZEHN_VERSION’ was not declared in this scope; did you mean ‘ZLIB_VERSION’?
  851. 254 | std::cout << "Generating Zehn file, version " << ZEHN_VERSION << "." << std::endl;
  852. | ^~~~~~~~~~~~
  853. | ZLIB_VERSION
  854. genzehn.cpp:256:5: error: ‘header’ was not declared in this scope; did you mean ‘gz_header’?
  855. 256 | header.signature = ZEHN_SIGNATURE;
  856. | ^~~~~~
  857. | gz_header
  858. genzehn.cpp:256:24: error: ‘ZEHN_SIGNATURE’ was not declared in this scope
  859. 256 | header.signature = ZEHN_SIGNATURE;
  860. | ^~~~~~~~~~~~~~
  861. genzehn.cpp:257:22: error: ‘ZEHN_VERSION’ was not declared in this scope; did you mean ‘ZLIB_VERSION’?
  862. 257 | header.version = ZEHN_VERSION;
  863. | ^~~~~~~~~~~~
  864. | ZLIB_VERSION
  865. genzehn.cpp:258:27: error: ‘input_reader’ was not declared in this scope
  866. 258 | header.entry_offset = input_reader.get_entry();
  867. | ^~~~~~~~~~~~
  868. genzehn.cpp:265:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  869. 265 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NAME, zehn_extra_string(args["name"].as<std::string>(), extra_data)});
  870. | ^~~~~~~~~
  871. genzehn.cpp:265:31: error: ‘Zehn_flag_type’ has not been declared
  872. 265 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NAME, zehn_extra_string(args["name"].as<std::string>(), extra_data)});
  873. | ^~~~~~~~~~~~~~
  874. genzehn.cpp:267:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  875. 267 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_AUTHOR, zehn_extra_string(args["author"].as<std::string>(), extra_data)});
  876. | ^~~~~~~~~
  877. genzehn.cpp:267:31: error: ‘Zehn_flag_type’ has not been declared
  878. 267 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_AUTHOR, zehn_extra_string(args["author"].as<std::string>(), extra_data)});
  879. | ^~~~~~~~~~~~~~
  880. genzehn.cpp:269:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  881. 269 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_VERSION, args["version"].as<uint32_t>()});
  882. | ^~~~~~~~~
  883. genzehn.cpp:269:31: error: ‘Zehn_flag_type’ has not been declared
  884. 269 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_VERSION, args["version"].as<uint32_t>()});
  885. | ^~~~~~~~~~~~~~
  886. genzehn.cpp:271:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  887. 271 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NOTICE, zehn_extra_string(args["notice"].as<std::string>(), extra_data)});
  888. | ^~~~~~~~~
  889. genzehn.cpp:271:31: error: ‘Zehn_flag_type’ has not been declared
  890. 271 | flag_table.push_back({Zehn_flag_type::EXECUTABLE_NOTICE, zehn_extra_string(args["notice"].as<std::string>(), extra_data)});
  891. | ^~~~~~~~~~~~~~
  892. genzehn.cpp:274:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  893. 274 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MIN, args["ndless-min"].as<uint32_t>()});
  894. | ^~~~~~~~~
  895. genzehn.cpp:274:31: error: ‘Zehn_flag_type’ has not been declared
  896. 274 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MIN, args["ndless-min"].as<uint32_t>()});
  897. | ^~~~~~~~~~~~~~
  898. genzehn.cpp:276:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  899. 276 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MIN, args["ndless-rev-min"].as<uint32_t>()});
  900. | ^~~~~~~~~
  901. genzehn.cpp:276:31: error: ‘Zehn_flag_type’ has not been declared
  902. 276 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MIN, args["ndless-rev-min"].as<uint32_t>()});
  903. | ^~~~~~~~~~~~~~
  904. genzehn.cpp:278:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  905. 278 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MAX, args["ndless-max"].as<uint32_t>()});
  906. | ^~~~~~~~~
  907. genzehn.cpp:278:31: error: ‘Zehn_flag_type’ has not been declared
  908. 278 | flag_table.push_back({Zehn_flag_type::NDLESS_VERSION_MAX, args["ndless-max"].as<uint32_t>()});
  909. | ^~~~~~~~~~~~~~
  910. genzehn.cpp:280:20: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  911. 280 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MAX, args["ndless-rev-max"].as<uint32_t>()});
  912. | ^~~~~~~~~
  913. genzehn.cpp:280:31: error: ‘Zehn_flag_type’ has not been declared
  914. 280 | flag_table.push_back({Zehn_flag_type::NDLESS_REVISION_MAX, args["ndless-rev-max"].as<uint32_t>()});
  915. | ^~~~~~~~~~~~~~
  916. genzehn.cpp:282:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  917. 282 | flag_table.push_back({Zehn_flag_type::RUNS_ON_COLOR, args["color-support"].as<bool>()});
  918. | ^~~~~~~~~
  919. genzehn.cpp:282:27: error: ‘Zehn_flag_type’ has not been declared
  920. 282 | flag_table.push_back({Zehn_flag_type::RUNS_ON_COLOR, args["color-support"].as<bool>()});
  921. | ^~~~~~~~~~~~~~
  922. genzehn.cpp:283:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  923. 283 | flag_table.push_back({Zehn_flag_type::RUNS_ON_CLICKPAD, args["clickpad-support"].as<bool>()});
  924. | ^~~~~~~~~
  925. genzehn.cpp:283:27: error: ‘Zehn_flag_type’ has not been declared
  926. 283 | flag_table.push_back({Zehn_flag_type::RUNS_ON_CLICKPAD, args["clickpad-support"].as<bool>()});
  927. | ^~~~~~~~~~~~~~
  928. genzehn.cpp:284:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  929. 284 | flag_table.push_back({Zehn_flag_type::RUNS_ON_TOUCHPAD, args["touchpad-support"].as<bool>()});
  930. | ^~~~~~~~~
  931. genzehn.cpp:284:27: error: ‘Zehn_flag_type’ has not been declared
  932. 284 | flag_table.push_back({Zehn_flag_type::RUNS_ON_TOUCHPAD, args["touchpad-support"].as<bool>()});
  933. | ^~~~~~~~~~~~~~
  934. genzehn.cpp:285:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  935. 285 | flag_table.push_back({Zehn_flag_type::RUNS_ON_32MB, args["32MB-support"].as<bool>()});
  936. | ^~~~~~~~~
  937. genzehn.cpp:285:27: error: ‘Zehn_flag_type’ has not been declared
  938. 285 | flag_table.push_back({Zehn_flag_type::RUNS_ON_32MB, args["32MB-support"].as<bool>()});
  939. | ^~~~~~~~~~~~~~
  940. genzehn.cpp:293:9: error: ‘section’ was not declared in this scope; did you mean ‘ELFIO::section’?
  941. 293 | section *s = input_reader.sections[i];
  942. | ^~~~~~~
  943. | ELFIO::section
  944. In file included from elfio-3.2/elfio/elfio.hpp:45,
  945. from genzehn.cpp:10:
  946. elfio-3.2/elfio/elfio_section.hpp:31:7: note: ‘ELFIO::section’ declared here
  947. 31 | class section
  948. | ^~~~~~~
  949. genzehn.cpp:293:18: error: ‘s’ was not declared in this scope
  950. 293 | section *s = input_reader.sections[i];
  951. | ^
  952. genzehn.cpp:300:13: error: ‘symbol_section_accessor’ was not declared in this scope; did you mean ‘ELFIO::symbol_section_accessor’?
  953. 300 | symbol_section_accessor ssa(input_reader, s);
  954. | ^~~~~~~~~~~~~~~~~~~~~~~
  955. | ELFIO::symbol_section_accessor
  956. In file included from elfio-3.2/elfio/elfio.hpp:839,
  957. from genzehn.cpp:10:
  958. elfio-3.2/elfio/elfio_symbols.hpp:29:7: note: ‘ELFIO::symbol_section_accessor’ declared here
  959. 29 | class symbol_section_accessor
  960. | ^~~~~~~~~~~~~~~~~~~~~~~
  961. genzehn.cpp:301:22: error: expected ‘;’ before ‘count’
  962. 301 | Elf_Xword count = ssa.get_symbols_num();
  963. | ^~~~~~
  964. | ;
  965. genzehn.cpp:302:26: error: expected ‘;’ before ‘i’
  966. 302 | for(Elf_Xword i = 0; i < count; ++i)
  967. | ^~
  968. | ;
  969. genzehn.cpp:302:38: error: ‘count’ was not declared in this scope; did you mean ‘std::count’?
  970. 302 | for(Elf_Xword i = 0; i < count; ++i)
  971. | ^~~~~
  972. | std::count
  973. In file included from /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/algorithm:62,
  974. from genzehn.cpp:5:
  975. /usr/lib/gcc/x86_64-pc-cygwin/10/include/c++/bits/stl_algo.h:4077:5: note: ‘std::count’ declared here
  976. 4077 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
  977. | ^~~~~
  978. genzehn.cpp:304:17: error: ‘Elf_Half’ was not declared in this scope; did you mean ‘ELFIO::Elf_Half’?
  979. 304 | Elf_Half section; std::string name; unsigned char bind, type;
  980. | ^~~~~~~~
  981. | ELFIO::Elf_Half
  982. In file included from elfio-3.2/elfio/elfio.hpp:42,
  983. from genzehn.cpp:10:
  984. elfio-3.2/elfio/elf_types.hpp:51:18: note: ‘ELFIO::Elf_Half’ declared here
  985. 51 | typedef uint16_t Elf_Half;
  986. | ^~~~~~~~
  987. genzehn.cpp:305:17: error: ‘Elf64_Addr’ was not declared in this scope; did you mean ‘ELFIO::Elf64_Addr’?
  988. 305 | Elf64_Addr u1; Elf_Xword u2; unsigned char u3; //Unused
  989. | ^~~~~~~~~~
  990. | ELFIO::Elf64_Addr
  991. In file included from elfio-3.2/elfio/elfio.hpp:42,
  992. from genzehn.cpp:10:
  993. elfio-3.2/elfio/elf_types.hpp:59:18: note: ‘ELFIO::Elf64_Addr’ declared here
  994. 59 | typedef uint64_t Elf64_Addr;
  995. | ^~~~~~~~~~
  996. genzehn.cpp:305:41: error: expected ‘;’ before ‘u2’
  997. 305 | Elf64_Addr u1; Elf_Xword u2; unsigned char u3; //Unused
  998. | ^~~
  999. | ;
  1000. genzehn.cpp:306:21: error: ‘ssa’ was not declared in this scope
  1001. 306 | if(!ssa.get_symbol(i, name, u1, u2, bind, type, section, u3))
  1002. | ^~~
  1003. genzehn.cpp:306:45: error: ‘u1’ was not declared in this scope; did you mean ‘u3’?
  1004. 306 | if(!ssa.get_symbol(i, name, u1, u2, bind, type, section, u3))
  1005. | ^~
  1006. | u3
  1007. genzehn.cpp:306:49: error: ‘u2’ was not declared in this scope; did you mean ‘u3’?
  1008. 306 | if(!ssa.get_symbol(i, name, u1, u2, bind, type, section, u3))
  1009. | ^~
  1010. | u3
  1011. genzehn.cpp:323:39: error: request for member ‘insert’ in ‘undefined_symbols’, which is of non-class type ‘int’
  1012. 323 | undefined_symbols.insert(i);
  1013. | ^~~~~~
  1014. genzehn.cpp:404:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  1015. 404 | flag_table.push_back({Zehn_flag_type::USES_LCD_BLIT, uses_lcd_blit});
  1016. | ^~~~~~~~~
  1017. genzehn.cpp:404:27: error: ‘Zehn_flag_type’ has not been declared
  1018. 404 | flag_table.push_back({Zehn_flag_type::USES_LCD_BLIT, uses_lcd_blit});
  1019. | ^~~~~~~~~~~~~~
  1020. genzehn.cpp:414:16: error: request for member ‘push_back’ in ‘flag_table’, which is of non-class type ‘int’
  1021. 414 | flag_table.push_back({Zehn_flag_type::RUNS_ON_HWW, hww_compat});
  1022. | ^~~~~~~~~
  1023. genzehn.cpp:414:27: error: ‘Zehn_flag_type’ has not been declared
  1024. 414 | flag_table.push_back({Zehn_flag_type::RUNS_ON_HWW, hww_compat});
  1025. | ^~~~~~~~~~~~~~
  1026. genzehn.cpp:422:9: error: ‘section’ was not declared in this scope; did you mean ‘ELFIO::section’?
  1027. 422 | section *s = input_reader.sections[i];
  1028. | ^~~~~~~
  1029. | ELFIO::section
  1030. In file included from elfio-3.2/elfio/elfio.hpp:45,
  1031. from genzehn.cpp:10:
  1032. elfio-3.2/elfio/elfio_section.hpp:31:7: note: ‘ELFIO::section’ declared here
  1033. 31 | class section
  1034. | ^~~~~~~
  1035. genzehn.cpp:422:18: error: ‘s’ was not declared in this scope
  1036. 422 | section *s = input_reader.sections[i];
  1037. | ^
  1038. genzehn.cpp:441:25: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  1039. 441 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE_GOT, static_cast<uint32_t>(s->get_address())});
  1040. | ^~~~~~~~~
  1041. genzehn.cpp:441:36: error: ‘Zehn_reloc_type’ has not been declared
  1042. 441 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE_GOT, static_cast<uint32_t>(s->get_address())});
  1043. | ^~~~~~~~~~~~~~~
  1044. genzehn.cpp:474:61: error: ‘Elf32_Rel’ was not declared in this scope; did you mean ‘ELFIO::Elf32_Rel’?
  1045. 474 | unsigned int entries_count = s->get_size() / sizeof(Elf32_Rel);
  1046. | ^~~~~~~~~
  1047. | ELFIO::Elf32_Rel
  1048. In file included from elfio-3.2/elfio/elfio.hpp:42,
  1049. from genzehn.cpp:10:
  1050. elfio-3.2/elfio/elf_types.hpp:699:8: note: ‘ELFIO::Elf32_Rel’ declared here
  1051. 699 | struct Elf32_Rel {
  1052. | ^~~~~~~~~
  1053. genzehn.cpp:480:15: error: ‘Elf32_Rel’ does not name a type; did you mean ‘Elf32_Half’?
  1054. 480 | const Elf32_Rel *entries = reinterpret_cast<const Elf32_Rel*>(s->get_data()), *entries_end = entries + entries_count;
  1055. | ^~~~~~~~~
  1056. | Elf32_Half
  1057. genzehn.cpp:481:19: error: ‘Elf32_Rel’ does not name a type; did you mean ‘Elf32_Half’?
  1058. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  1059. | ^~~~~~~~~
  1060. | Elf32_Half
  1061. genzehn.cpp:481:46: error: expected ‘;’ before ‘entry’
  1062. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  1063. | ^~~~~~
  1064. | ;
  1065. genzehn.cpp:481:47: error: ‘entry’ was not declared in this scope
  1066. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  1067. | ^~~~~
  1068. genzehn.cpp:481:55: error: ‘entries_end’ was not declared in this scope; did you mean ‘entries_count’?
  1069. 481 | for(const Elf32_Rel *entry = entries; entry < entries_end; ++entry)
  1070. | ^~~~~~~~~~~
  1071. | entries_count
  1072. genzehn.cpp:483:34: error: request for member ‘find’ in ‘undefined_symbols’, which is of non-class type ‘int’
  1073. 483 | if(undefined_symbols.find(ELF32_R_SYM(entry->r_info)) != undefined_symbols.end())
  1074. | ^~~~
  1075. genzehn.cpp:483:88: error: request for member ‘end’ in ‘undefined_symbols’, which is of non-class type ‘int’
  1076. 483 | if(undefined_symbols.find(ELF32_R_SYM(entry->r_info)) != undefined_symbols.end())
  1077. | ^~~
  1078. genzehn.cpp:521:37: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  1079. 521 | reloc_table.push_back({Zehn_reloc_type::UNALIGNED_RELOC, 0});
  1080. | ^~~~~~~~~
  1081. genzehn.cpp:521:48: error: ‘Zehn_reloc_type’ has not been declared
  1082. 521 | reloc_table.push_back({Zehn_reloc_type::UNALIGNED_RELOC, 0});
  1083. | ^~~~~~~~~~~~~~~
  1084. genzehn.cpp:527:29: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  1085. 527 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE, static_cast<uint32_t>(entry->r_offset)});
  1086. | ^~~~~~~~~
  1087. genzehn.cpp:527:40: error: ‘Zehn_reloc_type’ has not been declared
  1088. 527 | reloc_table.push_back({Zehn_reloc_type::ADD_BASE, static_cast<uint32_t>(entry->r_offset)});
  1089. | ^~~~~~~~~~~~~~~
  1090. genzehn.cpp:535:21: error: request for member ‘push_back’ in ‘reloc_table’, which is of non-class type ‘int’
  1091. 535 | reloc_table.push_back({Zehn_reloc_type::SET_ZERO, offset});
  1092. | ^~~~~~~~~
  1093. genzehn.cpp:535:32: error: ‘Zehn_reloc_type’ has not been declared
  1094. 535 | reloc_table.push_back({Zehn_reloc_type::SET_ZERO, offset});
  1095. | ^~~~~~~~~~~~~~~
  1096. genzehn.cpp:559:21: error: request for member ‘insert’ in ‘reloc_table’, which is of non-class type ‘int’
  1097. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  1098. | ^~~~~~
  1099. genzehn.cpp:559:40: error: request for member ‘begin’ in ‘reloc_table’, which is of non-class type ‘int’
  1100. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  1101. | ^~~~~
  1102. genzehn.cpp:559:50: error: ‘Zehn_reloc_type’ has not been declared
  1103. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  1104. | ^~~~~~~~~~~~~~~
  1105. genzehn.cpp:559:106: error: ‘Zehn_compress_type’ has not been declared
  1106. 559 | reloc_table.insert(reloc_table.begin(), {Zehn_reloc_type::FILE_COMPRESSED, static_cast<uint32_t>(Zehn_compress_type::ZLIB)});
  1107. | ^~~~~~~~~~~~~~~~~~
  1108. genzehn.cpp:565:38: error: request for member ‘size’ in ‘reloc_table’, which is of non-class type ‘int’
  1109. 565 | header.reloc_count = reloc_table.size();
  1110. | ^~~~
  1111. genzehn.cpp:566:36: error: request for member ‘size’ in ‘flag_table’, which is of non-class type ‘int’
  1112. 566 | header.flag_count = flag_table.size();
  1113. | ^~~~
  1114. genzehn.cpp:570:35: error: request for member ‘size’ in ‘reloc_table’, which is of non-class type ‘int’
  1115. 570 | + reloc_table.size() * sizeof(Zehn_reloc)
  1116. | ^~~~
  1117. genzehn.cpp:571:34: error: request for member ‘size’ in ‘flag_table’, which is of non-class type ‘int’
  1118. 571 | + flag_table.size() * sizeof(Zehn_flag)
  1119. | ^~~~
  1120. genzehn.cpp:598:67: error: request for member ‘data’ in ‘reloc_table’, which is of non-class type ‘int’
  1121. 598 | output_writer.write(reinterpret_cast<const char*>(reloc_table.data()), reloc_table.size() * sizeof(Zehn_reloc));
  1122. | ^~~~
  1123. genzehn.cpp:598:88: error: request for member ‘size’ in ‘reloc_table’, which is of non-class type ‘int’
  1124. 598 | output_writer.write(reinterpret_cast<const char*>(reloc_table.data()), reloc_table.size() * sizeof(Zehn_reloc));
  1125. | ^~~~
  1126. genzehn.cpp:599:66: error: request for member ‘data’ in ‘flag_table’, which is of non-class type ‘int’
  1127. 599 | output_writer.write(reinterpret_cast<const char*>(flag_table.data()), flag_table.size() * sizeof(Zehn_flag));
  1128. | ^~~~
  1129. genzehn.cpp:599:86: error: request for member ‘size’ in ‘flag_table’, which is of non-class type ‘int’
  1130. 599 | output_writer.write(reinterpret_cast<const char*>(flag_table.data()), flag_table.size() * sizeof(Zehn_flag));
  1131. | ^~~~
  1132. make[3]: *** [Makefile:4: ../../bin/genzehn] Error 1
  1133. make[3]: Leaving directory '/Ndless/ndless-sdk/tools/genzehn'
  1134. make[2]: *** [Makefile:4: all] Error 1
  1135. make[2]: Leaving directory '/Ndless/ndless-sdk/tools'
  1136. make[1]: *** [Makefile:14: build-tools] Error 2
  1137. make[1]: Leaving directory '/Ndless/ndless-sdk'
  1138. make: *** [Makefile:19: build-ndless-sdk] Error 2
  1139.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement