-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors while building #19
Comments
Hi @32bitx64bit , Please close this. You only need to apply the patch from @tytan652 : #11 (comment) |
Why close, @lars18th? The version from this git still fails to build, and external patches need to be applied. The issue will be fixed, when the fix lands in the repository... Or, some fork takes over, cause, apparently, this one seems rather abandoned. Besides, even with the patch, it still fails, with:
|
@Cat-Lady with the patch applied you need to build with version 12 of GCC compiler (you need to have those installed as well) Reference: https://aur.archlinux.org/packages/nvlax-git?O=10#comment-918104 Except it won't help with the 555 driver... |
Forgot about this issue |
Im on Linux mint 20.3
heres the error
/home/gavin/nvlax/src/lax_encode.cc: In function ‘void patch_linux(LIEF::ELF::Binary*)’:
/home/gavin/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 | _func_bytes = bin->get_content_from_virtual_address(f_nvenc_ci.value(), 0x260);
| ^~~~~
In file included from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Decoder.h:38,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Zydis.h:39,
from /home/gavin/nvlax/src/lax_encode.cc:17:
/home/gavin/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/gavin/nvlax/build/deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
82 | (!((status) & 0x80000000u))
| ^~~~~~
/home/gavin/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/gavin/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/gavin/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) {
| ^~~~~~~~
In file included from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Decoder.h:38,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Zydis.h:39,
from /home/gavin/nvlax/src/lax_encode.cc:17:
/home/gavin/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/gavin/nvlax/src/lax_encode.cc:82:16: note: in expansion of macro ‘ZYAN_SUCCESS’
82 | while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, length, &instr))) {
| ^~~~~~~~~~~~
/home/gavin/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/gavin/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 &&
| ^~~~~~~~
In file included from /home/gavin/nvlax/src/lax_encode.cc:19:
/home/gavin/nvlax/src/lax_encode.cc: In lambda function:
/home/gavin/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/gavin/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/gavin/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/gavin/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/gavin/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/gavin/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/gavin/nvlax/src/lax_encode.cc:145:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
| ^~~~~~~~~~~~~~~~
/home/gavin/nvlax/src/lax_encode.cc:145:26: note: in expansion of macro ‘ZYAN_SUCCESS’
145 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder,
| ^~~~~~~~~~~~
/home/gavin/nvlax/src/lax_encode.cc:154:71: error: ‘ZydisDecodedInstruction’ {aka ‘struct ZydisDecodedInstruction’} has no member named ‘operands’
154 | &instr.operands[0],
| ^~~~~~~~
/home/gavin/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/gavin/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/gavin/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/gavin/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/gavin/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/gavin/nvlax/src/lax_encode.cc:153:9: note: in expansion of macro ‘PPK_ASSERT_ERROR’
153 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instr,
| ^~~~~~~~~~~~~~~~
/home/gavin/nvlax/src/lax_encode.cc:153:26: note: in expansion of macro ‘ZYAN_SUCCESS’
153 | PPK_ASSERT_ERROR(ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instr,
| ^~~~~~~~~~~~
In file included from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Decoder.h:38,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Zydis.h:39,
from /home/gavin/nvlax/src/lax_encode.cc:17:
/home/gavin/nvlax/src/lax_encode.cc: In function ‘void patch_windows(LIEF::PE::Binary*)’:
/home/gavin/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/gavin/nvlax/build/deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
82 | (!((status) & 0x80000000u))
| ^~~~~~
/home/gavin/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/gavin/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/gavin/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)
| ^~~~~~~~
In file included from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Decoder.h:38,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Zydis.h:39,
from /home/gavin/nvlax/src/lax_encode.cc:17:
/home/gavin/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/gavin/nvlax/build/deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
82 | (!((status) & 0x80000000u))
| ^~~~~~
/home/gavin/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/gavin/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/gavin/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));
| ^~~~~~~~
In file included from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Status.h:35,
from /home/gavin/nvlax/build/_deps/zydis-src/include/Zydis/Decoder.h:38,
from /home/gavin/nvlax/build/deps/zydis-src/include/Zydis/Zydis.h:39,
from /home/gavin/nvlax/src/lax_encode.cc:17:
/home/gavin/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/gavin/nvlax/build/deps/zydis-src/dependencies/zycore/include/Zycore/Status.h:82:9: note: in definition of macro ‘ZYAN_SUCCESS’
82 | (!((status) & 0x80000000u))
| ^~~~~~
/home/gavin/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/gavin/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:95: CMakeFiles/nvlax_encode.dir/src/lax_encode.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:170: CMakeFiles/nvlax_encode.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
The text was updated successfully, but these errors were encountered: