* [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h
@ 2026-11-25 11:47 Yegor Yefremov via buildroot
2026-11-27 11:02 ` Waldemar Brodkorb
2026-11-27 21:47 ` Waldemar Brodkorb
0 siblings, 2 replies; 4+ messages in thread
From: Yegor Yefremov via buildroot @ 2026-11-25 11:47 UTC (permalink / raw)
To: buildroot
The bundled QuickJS includes <fenv.h>, which uClibc-ng only provides
with UCLIBC_HAS_FENV. Buildroot enables it for hard-float targets only,
so the build fails with soft-float uClibc-ng toolchains:
lib/quickjs/quickjs.c:33:10: fatal error: fenv.h: No such file or directory
Nothing in quickjs.c uses fenv.h, so add a patch dropping the include.
This issue has been present since commit 9ec34dc363d7 ("package/chawan:
new package"), as chawan 0.4.4 already included fenv.h in its bundled
QuickJS. It therefore affects 2026.11-rc1 and later; no maintenance
branch is affected.
Fixes:
https://autobuild.buildroot.org/results/2d0823849c690c6471249c066f20b9dc8460f25b
Fixes: 9ec34dc363d7db8d5bc460d2607b1facf2103961 ("package/chawan: new package")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
...1-quickjs-drop-unused-fenv.h-include.patch | 32 +++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 package/chawan/0001-quickjs-drop-unused-fenv.h-include.patch
diff --git a/package/chawan/0001-quickjs-drop-unused-fenv.h-include.patch b/package/chawan/0001-quickjs-drop-unused-fenv.h-include.patch
new file mode 100644
index 0000000000..3ab16577f0
--- /dev/null
+++ b/package/chawan/0001-quickjs-drop-unused-fenv.h-include.patch
@@ -0,0 +1,32 @@
+From 26761d1edd103f05e677471d9a1f02c825d7149a Mon Sep 17 00:00:00 2001
+From: Yegor Yefremov <yegorslists@googlemail.com>
+Date: Wed, 25 Nov 2026 12:25:29 +0100
+Subject: [PATCH] quickjs: drop unused fenv.h include
+
+Nothing in quickjs.c uses <fenv.h>, but the include breaks the build
+with C libraries that don't provide it, like uClibc-ng built without
+UCLIBC_HAS_FENV (e.g. for soft-float targets):
+
+ lib/quickjs/quickjs.c:33:10: fatal error: fenv.h: No such file or directory
+
+Upstream: N/A, upstream rejects AI-assisted patches
+Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
+---
+ lib/quickjs/quickjs.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c
+index 13854e90..80e9c78f 100644
+--- a/lib/quickjs/quickjs.c
++++ b/lib/quickjs/quickjs.c
+@@ -30,7 +30,6 @@
+ #include <assert.h>
+ #include <sys/time.h>
+ #include <time.h>
+-#include <fenv.h>
+ #include <math.h>
+ #if defined(__APPLE__)
+ #include <malloc/malloc.h>
+--
+2.34.1
+
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h
2026-11-25 11:47 [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h Yegor Yefremov via buildroot
@ 2026-11-27 11:02 ` Waldemar Brodkorb
2026-11-27 21:47 ` Waldemar Brodkorb
1 sibling, 0 replies; 4+ messages in thread
From: Waldemar Brodkorb @ 2026-11-27 11:02 UTC (permalink / raw)
To: Yegor Yefremov; +Cc: buildroot
Hi Yegor, all,
Yegor Yefremov wrote,
> The bundled QuickJS includes <fenv.h>, which uClibc-ng only provides
> with UCLIBC_HAS_FENV. Buildroot enables it for hard-float targets only,
> so the build fails with soft-float uClibc-ng toolchains:
>
> lib/quickjs/quickjs.c:33:10: fatal error: fenv.h: No such file or directory
>
> Nothing in quickjs.c uses fenv.h, so add a patch dropping the include.
>
> This issue has been present since commit 9ec34dc363d7 ("package/chawan:
> new package"), as chawan 0.4.4 already included fenv.h in its bundled
> QuickJS. It therefore affects 2026.11-rc1 and later; no maintenance
> branch is affected.
>
> Fixes:
> https://autobuild.buildroot.org/results/2d0823849c690c6471249c066f20b9dc8460f25b
>
> Fixes: 9ec34dc363d7db8d5bc460d2607b1facf2103961 ("package/chawan: new package")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Works for me.
Reviewed-by: Waldemar Brodkorb <wbx@openadk.org>
I am trying to get this upstream by reporting a bug without a patch.
It is just a oneliner, may be they will fix it.
best regards
Waldemar
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h
2026-11-25 11:47 [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h Yegor Yefremov via buildroot
2026-11-27 11:02 ` Waldemar Brodkorb
@ 2026-11-27 21:47 ` Waldemar Brodkorb
2026-11-28 16:11 ` Yegor Yefremov
1 sibling, 1 reply; 4+ messages in thread
From: Waldemar Brodkorb @ 2026-11-27 21:47 UTC (permalink / raw)
To: Yegor Yefremov; +Cc: buildroot
Hi Yegor,
Yegor Yefremov wrote,
> The bundled QuickJS includes <fenv.h>, which uClibc-ng only provides
> with UCLIBC_HAS_FENV. Buildroot enables it for hard-float targets only,
> so the build fails with soft-float uClibc-ng toolchains:
>
> lib/quickjs/quickjs.c:33:10: fatal error: fenv.h: No such file or directory
>
> Nothing in quickjs.c uses fenv.h, so add a patch dropping the include.
>
> This issue has been present since commit 9ec34dc363d7 ("package/chawan:
> new package"), as chawan 0.4.4 already included fenv.h in its bundled
> QuickJS. It therefore affects 2026.11-rc1 and later; no maintenance
> branch is affected.
>
> Fixes:
> https://autobuild.buildroot.org/results/2d0823849c690c6471249c066f20b9dc8460f25b
They fixed it:
https://git.sr.ht/~bptato/chawan/commit/ddd38c78285fdf87f4dfce693c5f8d0952071394
best regards
Waldemar
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h
2026-11-27 21:47 ` Waldemar Brodkorb
@ 2026-11-28 16:11 ` Yegor Yefremov
0 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2026-11-28 16:11 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
Hi Waldemar,
On Fri, Nov 27, 2026 at 10:47 PM Waldemar Brodkorb <wbx@openadk.org> wrote:
>
> Hi Yegor,
> Yegor Yefremov wrote,
>
> > The bundled QuickJS includes <fenv.h>, which uClibc-ng only provides
> > with UCLIBC_HAS_FENV. Buildroot enables it for hard-float targets only,
> > so the build fails with soft-float uClibc-ng toolchains:
> >
> > lib/quickjs/quickjs.c:33:10: fatal error: fenv.h: No such file or directory
> >
> > Nothing in quickjs.c uses fenv.h, so add a patch dropping the include.
> >
> > This issue has been present since commit 9ec34dc363d7 ("package/chawan:
> > new package"), as chawan 0.4.4 already included fenv.h in its bundled
> > QuickJS. It therefore affects 2026.11-rc1 and later; no maintenance
> > branch is affected.
> >
> > Fixes:
> > https://autobuild.buildroot.org/results/2d0823849c690c6471249c066f20b9dc8460f25b
>
> They fixed it:
> https://git.sr.ht/~bptato/chawan/commit/ddd38c78285fdf87f4dfce693c5f8d0952071394
Great. Thanks.
Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-28 16:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 11:47 [Buildroot] [PATCH] package/chawan: fix build with uClibc-ng without fenv.h Yegor Yefremov via buildroot
2026-11-27 11:02 ` Waldemar Brodkorb
2026-11-27 21:47 ` Waldemar Brodkorb
2026-11-28 16:11 ` Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox