* Build error with dunfell release "yocto-3.1.24"
[not found] <BYAPR11MB28862F0807337647C5351586C2899@BYAPR11MB2886.namprd11.prod.outlook.com>
@ 2023-03-29 16:51 ` Gaurav Gupta (gauragup)
2023-03-29 18:03 ` [OE-core] " Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Gaurav Gupta (gauragup) @ 2023-03-29 16:51 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]
Hello,
On latest “dunfell” branch, there’s a compiler warning/error when building QEMU.
The patch for CVE-2021-3929 applied on dunfell returns a value for a void function: https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
This results in the following warning/error:
<ws>/qemu/4.2.0-r0/qemu-4.2.0/hw/block/nvme.c:77:6: error: void function 'nvme_addr_read' should not return a value [-Wreturn-type]
return NVME_DATA_TRAS_ERROR;
^ ~~~~~~~~~~~~~~~~~~~~
In newer versions of qemu, the functions is changed to have a return value, but that is not present in the version of qemu used in “dunfell”.
Thanks,
Gaurav
[-- Attachment #2: Type: text/html, Size: 3893 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] Build error with dunfell release "yocto-3.1.24"
2023-03-29 16:51 ` Build error with dunfell release "yocto-3.1.24" Gaurav Gupta (gauragup)
@ 2023-03-29 18:03 ` Khem Raj
2023-03-29 19:17 ` Steve Sakoman
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2023-03-29 18:03 UTC (permalink / raw)
To: gauragup; +Cc: openembedded-core
On Wed, Mar 29, 2023 at 9:51 AM Gaurav Gupta (gauragup) via
lists.openembedded.org <gauragup=cisco.com@lists.openembedded.org>
wrote:
>
> Hello,
>
>
>
> On latest “dunfell” branch, there’s a compiler warning/error when building QEMU.
>
>
>
> The patch for CVE-2021-3929 applied on dunfell returns a value for a void function: https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
>
>
>
> This results in the following warning/error:
>
>
>
> <ws>/qemu/4.2.0-r0/qemu-4.2.0/hw/block/nvme.c:77:6: error: void function 'nvme_addr_read' should not return a value [-Wreturn-type]
>
> return NVME_DATA_TRAS_ERROR;
>
> ^ ~~~~~~~~~~~~~~~~~~~~
>
>
>
> In newer versions of qemu, the functions is changed to have a return value, but that is not present in the version of qemu used in “dunfell”.
>
>
yeah perhaps we need to backport
https://github.com/qemu/qemu/commit/94cbcf530f9d9789b75ef1ae227ba4a4f702bf7d
as well.
https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
>
> Thanks,
>
> Gaurav
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#179292): https://lists.openembedded.org/g/openembedded-core/message/179292
> Mute This Topic: https://lists.openembedded.org/mt/97933015/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] Build error with dunfell release "yocto-3.1.24"
2023-03-29 18:03 ` [OE-core] " Khem Raj
@ 2023-03-29 19:17 ` Steve Sakoman
2023-03-29 23:47 ` Gaurav Gupta (gauragup)
0 siblings, 1 reply; 4+ messages in thread
From: Steve Sakoman @ 2023-03-29 19:17 UTC (permalink / raw)
To: gauragup; +Cc: openembedded-core, Khem Raj
On Wed, Mar 29, 2023 at 8:03 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Mar 29, 2023 at 9:51 AM Gaurav Gupta (gauragup) via
> lists.openembedded.org <gauragup=cisco.com@lists.openembedded.org>
> wrote:
> >
> > Hello,
> >
> >
> >
> > On latest “dunfell” branch, there’s a compiler warning/error when building QEMU.
> >
> >
> >
> > The patch for CVE-2021-3929 applied on dunfell returns a value for a void function: https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
> >
> >
> >
> > This results in the following warning/error:
> >
> >
> >
> > <ws>/qemu/4.2.0-r0/qemu-4.2.0/hw/block/nvme.c:77:6: error: void function 'nvme_addr_read' should not return a value [-Wreturn-type]
> >
> > return NVME_DATA_TRAS_ERROR;
> >
> > ^ ~~~~~~~~~~~~~~~~~~~~
> >
> >
> >
> > In newer versions of qemu, the functions is changed to have a return value, but that is not present in the version of qemu used in “dunfell”.
> >
> >
>
> yeah perhaps we need to backport
> https://github.com/qemu/qemu/commit/94cbcf530f9d9789b75ef1ae227ba4a4f702bf7d
> as well.
>
> https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
I haven't seen this error on the autobuilder!
Gaurav, could you try the patch that Khem suggested above and see if
that works for you?
If so please submit a patch!
Thanks,
Steve
> > Thanks,
> >
> > Gaurav
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#179293): https://lists.openembedded.org/g/openembedded-core/message/179293
> Mute This Topic: https://lists.openembedded.org/mt/97933015/3620601
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [steve@sakoman.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] Build error with dunfell release "yocto-3.1.24"
2023-03-29 19:17 ` Steve Sakoman
@ 2023-03-29 23:47 ` Gaurav Gupta (gauragup)
0 siblings, 0 replies; 4+ messages in thread
From: Gaurav Gupta (gauragup) @ 2023-03-29 23:47 UTC (permalink / raw)
To: Steve Sakoman; +Cc: openembedded-core, Khem Raj
[-- Attachment #1: Type: text/plain, Size: 2386 bytes --]
Yes, testing the build right now, will post the patch.
Thanks,
Gaurav
From: Steve Sakoman <steve@sakoman.com>
Date: Wednesday, March 29, 2023 at 12:18 PM
To: Gaurav Gupta (gauragup) <gauragup@cisco.com>
Cc: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org>, Khem Raj <raj.khem@gmail.com>
Subject: Re: [OE-core] Build error with dunfell release "yocto-3.1.24"
On Wed, Mar 29, 2023 at 8:03 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Mar 29, 2023 at 9:51 AM Gaurav Gupta (gauragup) via
> lists.openembedded.org <gauragup=cisco.com@lists.openembedded.org>
> wrote:
> >
> > Hello,
> >
> >
> >
> > On latest “dunfell” branch, there’s a compiler warning/error when building QEMU.
> >
> >
> >
> > The patch for CVE-2021-3929 applied on dunfell returns a value for a void function: https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
> >
> >
> >
> > This results in the following warning/error:
> >
> >
> >
> > <ws>/qemu/4.2.0-r0/qemu-4.2.0/hw/block/nvme.c:77:6: error: void function 'nvme_addr_read' should not return a value [-Wreturn-type]
> >
> > return NVME_DATA_TRAS_ERROR;
> >
> > ^ ~~~~~~~~~~~~~~~~~~~~
> >
> >
> >
> > In newer versions of qemu, the functions is changed to have a return value, but that is not present in the version of qemu used in “dunfell”.
> >
> >
>
> yeah perhaps we need to backport
> https://github.com/qemu/qemu/commit/94cbcf530f9d9789b75ef1ae227ba4a4f702bf7d
> as well.
>
> https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58
I haven't seen this error on the autobuilder!
Gaurav, could you try the patch that Khem suggested above and see if
that works for you?
If so please submit a patch!
Thanks,
Steve
> > Thanks,
> >
> > Gaurav
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#179293): https://lists.openembedded.org/g/openembedded-core/message/179293
> Mute This Topic: https://lists.openembedded.org/mt/97933015/3620601
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [steve@sakoman.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
[-- Attachment #2: Type: text/html, Size: 5323 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-29 23:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <BYAPR11MB28862F0807337647C5351586C2899@BYAPR11MB2886.namprd11.prod.outlook.com>
2023-03-29 16:51 ` Build error with dunfell release "yocto-3.1.24" Gaurav Gupta (gauragup)
2023-03-29 18:03 ` [OE-core] " Khem Raj
2023-03-29 19:17 ` Steve Sakoman
2023-03-29 23:47 ` Gaurav Gupta (gauragup)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.