Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ make
- [ 16%] Built target LIEF
- [ 20%] Built target PPK_ASSERT
- [ 48%] Built target Zycore
- [ 87%] Built target Zydis
- [ 89%] Building CXX object CMakeFiles/nvlax_encode.dir/src/lax_encode.cc.o
- /home/pavlo/nvlax/src/lax_encode.cc: In function ‘void patch_linux(LIEF::ELF::Binary*)’:
- /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 ‘->’ ?)
- 45 | auto v_func_bytes = bin->get_content_from_virtual_address(f_nvenc_ci.value(), 0x260);
- | ^~~~~
- In file included from /home/pavlo/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
- from /home/pavlo/nvlax/build/_deps/zydis-src/include/Zydis/Decoder.h:38,
- from /home/pavlo/nvlax/build/_deps/zydis-src/include/Zydis/Zydis.h:39,
- from /home/pavlo/nvlax/src/lax_encode.cc:17:
- /home/pavlo/nvlax/src/lax_encode.cc:51:29: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
- 51 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
- 82 | (!((status) & 0x80000000u))
- | ^~~~~~
- /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 ‘->’ ?)
- 53 | offset = f_nvenc_ci.value() +
- | ^~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:55:32: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 55 | instr.operands[1].mem.disp.value;
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:59:63: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 59 | if (instr.mnemonic == ZYDIS_MNEMONIC_MOV && instr.operands[0].mem.disp.value / 8 == 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]
- 76 | uint8_t *data = v_func_bytes.data();
- | ~~~~~~~~~~~~~~~~~^~
- | |
- | tcb::span<const unsigned char, 18446744073709551615>::pointer {aka const unsigned char*}
- /home/pavlo/nvlax/src/lax_encode.cc:82:29: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
- 82 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:82:16: note: in expansion of macro ‘ZYAN_SUCCESS’
- 82 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:84:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 84 | instr.operands[0].reg.value == ZYDIS_REGISTER_EAX &&
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:85:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 85 | instr.operands[1].reg.value == ZYDIS_REGISTER_EAX &&
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc: In function ‘void patch_windows(LIEF::PE::Binary*)’:
- /home/pavlo/nvlax/src/lax_encode.cc:115:36: error: ‘MACHINE_TYPES’ has not been declared
- 115 | if (bin->header().machine() == MACHINE_TYPES::IMAGE_FILE_MACHINE_AMD64) {
- | ^~~~~~~~~~~~~
- In file included from /home/pavlo/nvlax/src/lax_encode.cc:19:
- /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 ‘->’ ?)
- 116 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI64.dll");
- | ^~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
- 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
- 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
- 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
- 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
- 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
- | ^~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:116:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
- 116 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI64.dll");
- | ^~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:119:41: error: ‘MACHINE_TYPES’ has not been declared
- 119 | else if (bin->header().machine() == MACHINE_TYPES::IMAGE_FILE_MACHINE_I386) {
- | ^~~~~~~~~~~~~
- /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 ‘->’ ?)
- 120 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI.dll");
- | ^~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
- 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
- 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
- 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
- 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
- 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
- | ^~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:120:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
- 120 | PPK_ASSERT_ERROR(bin->get_export().name() == "nvEncodeAPI.dll");
- | ^~~~~~~~~~~~~~~~
- /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 ‘->’ ?)
- 128 | std::cout << "[+] " << bin->get_export().name() << "\n";
- | ^~~~
- /home/pavlo/nvlax/src/lax_encode.cc: In lambda function:
- /home/pavlo/nvlax/src/lax_encode.cc:145:39: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
- 145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
- 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
- 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
- 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
- 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
- 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
- | ^~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:145:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
- 145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
- | ^~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:145:26: note: in expansion of macro ‘ZYAN_SUCCESS’
- 145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:154:71: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 154 | &instr.operands[0],
- | ^~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:127:56: note: in definition of macro ‘PPK_ASSERT_LIKELY’
- 127 | #define PPK_ASSERT_LIKELY(arg) __builtin_expect(!!(arg), !0)
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:605:50: note: in expansion of macro ‘PPK_ASSERT_3’
- 605 | #define PPK_ASSERT_2(level, expression, ...) PPK_ASSERT_3(level, expression, __VA_ARGS__)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:169:44: note: in expansion of macro ‘PPK_ASSERT_2’
- 169 | #define PPK_ASSERT_1(level, expression) PPK_ASSERT_2(level, expression, PPK_ASSERT_NULLPTR)
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:87:39: note: in expansion of macro ‘PPK_ASSERT_1’
- 87 | #define PPK_ASSERT_JOIN__(lhs, rhs) lhs##rhs
- | ^~~
- /home/pavlo/nvlax/build/_deps/ppk_assert-src/src/ppk_assert.h:73:46: note: in expansion of macro ‘PPK_ASSERT_’
- 73 | #define PPK_ASSERT_ERROR(...) PPK_ASSERT_(ppk::assert::implementation::AssertLevel::Error, __VA_ARGS__)
- | ^~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:153:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
- 153 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instr,
- | ^~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:153:26: note: in expansion of macro ‘ZYAN_SUCCESS’
- 153 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instr,
- | ^~~~~~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc: In function ‘void patch_windows(LIEF::PE::Binary*)’:
- /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 ‘->’ ?)
- 164 | auto export_entries = bin->get_export().entries();
- | ^~~~~~~
- /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]
- 176 | uint8_t *data = v_func_bytes.data();
- | ~~~~~~~~~~~~~~~~~^~
- | |
- | tcb::span<const unsigned char, 18446744073709551615>::pointer {aka const unsigned char*}
- /home/pavlo/nvlax/src/lax_encode.cc:183:33: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
- 183 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
- 82 | (!((status) & 0x80000000u))
- | ^~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:185:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 185 | instr.operands[1].type == ZYDIS_OPERAND_TYPE_MEMORY)
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:189:34: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 189 | instr.operands[1].mem.disp.value;
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:194:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 194 | instr.operands[0].mem.disp.value / 8 == 30)
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:206:33: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
- 206 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
- 82 | (!((status) & 0x80000000u))
- | ^~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:209:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 209 | instr.operands[0].mem.base == ZYDIS_REGISTER_ESI &&
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:210:27: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 210 | instr.operands[0].mem.disp.value / 4 == 31)
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:213:68: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 213 | offset = follow_thunk(bin->rva_to_offset(instr.operands[1].imm.value.u));
- | ^~~~~~~~
- /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]
- 229 | uint8_t *data = v_func_bytes.data();
- | ~~~~~~~~~~~~~~~~~^~
- | |
- | tcb::span<const unsigned char, 18446744073709551615>::pointer {aka const unsigned char*}
- /home/pavlo/nvlax/src/lax_encode.cc:234:29: error: ‘ZydisDecoderDecodeBuffer’ was not declared in this scope; did you mean ‘ZydisDecoderDecodeFull’?
- 234 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/pavlo/nvlax/build/_deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
- 82 | (!((status) & 0x80000000u))
- | ^~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:236:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 236 | instr.operands[0].reg.value == ZYDIS_REGISTER_EAX &&
- | ^~~~~~~~
- /home/pavlo/nvlax/src/lax_encode.cc:237:23: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction_’} has no member named ‘operands’
- 237 | instr.operands[1].reg.value == ZYDIS_REGISTER_EAX &&
- | ^~~~~~~~
- make[2]: *** [CMakeFiles/nvlax_encode.dir/build.make:90: CMakeFiles/nvlax_encode.dir/src/lax_encode.cc.o] Помилка 1
- make[1]: *** [CMakeFiles/Makefile2:206: CMakeFiles/nvlax_encode.dir/all] Помилка 2
- make: *** [Makefile:136: all] Помилка 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement