* [PATCH 0/1] systemd: avoid boot failures for mips64 @ 2016-10-09 9:23 Chen Qi 2016-10-09 9:23 ` [PATCH 1/1] " Chen Qi 0 siblings, 1 reply; 5+ messages in thread From: Chen Qi @ 2016-10-09 9:23 UTC (permalink / raw) To: openembedded-core The following changes since commit 747f59f5103995654f2b10a52d1dfd2dd4ad1a0e: linux-yocto/4.8: Enable R8169 driver since its needed by supported platforms (2016-10-08 07:45:53 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib ChenQi/bug10250 http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/bug10250 Chen Qi (1): systemd: avoid boot failures for mips64 meta/recipes-core/systemd/systemd.inc | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] systemd: avoid boot failures for mips64 2016-10-09 9:23 [PATCH 0/1] systemd: avoid boot failures for mips64 Chen Qi @ 2016-10-09 9:23 ` Chen Qi 2016-10-16 23:03 ` Khem Raj 0 siblings, 1 reply; 5+ messages in thread From: Chen Qi @ 2016-10-09 9:23 UTC (permalink / raw) To: openembedded-core If we start a systemd based qemumips64 target with 'pam' enabled in DISTRO_FEATURES, we could not login in successfully. After you provide username and password to the login prompt, the login prompt just comes up again. Besides, there are other boot failures. Append '-O0' flag for mips64 target as a workaround to this problem. [YOCTO #10250] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> --- meta/recipes-core/systemd/systemd.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc index f800f42..db588e7 100644 --- a/meta/recipes-core/systemd/systemd.inc +++ b/meta/recipes-core/systemd/systemd.inc @@ -23,3 +23,4 @@ PV = "230+git${SRCPV}" S = "${WORKDIR}/git" LDFLAGS_append_libc-uclibc = " -lrt -lssp_nonshared -lssp " +CFLAGS_append_mips64 = " -O0" -- 1.9.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] systemd: avoid boot failures for mips64 2016-10-09 9:23 ` [PATCH 1/1] " Chen Qi @ 2016-10-16 23:03 ` Khem Raj 2016-10-17 6:25 ` ChenQi 0 siblings, 1 reply; 5+ messages in thread From: Khem Raj @ 2016-10-16 23:03 UTC (permalink / raw) To: Chen Qi; +Cc: Patches and discussions about the oe-core layer On Sun, Oct 9, 2016 at 2:23 AM, Chen Qi <Qi.Chen@windriver.com> wrote: > If we start a systemd based qemumips64 target with 'pam' enabled in > DISTRO_FEATURES, we could not login in successfully. After you provide > username and password to the login prompt, the login prompt just comes up > again. Besides, there are other boot failures. > > Append '-O0' flag for mips64 target as a workaround to this problem. > > [YOCTO #10250] > > Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > --- > meta/recipes-core/systemd/systemd.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc > index f800f42..db588e7 100644 > --- a/meta/recipes-core/systemd/systemd.inc > +++ b/meta/recipes-core/systemd/systemd.inc > @@ -23,3 +23,4 @@ PV = "230+git${SRCPV}" > S = "${WORKDIR}/git" > > LDFLAGS_append_libc-uclibc = " -lrt -lssp_nonshared -lssp " > +CFLAGS_append_mips64 = " -O0" can you instead explore a bit more e.g. disabling lto etc. CFLAGS_append_mips64 = " -fno-lto" and also consider little endian > -- > 1.9.1 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] systemd: avoid boot failures for mips64 2016-10-16 23:03 ` Khem Raj @ 2016-10-17 6:25 ` ChenQi 2016-10-17 13:27 ` Khem Raj 0 siblings, 1 reply; 5+ messages in thread From: ChenQi @ 2016-10-17 6:25 UTC (permalink / raw) To: Khem Raj; +Cc: Patches and discussions about the oe-core layer On 10/17/2016 07:03 AM, Khem Raj wrote: > On Sun, Oct 9, 2016 at 2:23 AM, Chen Qi <Qi.Chen@windriver.com> wrote: >> If we start a systemd based qemumips64 target with 'pam' enabled in >> DISTRO_FEATURES, we could not login in successfully. After you provide >> username and password to the login prompt, the login prompt just comes up >> again. Besides, there are other boot failures. >> >> Append '-O0' flag for mips64 target as a workaround to this problem. >> >> [YOCTO #10250] >> >> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> >> --- >> meta/recipes-core/systemd/systemd.inc | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc >> index f800f42..db588e7 100644 >> --- a/meta/recipes-core/systemd/systemd.inc >> +++ b/meta/recipes-core/systemd/systemd.inc >> @@ -23,3 +23,4 @@ PV = "230+git${SRCPV}" >> S = "${WORKDIR}/git" >> >> LDFLAGS_append_libc-uclibc = " -lrt -lssp_nonshared -lssp " >> +CFLAGS_append_mips64 = " -O0" > can you instead explore a bit more e.g. disabling lto etc. > CFLAGS_append_mips64 = " -fno-lto" > > and also consider little endian > Hi Khem, I thought of adding '-O0' to CFLAGS because when I was debugging this problem, I found that several 'printf' statements would make errors disappear. I'm not familiar with these options. I just gave a test for '-fno-lto', and it caused the following error. ERROR: systemd-1_230+gitAUTOINC+3a74d4fc90-r0 do_package: debugedit failed with exit code 1 (cmd was '/buildarea2/chenqi/poky/build-systemd/tmp/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit' -i -l '/buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/debugsources.list' '/buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/package/usr/lib/systemd/ptest/tests/test-libsystemd-sym.o'): /buildarea2/chenqi/poky/build-systemd/tmp/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit: /buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/package/usr/lib/systemd/ptest/tests/test-libsystemd-sym.o: Unhandled relocation 2 in .debug_info section ERROR: systemd-1_230+gitAUTOINC+3a74d4fc90-r0 do_package: Function failed: split_and_strip_files ERROR: Logfile of failure stored in: /buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/temp/log.do_package.8462 ERROR: Task (/buildarea2/chenqi/poky/meta/recipes-core/systemd/systemd_230.bb:do_package) failed with exit code '1' Best Regards, Chen Qi >> -- >> 1.9.1 >> >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] systemd: avoid boot failures for mips64 2016-10-17 6:25 ` ChenQi @ 2016-10-17 13:27 ` Khem Raj 0 siblings, 0 replies; 5+ messages in thread From: Khem Raj @ 2016-10-17 13:27 UTC (permalink / raw) To: ChenQi; +Cc: Patches and discussions about the oe-core layer > On Oct 16, 2016, at 11:25 PM, ChenQi <Qi.Chen@windriver.com> wrote: > >> On 10/17/2016 07:03 AM, Khem Raj wrote: >>> On Sun, Oct 9, 2016 at 2:23 AM, Chen Qi <Qi.Chen@windriver.com> wrote: >>> If we start a systemd based qemumips64 target with 'pam' enabled in >>> DISTRO_FEATURES, we could not login in successfully. After you provide >>> username and password to the login prompt, the login prompt just comes up >>> again. Besides, there are other boot failures. >>> >>> Append '-O0' flag for mips64 target as a workaround to this problem. >>> >>> [YOCTO #10250] >>> >>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> >>> --- >>> meta/recipes-core/systemd/systemd.inc | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc >>> index f800f42..db588e7 100644 >>> --- a/meta/recipes-core/systemd/systemd.inc >>> +++ b/meta/recipes-core/systemd/systemd.inc >>> @@ -23,3 +23,4 @@ PV = "230+git${SRCPV}" >>> S = "${WORKDIR}/git" >>> >>> LDFLAGS_append_libc-uclibc = " -lrt -lssp_nonshared -lssp " >>> +CFLAGS_append_mips64 = " -O0" >> can you instead explore a bit more e.g. disabling lto etc. >> CFLAGS_append_mips64 = " -fno-lto" >> >> and also consider little endian >> > > Hi Khem, > > I thought of adding '-O0' to CFLAGS because when I was debugging this problem, I found that several 'printf' statements would make errors disappear. I'm not familiar with these options. I just gave a test for '-fno-lto', and it caused the following error. O0 will mean bad performance. We should try to narrow it down to a subset of opt passes. Can you try O1 or Os > > ERROR: systemd-1_230+gitAUTOINC+3a74d4fc90-r0 do_package: debugedit failed with exit code 1 (cmd was '/buildarea2/chenqi/poky/build-systemd/tmp/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit' -i -l '/buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/debugsources.list' '/buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/package/usr/lib/systemd/ptest/tests/test-libsystemd-sym.o'): > /buildarea2/chenqi/poky/build-systemd/tmp/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit: /buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/package/usr/lib/systemd/ptest/tests/test-libsystemd-sym.o: Unhandled relocation 2 in .debug_info section > ERROR: systemd-1_230+gitAUTOINC+3a74d4fc90-r0 do_package: Function failed: split_and_strip_files > ERROR: Logfile of failure stored in: /buildarea2/chenqi/poky/build-systemd/tmp/work/mips64-poky-linux/systemd/1_230+gitAUTOINC+3a74d4fc90-r0/temp/log.do_package.8462 > ERROR: Task (/buildarea2/chenqi/poky/meta/recipes-core/systemd/systemd_230.bb:do_package) failed with exit code '1' > > Best Regards, > Chen Qi > >>> -- >>> 1.9.1 >>> >>> -- >>> _______________________________________________ >>> Openembedded-core mailing list >>> Openembedded-core@lists.openembedded.org >>> http://lists.openembedded.org/mailman/listinfo/openembedded-core > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-10-17 13:27 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-10-09 9:23 [PATCH 0/1] systemd: avoid boot failures for mips64 Chen Qi 2016-10-09 9:23 ` [PATCH 1/1] " Chen Qi 2016-10-16 23:03 ` Khem Raj 2016-10-17 6:25 ` ChenQi 2016-10-17 13:27 ` Khem Raj
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox