| Summary: | systemd fails to start when compiled with GCC 5.2 | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jonathan Liu <net147> |
| Component: | core | Assignee: | Jonathan Liu <net147> |
| Status: | VERIFIED FIXED | QA Contact: | Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu> |
| Severity: | critical | ||
| Priority: | Medium+ | CC: | andrei, bogdanx.a.voiculescu, kergoth, meta.mr.watcher, meta.watcher, ntl, raj.khem, richard.purdie, ross.burton |
| Version: | 1.9 | ||
| Target Milestone: | 1.9 | ||
| Hardware: | All | ||
| OS: | arm | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Jonathan Liu
2015-09-12 09:42:18 UTC
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>. ..... |