[edk2-devel] gcc 12, RiscV64 fence.i instruction missing

Daniel Schaefer daniel.schaefer at hpe.com
Thu Jun 2 14:34:16 UTC 2022


Hi Steffen,

No, I don't think we've tried GCC12 yet.
Hm, I don't quite understand the bug report but it sounds like something that'll be fixed by GCC?

Thanks,
Daniel
________________________________
From: devel at edk2.groups.io <devel at edk2.groups.io> on behalf of Oliver Steffen <osteffen at redhat.com>
Sent: Thursday, June 2, 2022 21:50
To: devel at edk2.groups.io <devel at edk2.groups.io>
Cc: Chang, Abner (HPS SW/FW Technologist) <abner.chang at hpe.com>
Subject: [edk2-devel] gcc 12, RiscV64 fence.i instruction missing

Hi,
has anyone tied building EDK2 (e.g. MdePkg) for RiscV64 with gcc 12?
I get:

/edk2/Build/Mde/DEBUG_GCC5/RISCV64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/RiscV64/FlushCache.iiii:16: Error: unrecognized opcode `fence.i'

I found this gcc bug:
Bug 104853 - [RISC-V] -march=rv64g not including extension Zifencei
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104853

I was working on getting gcc 12 into the CI.

Thanks,
  Oliver








-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90163): https://edk2.groups.io/g/devel/message/90163
Mute This Topic: https://groups.io/mt/91499438/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20220602/1265d4f4/attachment.htm>


More information about the edk2-devel-archive mailing list