systemd image fails to start on Raspberry Pi 2 if using GCC 5.2. Repository revisions bitbake: 135dff67216759286f584e501583584a9cb09f27 openembedded-core: 56c5fa106eeccda2ca92dbeb73ff01ba40992e7d It will try to start the following services, timeout after 90 seconds and keep trying to again to start the services: * Journal Service * udev Kernel Device Manager Workarounds: * Change -O2 to -O1 in optimization flags for systemd recipe: FULL_OPTIMIZATION_remove = "-O2" FULL_OPTIMIZATION =+ "-O1" * Set GCCVERSION = "4.9%" to use GCC 4.9 in local.conf or distro conf
Same issue with both systemd 219 in master and systemd 225 from master-next.
Can you try disabling lto with -fno-lto
The issue still persists with the following added to the recipe: FULL_OPTIMIZATION += "-fno-lto"
Reassigning to Khem.
Check whether adding -fno-ipa-sra to the compiler flags works around it? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932
The issue still persists with the following added to the recipe: FULL_OPTIMIZATION += "-fno-ipa-sra"(In reply to comment #5) > Check whether adding -fno-ipa-sra to the compiler flags works around it? > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932 The issue still persists with the following added to the recipe: FULL_OPTIMIZATION += "-fno-ipa-sra"
Adding both -fno-lto and -fno-ipa-sra doesn't work either: FULL_OPTIMIZATION += "-fno-lto -fno-ipa-sra"
I have narrowed down the compiler optimizations. Disabling 2 compiler optimizations as follows resolves the issues when compiling systemd with GCC 5.2: FULL_OPTIMIZATION += "-fno-schedule-insns -fno-schedule-insns2" Both optimizations need to be disabled. Disabling only one of them does not resolve the issue.
Merged in 338f18e5808ea0472350d0c26edd0938ffbdcd23.
Looks like V1 of the patch was merged instead of V2 which makes it ARM-specific. Any reason in particular?
Human error - master-next has a revert and V2.
Verified with master e35c404537db0b46047fcb2ee7d3645e3e0935c5 on BeagleBoneBlack board - ARMv7. ...... systemd[1]: systemd 225 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN) systemd[1]: Detected architecture arm. Welcome to Poky (Yocto Project Reference Distro) 2.0 (jethro)! systemd[1]: Set hostname to <beaglebone>. .....