RISCV assembler error (illegal operands auipc) compiling arch/riscv/kernel/vdso/vgettimeofday.c #1112
Comments
These are caused by missing Still looking into the ones regarding |
|
It looks like you're doing a non-IAS build; our CI coverage is doing |
Thanks for the info, with
Will do, thanks. |
Currently, building the vDSO with clang leads assembler errors like the following: /tmp/vgettimeofday-1ae0d2.s: Assembler messages: /tmp/vgettimeofday-1ae0d2.s:28: Error: bad expression /tmp/vgettimeofday-1ae0d2.s:28: Error: illegal operands `auipc a2,%got_pcrel_hi(__stack_chk_guard)' Disable the stack-protector for vDSO to fix these. Link: ClangBuiltLinux#1112 Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Currently, building the vDSO with clang leads assembler errors like the following: /tmp/vgettimeofday-1ae0d2.s: Assembler messages: /tmp/vgettimeofday-1ae0d2.s:28: Error: bad expression /tmp/vgettimeofday-1ae0d2.s:28: Error: illegal operands `auipc a2,%got_pcrel_hi(__stack_chk_guard)' Disable the stack-protector for vDSO to fix these. Link: ClangBuiltLinux#1112 Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Currently, building the vDSO with clang leads assembler errors like the following: /tmp/vgettimeofday-1ae0d2.s: Assembler messages: /tmp/vgettimeofday-1ae0d2.s:28: Error: bad expression /tmp/vgettimeofday-1ae0d2.s:28: Error: illegal operands `auipc a2,%got_pcrel_hi(__stack_chk_guard)' Disable the stack-protector for vDSO to fix these. Link: ClangBuiltLinux#1112 Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
|
Looks like our mailing list was never CC'd on that patch: https://lore.kernel.org/linux-riscv/20200729075129.11538-1-tklauser@distanz.ch/ It has been merged into mainline: https://git.kernel.org/linus/40284a072c42f6177184fb1f62ba94c69e0c0277 As it turns out, that patch fixes #1092. This appears normal for the vDSO based on arm, arm64, and x86 so I would not consider this a bug in clang or anything. |
|
Thank you @nathanchance and sorry about not Cc'ing the mailing list on the patch. Will make sure to do so for any future patches. |
On linux-next (next-20200728):
The text was updated successfully, but these errors were encountered: