Advertisement
Guest User

Untitled

a guest
Jul 29th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.51 KB | None | 0 0
  1. $ make
  2. [ 16%] Built target LIEF
  3. [ 20%] Built target PPK_ASSERT
  4. [ 48%] Built target Zycore
  5. [ 87%] Built target Zydis
  6. [ 89%] Building CXX object CMakeFiles/nvlax_encode.dir/src/lax_encode.cc.o
  7. /home/pavlo/nvlax/src/lax_encode.cc: In function ‘void patch_linux(LIEF::ELF::Binary*)’:
  8. /home/pavlo/nvlax/src/lax_encode.cc:45:78: error: request for member ‘value’ in ‘f_nvenc_ci’, which is of pointer type ‘LIEF::Symbol*’ (maybe you meant to use ‘->’ ?)
  9. 45 | auto v_func_bytes = bin->get_content_from_virtual_address(f_nvenc_ci.value(), 0x260);
  10. | ^~~~~
  11. In file included from /home/pavlo/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
  12. from /home/pavlo/nvlax/build/_deps/zydis-src/include/Zydis/Decoder.h:38,
  13. from /home/pavlo/nvlax/build/_deps/zydis-src/include/Zydis/Zydis.h:39,
  14. from /home/pavlo/nvlax/src/lax_encode.cc:17:
  15. /home/pavlo/nvlax/src/lax_encode.cc:51:29: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
  16. 51 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
  17. | ^~~~~~~~~~~~~~~~~~~~~~~~
  18. /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
  19. 82 | (!((status) & 0x80000000u))
  20. | ^~~~~~
  21. /home/pavlo/nvlax/src/lax_encode.cc:53:37: error: request for member ‘value’ in ‘f_nvenc_ci’, which is of pointer type ‘LIEF::Symbol*’ (maybe you meant to use ‘->’ ?)
  22. 53 | offset = f_nvenc_ci.value() +
  23. | ^~~~~
  24. /home/pavlo/nvlax/src/lax_encode.cc:55:32: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  25. 55 | instr.operands[1].mem.disp.value;
  26. | ^~~~~~~~
  27. /home/pavlo/nvlax/src/lax_encode.cc:59:63: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  28. 59 | if (instr.mnemonic == ZYDIS_MNEMONIC_MOV && instr.operands[0].mem.disp.value / 8 == 30) {
  29. | ^~~~~~~~
  30. /home/pavlo/nvlax/src/lax_encode.cc:76:42: error: invalid conversion from ‘tcb::span<const unsigned char, 18446744073709551615>::pointer’ {aka ‘const unsigned char*’} to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive]
  31. 76 | uint8_t *data = v_func_bytes.data();
  32. | ~~~~~~~~~~~~~~~~~^~
  33. | |
  34. | tcb::span<const unsigned char, 18446744073709551615>::pointer {aka const unsigned char*}
  35. /home/pavlo/nvlax/src/lax_encode.cc:82:29: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
  36. 82 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
  37. | ^~~~~~~~~~~~~~~~~~~~~~~~
  38. /home/pavlo/nvlax/src/lax_encode.cc:82:16: note: in expansion of macro ‘ZYAN_SUCCESS’
  39. 82 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
  40. | ^~~~~~~~~~~~
  41. /home/pavlo/nvlax/src/lax_encode.cc:84:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  42. 84 | instr.operands[0].reg.value == ZYDIS_REGISTER_EAX &&
  43. | ^~~~~~~~
  44. /home/pavlo/nvlax/src/lax_encode.cc:85:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  45. 85 | instr.operands[1].reg.value == ZYDIS_REGISTER_EAX &&
  46. | ^~~~~~~~
  47. /home/pavlo/nvlax/src/lax_encode.cc: In function ‘void patch_windows(LIEF::PE::Binary*)’:
  48. /home/pavlo/nvlax/src/lax_encode.cc:115:36: error: ‘MACHINE_TYPES’ has not been declared
  49. 115 | if (bin->header().machine() == MACHINE_TYPES::IMAGE_FILE_MACHINE_AMD64) {
  50. | ^~~~~~~~~~~~~
  51. In file included from /home/pavlo/nvlax/src/lax_encode.cc:19:
  52. /home/pavlo/nvlax/src/lax_encode.cc:116:44: error: request for member ‘name’ in ‘bin->LIEF::PE::Binary::get_export()’, which is of pointer type ‘LIEF::PE::Export*’ (maybe you meant to use ‘->’ ?)
  53. 116 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI64.dll");
  54. | ^~~~
  55. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
  56. 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
  57. | ^~~
  58. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
  59. 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
  60. | ^~~~~~~~~~~~
  61. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
  62. 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
  63. | ^~~~~~~~~~~~
  64. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
  65. 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
  66. | ^~~
  67. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
  68. 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
  69. | ^~~~~~~~~~~
  70. /home/pavlo/nvlax/src/lax_encode.cc:116:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
  71. 116 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI64.dll");
  72. | ^~~~~~~~~~~~~~~~
  73. /home/pavlo/nvlax/src/lax_encode.cc:119:41: error: ‘MACHINE_TYPES’ has not been declared
  74. 119 | else if (bin->header().machine() == MACHINE_TYPES::IMAGE_FILE_MACHINE_I386) {
  75. | ^~~~~~~~~~~~~
  76. /home/pavlo/nvlax/src/lax_encode.cc:120:44: error: request for member ‘name’ in ‘bin->LIEF::PE::Binary::get_export()’, which is of pointer type ‘LIEF::PE::Export*’ (maybe you meant to use ‘->’ ?)
  77. 120 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI.dll");
  78. | ^~~~
  79. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
  80. 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
  81. | ^~~
  82. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
  83. 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
  84. | ^~~~~~~~~~~~
  85. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
  86. 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
  87. | ^~~~~~~~~~~~
  88. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
  89. 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
  90. | ^~~
  91. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
  92. 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
  93. | ^~~~~~~~~~~
  94. /home/pavlo/nvlax/src/lax_encode.cc:120:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
  95. 120 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI.dll");
  96. | ^~~~~~~~~~~~~~~~
  97. /home/pavlo/nvlax/src/lax_encode.cc:128:46: error: request for member ‘name’ in ‘bin->LIEF::PE::Binary::get_export()’, which is of pointer type ‘LIEF::PE::Export*’ (maybe you meant to use ‘->’ ?)
  98. 128 | std::cout << "[+] " << bin->get_export().name() << "\n";
  99. | ^~~~
  100. /home/pavlo/nvlax/src/lax_encode.cc: In lambda function:
  101. /home/pavlo/nvlax/src/lax_encode.cc:145:39: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
  102. 145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
  103. | ^~~~~~~~~~~~~~~~~~~~~~~~
  104. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
  105. 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
  106. | ^~~
  107. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
  108. 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
  109. | ^~~~~~~~~~~~
  110. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
  111. 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
  112. | ^~~~~~~~~~~~
  113. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
  114. 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
  115. | ^~~
  116. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
  117. 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
  118. | ^~~~~~~~~~~
  119. /home/pavlo/nvlax/src/lax_encode.cc:145:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
  120. 145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
  121. | ^~~~~~~~~~~~~~~~
  122. /home/pavlo/nvlax/src/lax_encode.cc:145:26: note: in expansion of macro ‘ZYAN_SUCCESS’
  123. 145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
  124. | ^~~~~~~~~~~~
  125. /home/pavlo/nvlax/src/lax_encode.cc:154:71: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  126. 154 | &instr.operands[0],
  127. | ^~~~~~~~
  128. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
  129. 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
  130. | ^~~
  131. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
  132. 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
  133. | ^~~~~~~~~~~~
  134. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
  135. 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
  136. | ^~~~~~~~~~~~
  137. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
  138. 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
  139. | ^~~
  140. /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
  141. 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
  142. | ^~~~~~~~~~~
  143. /home/pavlo/nvlax/src/lax_encode.cc:153:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
  144. 153 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instr,
  145. | ^~~~~~~~~~~~~~~~
  146. /home/pavlo/nvlax/src/lax_encode.cc:153:26: note: in expansion of macro ‘ZYAN_SUCCESS’
  147. 153 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instr,
  148. | ^~~~~~~~~~~~
  149. /home/pavlo/nvlax/src/lax_encode.cc: In function ‘void patch_windows(LIEF::PE::Binary*)’:
  150. /home/pavlo/nvlax/src/lax_encode.cc:164:49: error: request for member ‘entries’ in ‘bin->LIEF::PE::Binary::get_export()’, which is of pointer type ‘LIEF::PE::Export*’ (maybe you meant to use ‘->’ ?)
  151. 164 | auto export_entries = bin->get_export().entries();
  152. | ^~~~~~~
  153. /home/pavlo/nvlax/src/lax_encode.cc:176:42: error: invalid conversion from ‘tcb::span<const unsigned char, 18446744073709551615>::pointer’ {aka ‘const unsigned char*’} to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive]
  154. 176 | uint8_t *data = v_func_bytes.data();
  155. | ~~~~~~~~~~~~~~~~~^~
  156. | |
  157. | tcb::span<const unsigned char, 18446744073709551615>::pointer {aka const unsigned char*}
  158. /home/pavlo/nvlax/src/lax_encode.cc:183:33: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
  159. 183 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
  160. | ^~~~~~~~~~~~~~~~~~~~~~~~
  161. /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
  162. 82 | (!((status) & 0x80000000u))
  163. | ^~~~~~
  164. /home/pavlo/nvlax/src/lax_encode.cc:185:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  165. 185 | instr.operands[1].type == ZYDIS_OPERAND_TYPE_MEMORY)
  166. | ^~~~~~~~
  167. /home/pavlo/nvlax/src/lax_encode.cc:189:34: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  168. 189 | instr.operands[1].mem.disp.value;
  169. | ^~~~~~~~
  170. /home/pavlo/nvlax/src/lax_encode.cc:194:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  171. 194 | instr.operands[0].mem.disp.value / 8 == 30)
  172. | ^~~~~~~~
  173. /home/pavlo/nvlax/src/lax_encode.cc:206:33: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
  174. 206 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
  175. | ^~~~~~~~~~~~~~~~~~~~~~~~
  176. /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
  177. 82 | (!((status) & 0x80000000u))
  178. | ^~~~~~
  179. /home/pavlo/nvlax/src/lax_encode.cc:209:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  180. 209 | instr.operands[0].mem.base == ZYDIS_REGISTER_ESI &&
  181. | ^~~~~~~~
  182. /home/pavlo/nvlax/src/lax_encode.cc:210:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  183. 210 | instr.operands[0].mem.disp.value / 4 == 31)
  184. | ^~~~~~~~
  185. /home/pavlo/nvlax/src/lax_encode.cc:213:68: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  186. 213 | offset = follow_thunk(bin->rva_to_offset(instr.operands[1].imm.value.u));
  187. | ^~~~~~~~
  188. /home/pavlo/nvlax/src/lax_encode.cc:229:42: error: invalid conversion from ‘tcb::span<const unsigned char, 18446744073709551615>::pointer’ {aka ‘const unsigned char*’} to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive]
  189. 229 | uint8_t *data = v_func_bytes.data();
  190. | ~~~~~~~~~~~~~~~~~^~
  191. | |
  192. | tcb::span<const unsigned char, 18446744073709551615>::pointer {aka const unsigned char*}
  193. /home/pavlo/nvlax/src/lax_encode.cc:234:29: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
  194. 234 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
  195. | ^~~~~~~~~~~~~~~~~~~~~~~~
  196. /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
  197. 82 | (!((status) & 0x80000000u))
  198. | ^~~~~~
  199. /home/pavlo/nvlax/src/lax_encode.cc:236:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  200. 236 | instr.operands[0].reg.value == ZYDIS_REGISTER_EAX &&
  201. | ^~~~~~~~
  202. /home/pavlo/nvlax/src/lax_encode.cc:237:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
  203. 237 | instr.operands[1].reg.value == ZYDIS_REGISTER_EAX &&
  204. | ^~~~~~~~
  205. make[2]: *** [CMakeFiles/nvlax_encode.dir/build.make:90: CMakeFiles/nvlax_encode.dir/src/lax_encode.cc.o] Помилка 1
  206. make[1]: *** [CMakeFiles/Makefile2:206: CMakeFiles/nvlax_encode.dir/all] Помилка 2
  207. make: *** [Makefile:136: all] Помилка 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement