Skip to contentSkip to conversation

configs/microchip_mpfs_icicle_defconfig: fix zicsr build error

PATCH In review Jamie Gibbons via buildroot 1 participant 2 messages Sep 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/microchip_mpfs_icicle_defconfig: fix zicsr build error

Build is failing with an unrecognised opcode error due to missing zicsr extension requirement. This is introduced with GCC version 12. All our current defconfigs use GCC version 11. Add GCC version 11 kconfig to fix this build error and align with our downstream Buildroot-External defconfigs.

---
 configs/microchip_mpfs_icicle_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/microchip_mpfs_icicle_defconfig +1 -1
index 54a4d55a5f..c003f70798 100644
@@ -1,7 +1,7 @@
 BR2_riscv=y
-BR2_riscv_g=y
 BR2_RISCV_ISA_RVC=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
+BR2_GCC_VERSION_11_X=y
 BR2_TARGET_GENERIC_HOSTNAME="mpfs_icicle"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/microchip/mpfs_icicle/post-image.sh"
 BR2_LINUX_KERNEL=y
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Jamie,

Quoted 7 lines · On Tue, 19 Sep 2023 09:10:12 +0100 Jamie Gibbons via buildroot…

Build is failing with an unrecognised opcode error due to missing zicsr extension requirement. This is introduced with GCC version 12. All our current defconfigs use GCC version 11. Add GCC version 11 kconfig to fix this build error and align with our downstream Buildroot-External defconfigs.

Hm, we really want to fix this the proper, aka make this work with GCC 12+. Indeed as soon as GCC 14.x lands, we will drop support for GCC 11.x, so the solution proposed here really isn't suitable :-/

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot