* [Buildroot] [PATCH v2,1/1] package/systemd: fix build with -Ofast
@ 2023-02-24 16:15 Fabrice Fontaine
2023-02-25 9:40 ` [Buildroot] [PATCH v2, 1/1] " Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2023-02-24 16:15 UTC (permalink / raw)
To: buildroot; +Cc: Norbert Lange, Fabrice Fontaine, Sen Hastings, Yann E . MORIN
Update -Ofast workaround as suggested by Yann E. Morin to avoid the
following build failure raised since bump to version 252.4 in commit
a2c823d1f548d5a0120d27d6c000603192360f7b and
https://github.com/systemd/systemd/commit/60f97fee2d2f948c8e8963ea8ff767008cb93cae:
../output-1/build/systemd-252.4/meson.build:397:8: ERROR: Problem encountered: -Ofast, -ffast-math, or -ffinite-math-only is specified in c_args.
Fixes:
- http://autobuild.buildroot.org/results/8f41c4984b645851724e554c3162b83bc312bee7
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Thomas Petazzoni and Yann E. Morin):
- Update workaround instead of disabling with -Ofast
package/systemd/systemd.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index cce9162f6d..63467171ed 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -100,7 +100,7 @@ SYSTEMD_CONF_OPTS += \
SYSTEMD_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_OPTIMIZE_FAST),y)
-SYSTEMD_CFLAGS += -O3
+SYSTEMD_CFLAGS += -O3 -fno-finite-math-only
endif
ifeq ($(BR2_nios2),y)
--
2.39.1
_______________________________________________
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 v2, 1/1] package/systemd: fix build with -Ofast
2023-02-24 16:15 [Buildroot] [PATCH v2,1/1] package/systemd: fix build with -Ofast Fabrice Fontaine
@ 2023-02-25 9:40 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-25 9:40 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Norbert Lange, Sen Hastings, Yann E . MORIN, buildroot
On Fri, 24 Feb 2023 17:15:43 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Update -Ofast workaround as suggested by Yann E. Morin to avoid the
> following build failure raised since bump to version 252.4 in commit
> a2c823d1f548d5a0120d27d6c000603192360f7b and
> https://github.com/systemd/systemd/commit/60f97fee2d2f948c8e8963ea8ff767008cb93cae:
>
> ../output-1/build/systemd-252.4/meson.build:397:8: ERROR: Problem encountered: -Ofast, -ffast-math, or -ffinite-math-only is specified in c_args.
>
> Fixes:
> - http://autobuild.buildroot.org/results/8f41c4984b645851724e554c3162b83bc312bee7
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2 (after review of Thomas Petazzoni and Yann E. Morin):
> - Update workaround instead of disabling with -Ofast
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] 2+ messages in thread
end of thread, other threads:[~2023-02-25 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24 16:15 [Buildroot] [PATCH v2,1/1] package/systemd: fix build with -Ofast Fabrice Fontaine
2023-02-25 9:40 ` [Buildroot] [PATCH v2, 1/1] " 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