* [Buildroot] [PATCH 2/2] package/xfsprogs: fix linking error when -O0 is used
@ 2023-08-11 9:43 Waldemar Brodkorb
2023-08-12 12:18 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2023-08-11 9:43 UTC (permalink / raw)
To: buildroot
Urcu does not like -O0 it needs gcc optimizations.
Force -O1 in this case. Inspired by package fwts.
Fixes:
- http://autobuild.buildroot.net/results/3bd/3bd7de784953ab1fa70bf5572eccd7b10e4a0e17
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
package/xfsprogs/xfsprogs.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/xfsprogs/xfsprogs.mk b/package/xfsprogs/xfsprogs.mk
index e174ac5397..62ea5d3df8 100644
--- a/package/xfsprogs/xfsprogs.mk
+++ b/package/xfsprogs/xfsprogs.mk
@@ -27,6 +27,10 @@ else
XFSPROGS_CONF_OPTS += --disable-libicu
endif
+ifeq ($(BR2_OPTIMIZE_0),y)
+XFSPROGS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
+endif
+
XFSPROGS_INSTALL_TARGET_OPTS = DIST_ROOT=$(TARGET_DIR) install
$(eval $(autotools-package))
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/xfsprogs: fix linking error when -O0 is used
2023-08-11 9:43 [Buildroot] [PATCH 2/2] package/xfsprogs: fix linking error when -O0 is used Waldemar Brodkorb
@ 2023-08-12 12:18 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-12 12:18 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
Hello Waldemar,
On Fri, 11 Aug 2023 11:43:22 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:
> Urcu does not like -O0 it needs gcc optimizations.
> Force -O1 in this case. Inspired by package fwts.
>
> Fixes:
> - http://autobuild.buildroot.net/results/3bd/3bd7de784953ab1fa70bf5572eccd7b10e4a0e17
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Thanks a lot for looking into this.
However, I'm wondering why is this patch 2/2 ? If it's already
happening in the autobuilders, I guess it means it should come *before*
the version bump, to fix an already existing issue, independent of the
version bump ?
Also, since when is this error happening? As explained in my reply to
your libedit patch, we need to understand since when issues are
happening, so we know which commit introduced the regression.
Very good tools to help in this investigation are:
- Look at http://autobuild.buildroot.net/?reason=xfsprogs% and see in
the history of build failures when it started happening
- Obviously, look at the Git history for the package, and how that
sometimes translates (in terms of commit dates) with build errors
starting to happen, as reported by the autobuilders
At http://autobuild.buildroot.net/?reason=xfsprogs%&step=50&start=100
it seems like we started seeing the issue when it was bumped from 5.8.0
to 5.14.2, or it might be due to us starting to test -O0 builds (which
was not the case before).
So here, the issue got introduced in commit
2f8f69012e0eee7f3e98212fb3da118c211f3c0b: before this commit, xfsprogs
builds fine at -O0, after this commit, it fails to build at -O0. As
this commit went into 2022.02, the fix needs to be backported to stable
branches.
Could you resend this patch series, swapping patches 1/2 and 2/2, as
well as extending the justification for the fix?
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-12 12:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-11 9:43 [Buildroot] [PATCH 2/2] package/xfsprogs: fix linking error when -O0 is used Waldemar Brodkorb
2023-08-12 12:18 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox