Skip to contentSkip to conversation

xvisor: needs gcc >= 4.9

PATCH New Eric Le Bihan 2 participants 2 messages Sep 24, 2016 – Sep 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xvisor: needs gcc >= 4.9

xvisor needs gcc >= 4.9, as previous versions trigger an ICE on dwarf2out_frame_debug_adjust_cfa() [1].

Fixes:

- http://autobuild.buildroot.net/results/fdb/fdb5a568fb38a9d20780cd37eecb71b60b6ca96a/

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60264

---
 package/xvisor/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/xvisor/Config.in +7 -0
index f450f6f..92e8937 100644
@@ -1,6 +1,7 @@
 menuconfig BR2_PACKAGE_XVISOR
 	bool "xvisor"
 	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 	depends on BR2_arm || BR2_aarch64 || BR2_x86_64
 	depends on !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV7M
 	help
@@ -56,3 +57,9 @@ config BR2_PACKAGE_XVISOR_BUILD_TEST_DTB
 	  Build test device-tree blobs for popular boards.
 
 endif
+
+comment "xvisor needs a toolchain w/ gcc >= 4.9"
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+	depends on BR2_USE_MMU
+	depends on BR2_arm || BR2_aarch64 || BR2_x86_64
+	depends on !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV7M
Signature · 1 line
2.4.11
#1 lore raw

PATCH 1/1 xvisor: needs gcc >= 4.9

Hello,

Quoted 5 lines · Eric Le Bihan

xvisor needs gcc >= 4.9, as previous versions trigger an ICE on dwarf2out_frame_debug_adjust_cfa() [1].

Fixes:

Quoted 8 lines

- http://autobuild.buildroot.net/results/fdb/fdb5a568fb38a9d20780cd37eecb71b60b6ca96a/

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60264

---
 package/xvisor/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

I've applied to master, after adding before a patch that adds a BR2_PACKAGE_XVISOR_ARCH_SUPPORTS option, in order to avoid repeating the architecture dependencies between the main option and the comment.

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com