Skip to content

[Bug]: Cannot build RISC-V Assembly for SHA3 in Debug #10515

@EAlexJ

Description

@EAlexJ

Contact Details

alex@minres.com

Version

5.9.1 (commit 6a3eb6f)

Description

I am trying to build a wolfssl setup with assembly routines for a RISC-V system.
My setup builds fine when building for Release mode, but fails for Debug.

EDIT: I did not mention this explicitly, but I am building for rv64gc with some other extensions.

Reproduction steps

If this cannot be reproduced by this information alone, I can share more details about my setup to allow for reproduction.

Relevant log output

wolfcrypt/src/port/riscv/riscv-64-sha3.c: In function 'BlockSha3':
wolfcrypt/src/port/riscv/riscv-64-sha3.c:146:5: error: 'asm' operand has impossible constraints or there are not enough registers
  146 |     __asm__ __volatile__ (
      |     ^~~~~~~

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions