Skip to contentSkip to conversation

systemd: disable problematic GCC 5.2 optimizations

PATCH New Jonathan Liu 1 participant 1 message Sep 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 systemd: disable problematic GCC 5.2 optimizations

This fixes systemd failing to start on Raspberry Pi 2 if it is compiled with GCC 5.2.

It would try to start "Journal Service" and "udev Kernel Device Manager" but fail repeatedly.

[YOCTO #8291]

---
 meta/recipes-core/systemd/systemd_225.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-core/systemd/systemd_225.bb +3 -0
index f7d4c7d..fd1a3f3 100644
@@ -123,6 +123,9 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
 # uclibc does not have NSS
 EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
 
+# disable problematic GCC 5.2 optimizations [YOCTO #8291]
+FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"
+
 do_configure_prepend() {
 	export NM="${HOST_PREFIX}gcc-nm"
 	export AR="${HOST_PREFIX}gcc-ar"
Signature · 1 line
2.5.0