Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/2] package/xfsprogs: fix linking error when -O0 is used
@ 2023-08-12 13:04 Waldemar Brodkorb
  2023-08-12 19:39 ` Thomas Petazzoni via buildroot
  2023-09-12  6:26 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Waldemar Brodkorb @ 2023-08-12 13:04 UTC (permalink / raw)
  To: buildroot

Urcu does not like -O0 it needs gcc optimizations.
Force -O1 in this case. Inspired by package fwts.

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.

Fixes:
 - http://autobuild.buildroot.net/results/3bd/3bd7de784953ab1fa70bf5572eccd7b10e4a0e17

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
v1 -> v2:
  - add more information about when the problem was introduced
    from Thomas Petazzoni's review
---
 package/xfsprogs/xfsprogs.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/xfsprogs/xfsprogs.mk b/package/xfsprogs/xfsprogs.mk
index 695471bddc..09f59a76f4 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] 3+ messages in thread

* Re: [Buildroot] [PATCH v2 1/2] package/xfsprogs: fix linking error when -O0 is used
  2023-08-12 13:04 [Buildroot] [PATCH v2 1/2] package/xfsprogs: fix linking error when -O0 is used Waldemar Brodkorb
@ 2023-08-12 19:39 ` Thomas Petazzoni via buildroot
  2023-09-12  6:26 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-12 19:39 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

On Sat, 12 Aug 2023 15:04:10 +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.
> 
> 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.
> 
> Fixes:
>  - http://autobuild.buildroot.net/results/3bd/3bd7de784953ab1fa70bf5572eccd7b10e4a0e17
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> v1 -> v2:
>   - add more information about when the problem was introduced
>     from Thomas Petazzoni's review
> ---
>  package/xfsprogs/xfsprogs.mk | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH v2 1/2] package/xfsprogs: fix linking error when -O0 is used
  2023-08-12 13:04 [Buildroot] [PATCH v2 1/2] package/xfsprogs: fix linking error when -O0 is used Waldemar Brodkorb
  2023-08-12 19:39 ` Thomas Petazzoni via buildroot
@ 2023-09-12  6:26 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-09-12  6:26 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

>>>>> "Waldemar" == Waldemar Brodkorb <wbx@openadk.org> writes:

 > Urcu does not like -O0 it needs gcc optimizations.
 > Force -O1 in this case. Inspired by package fwts.

 > 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.

 > Fixes:
 >  - http://autobuild.buildroot.net/results/3bd/3bd7de784953ab1fa70bf5572eccd7b10e4a0e17

 > Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
 > ---
 > v1 -> v2:
 >   - add more information about when the problem was introduced
 >     from Thomas Petazzoni's review

Committed to 2023.02.x and 2023.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-12  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 13:04 [Buildroot] [PATCH v2 1/2] package/xfsprogs: fix linking error when -O0 is used Waldemar Brodkorb
2023-08-12 19:39 ` Thomas Petazzoni via buildroot
2023-09-12  6:26 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox