* [PATCH] db: Pin to use C99 std
@ 2026-04-08 4:47 Khem Raj
2026-04-10 13:15 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2026-04-08 4:47 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
GCC-15 has switched to using C23 by default, we have been selectively
disabling warnings as errors to get by, however with autoconf 2.72 adding
-std=gnu23 it now gets enabled for every compiler and clang-22 is more
obidient and has dropped support for K&R C completely. db5 code has a lot
of K&R C prototypes and it starts to fail vigorously. We can not keep
working around with out uplifting sources to be compliant with newer C
standard like C23.
Therefore pin the cflags to use C99 standard as this package expects.
Drop the code to disable warnings as errors selectively.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
meta/recipes-support/db/db_5.3.28.bb | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-support/db/db_5.3.28.bb b/meta/recipes-support/db/db_5.3.28.bb
index 8d2af1f5dc..f6205ec125 100644
--- a/meta/recipes-support/db/db_5.3.28.bb
+++ b/meta/recipes-support/db/db_5.3.28.bb
@@ -71,7 +71,11 @@ AUTOTOOLS_SCRIPT_PATH = "${S}/dist"
# configure.
CONFIG_SITE = ""
+CFLAGS += "-std=gnu99"
+
oe_runconf:prepend() {
+ export CFLAGS="${CFLAGS}"
+
. ${S}/dist/RELEASE
# Edit version information we couldn't pre-compute.
sed -i -e "s/__EDIT_DB_VERSION_FAMILY__/$DB_VERSION_FAMILY/g" \
@@ -115,8 +119,3 @@ INSANE_SKIP:${PN} = "dev-so"
INSANE_SKIP:${PN}-cxx = "dev-so"
BBCLASSEXTEND = "native nativesdk"
-
-# many configure tests are failing with gcc-14
-# -Wno-error=incompatible-pointer-types needed for gcc-15
-CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
-BUILD_CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [OE-core] [PATCH] db: Pin to use C99 std
2026-04-08 4:47 [PATCH] db: Pin to use C99 std Khem Raj
@ 2026-04-10 13:15 ` Richard Purdie
2026-04-10 13:38 ` Mathieu Dubois-Briand
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2026-04-10 13:15 UTC (permalink / raw)
To: raj.khem, openembedded-core; +Cc: Khem Raj
On Tue, 2026-04-07 at 21:47 -0700, Khem Raj via lists.openembedded.org wrote:
> GCC-15 has switched to using C23 by default, we have been selectively
> disabling warnings as errors to get by, however with autoconf 2.72 adding
> -std=gnu23 it now gets enabled for every compiler and clang-22 is more
> obidient and has dropped support for K&R C completely. db5 code has a lot
> of K&R C prototypes and it starts to fail vigorously. We can not keep
> working around with out uplifting sources to be compliant with newer C
> standard like C23.
>
> Therefore pin the cflags to use C99 standard as this package expects.
>
> Drop the code to disable warnings as errors selectively.
>
> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> ---
> meta/recipes-support/db/db_5.3.28.bb | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
This seemed to trigger failures for me, e.g.:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/3538#bb-step-15
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] db: Pin to use C99 std
2026-04-10 13:15 ` [OE-core] " Richard Purdie
@ 2026-04-10 13:38 ` Mathieu Dubois-Briand
2026-04-10 14:00 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Dubois-Briand @ 2026-04-10 13:38 UTC (permalink / raw)
To: richard.purdie, raj.khem, openembedded-core; +Cc: Khem Raj
On Fri Apr 10, 2026 at 3:15 PM CEST, Richard Purdie via lists.openembedded.org wrote:
> On Tue, 2026-04-07 at 21:47 -0700, Khem Raj via lists.openembedded.org wrote:
>> GCC-15 has switched to using C23 by default, we have been selectively
>> disabling warnings as errors to get by, however with autoconf 2.72 adding
>> -std=gnu23 it now gets enabled for every compiler and clang-22 is more
>> obidient and has dropped support for K&R C completely. db5 code has a lot
>> of K&R C prototypes and it starts to fail vigorously. We can not keep
>> working around with out uplifting sources to be compliant with newer C
>> standard like C23.
>>
>> Therefore pin the cflags to use C99 standard as this package expects.
>>
>> Drop the code to disable warnings as errors selectively.
>>
>> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
>> ---
>> meta/recipes-support/db/db_5.3.28.bb | 9 ++++-----
>> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> This seemed to trigger failures for me, e.g.:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/3538#bb-step-15
>
> Cheers,
>
> Richard
This is because the patch is touching lines ending with spaces, and
these spaces have not been kept in the mail.
I tweaked the patch to make it work correctly, it landed in my -success
branch.
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] db: Pin to use C99 std
2026-04-10 13:38 ` Mathieu Dubois-Briand
@ 2026-04-10 14:00 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2026-04-10 14:00 UTC (permalink / raw)
To: Mathieu Dubois-Briand
Cc: Richard Purdie, Patches and discussions about the oe-core layer,
Khem Raj
[-- Attachment #1: Type: text/plain, Size: 1782 bytes --]
I sent a v2 please use that
https://lore.kernel.org/openembedded-core/20260408162759.842544-1-khem.raj@oss.qualcomm.com/
On Fri, Apr 10, 2026, 6:38 AM Mathieu Dubois-Briand <
mathieu.dubois-briand@bootlin.com> wrote:
> On Fri Apr 10, 2026 at 3:15 PM CEST, Richard Purdie via
> lists.openembedded.org wrote:
> > On Tue, 2026-04-07 at 21:47 -0700, Khem Raj via lists.openembedded.org
> wrote:
> >> GCC-15 has switched to using C23 by default, we have been selectively
> >> disabling warnings as errors to get by, however with autoconf 2.72
> adding
> >> -std=gnu23 it now gets enabled for every compiler and clang-22 is more
> >> obidient and has dropped support for K&R C completely. db5 code has a
> lot
> >> of K&R C prototypes and it starts to fail vigorously. We can not keep
> >> working around with out uplifting sources to be compliant with newer C
> >> standard like C23.
> >>
> >> Therefore pin the cflags to use C99 standard as this package expects.
> >>
> >> Drop the code to disable warnings as errors selectively.
> >>
> >> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> >> ---
> >> meta/recipes-support/db/db_5.3.28.bb | 9 ++++-----
> >> 1 file changed, 4 insertions(+), 5 deletions(-)
> >
> > This seemed to trigger failures for me, e.g.:
> >
> >
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/3538#bb-step-15
> >
> > Cheers,
> >
> > Richard
>
> This is because the patch is touching lines ending with spaces, and
> these spaces have not been kept in the mail.
>
> I tweaked the patch to make it work correctly, it landed in my -success
> branch.
>
> Thanks,
> Mathieu
>
>
> --
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>
[-- Attachment #2: Type: text/html, Size: 3035 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-04-10 14:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08 4:47 [PATCH] db: Pin to use C99 std Khem Raj
2026-04-10 13:15 ` [OE-core] " Richard Purdie
2026-04-10 13:38 ` Mathieu Dubois-Briand
2026-04-10 14:00 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox