Re: [meta-freescale] Build fail due to imx-vpu-hantro_1.36.0
Sathishkumar Duraisamy <[email protected]> Tue, 13 May 2025 15:37:35 +0530
| Newsgroups | org.yoctoproject.lists.meta-freescale |
|---|---|
| Message-ID | <CAHebdzSoWHWBCmO0NG6zcSF_DP+O8ttL+_+k04Rgbk=+tyddmg@mail.gmail.com> |
--000000000000b152c70635019a75 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 13, 2025 at 11:58=E2=80=AFAM Sathishkumar D via lists.yoctoproj= ect.org <[email protected]> wrote: > Hi, > > > On Fri, May 9, 2025 at 7:32=E2=80=AFPM Max <[email protected]> wrote: > >> Am Freitag, dem 09.05.2025 um 17:03 +0530 schrieb Sathishkumar D via >> lists.yoctoproject.org: >> > On Fri, May 9, 2025 at 1:58=E2=80=AFPM Sathishkumar D via >> lists.yoctoproject.org >> > <[email protected]> wrote: >> > >> > > Dear All, >> > > >> > > I am getting a build error with imx-vpu-hantro-1.36.0. I checked the >> > > sources in devshell. I see "extern" function prototypes are >> mismatching. Do >> > > we require a patch or am I missing something?. >> > > >> > > decoder_sw/software/test/common/md5_sink.c:68:3: error: too many >> > > arguments to function 'MD5Init'; expected 0, have 1 >> > > 68 | MD5Init(&inst->ctx); >> > > | ^~~~~~~ ~~~~~~~~~~ >> > > In file included from decoder_sw/software/test/common/md5_sink.c:43: >> > > ./decoder_sw/software/test/common/swhw/md5.h:79:13: note: declared >> here >> > > 79 | extern void MD5Init(); >> > > | ^~~~~~~ >> > > decoder_sw/software/test/common/md5_sink.c: In function >> 'Md5sinkClose': >> > > decoder_sw/software/test/common/md5_sink.c:77:5: error: too many >> > > arguments to function 'MD5Final'; expected 0, have 2 >> > > 77 | MD5Final(digest, &md5sink->ctx); >> > > | ^~~~~~~~ ~~~~~~ >> > > >> > > I am getting this error with "aarch64-tdx-linux-gcc (GCC) 15.1.0" bu= t >> it >> > compiles without any issue in aarch64-tdx-linux-gcc (GCC) 13.3.0. >> > >> > Any CFLAGS to suppress the error? >> >> Looks like work is needed to fix the whole hantro recipes, what you see >> here is only the beginning >> of the GCC 15 related errors. >> >> I assume you do not need the video decoder / encoder at the moment. So I >> would advice to not build >> the hantro recipes. >> Easiest is probably to add something like this to local.conf for now: >> >> BAD_RECOMMENDATIONS:append =3D " \ >> imx-gst1.0-plugin \ >> imx-gst1.0-plugin-gplay \ >> imx-gst1.0-plugin-grecorder \ >> packagegroup-fsl-gstreamer1.0-full \ >> " >> >> or use an image recipe which does not install multimedia stuff in the >> first place, i.e. 'core-image- >> weston'. >> >> I understand from the gcc 15.1 change log, the default std for c is C23. > By adding -std=3Dgnu18, able to compile. Since hantro is not open-source, > adding flags may be sufficient. > > Now, I have pulled the changes from the master branch. Thanks Max and Otavio. > Regards, > Sathishkumar D > >> Regards, >> Max >> >> > >> > >> > > Regards, >> > > Sathishkumar D >> > > >> > > >> > > >> > > >> > > >> > >> > >> >> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#24962): > https://lists.yoctoproject.org/g/meta-freescale/message/24962 > Mute This Topic: https://lists.yoctoproject.org/mt/112895226/6416184 > Group Owner: [email protected] > Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [ > [email protected]] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > > --=20 Regards, Sathishkumar D --000000000000b152c70635019a75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g= mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, May 13,= 2025 at 11:58=E2=80=AFAM Sathishkumar D via <a href=3D"http://lists.yoctop= roject.org">lists.yoctoproject.org</a> <sathishkumar.d.cbe=3D<a href=3D"= mailto:[email protected]">[email protected]</= a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p= x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><d= iv dir=3D"ltr"><div>Hi,</div><div><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Fri, May 9, 2025 at 7:32=E2=80=AFP= M Max <<a href=3D"mailto:[email protected]" target=3D"_blank">max.oss= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex">Am Freitag, dem 09.05.2025 um 17:03 +0530 schrieb Sathishkumar= D via <a href=3D"http://lists.yoctoproject.org" rel=3D"noreferrer" target= =3D"_blank">lists.yoctoproject.org</a>:<br> > On Fri, May 9, 2025 at 1:58=E2=80=AFPM Sathishkumar D via <a href=3D"h= ttp://lists.yoctoproject.org" rel=3D"noreferrer" target=3D"_blank">lists.yo= ctoproject.org</a><br> > <sathishkumar.d.cbe=3D<a href=3D"mailto:[email protected]= t.org" target=3D"_blank">[email protected]</a>> wrote:<br= > > <br> > > Dear All,<br> > > <br> > > I am getting a build error with imx-vpu-hantro-1.36.0. I checked = the<br> > > sources in devshell. I see "extern" function prototypes= are mismatching. Do<br> > > we require a patch or am I missing something?.<br> > > <br> > > decoder_sw/software/test/common/md5_sink.c:68:3: error: too many<= br> > > arguments to function 'MD5Init'; expected 0, have 1<br> > >=C2=A0 =C2=A068 |=C2=A0 =C2=A0MD5Init(&inst->ctx);<br> > >=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0^~~~~~~ ~~~~~~~~~~<br> > > In file included from decoder_sw/software/test/common/md5_sink.c:= 43:<br> > > ./decoder_sw/software/test/common/swhw/md5.h:79:13: note: declare= d here<br> > >=C2=A0 =C2=A079 | extern void MD5Init();<br> > >=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0^~~~~~~<br> > > decoder_sw/software/test/common/md5_sink.c: In function 'Md5s= inkClose':<br> > > decoder_sw/software/test/common/md5_sink.c:77:5: error: too many<= br> > > arguments to function 'MD5Final'; expected 0, have 2<br> > >=C2=A0 =C2=A077 |=C2=A0 =C2=A0 =C2=A0MD5Final(digest, &md5sink= ->ctx);<br> > >=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0^~~~~~~~ ~~~~~~<br> > > <br> > > I am getting this error with "aarch64-tdx-linux-gcc (GCC) 15= .1.0" but it<br> > compiles without any issue in aarch64-tdx-linux-gcc (GCC) 13.3.0.<br> > <br> > Any CFLAGS to suppress the error?<br> <br> Looks like work is needed to fix the whole hantro recipes, what you see her= e is only the beginning<br> of the GCC 15 related errors.<br> <br> I assume you do not need the video decoder / encoder at the moment. So I wo= uld advice to not build<br> the hantro recipes.<br> Easiest is probably to add something like this to local.conf for now:<br> <br> BAD_RECOMMENDATIONS:append =3D " \<br> =C2=A0 =C2=A0 imx-gst1.0-plugin \<br> =C2=A0 =C2=A0 imx-gst1.0-plugin-gplay \<br> =C2=A0 =C2=A0 imx-gst1.0-plugin-grecorder \<br> =C2=A0 =C2=A0 packagegroup-fsl-gstreamer1.0-full \<br> "<br> <br> or use an image recipe which does not install multimedia stuff in the first= place, i.e. 'core-image-<br> weston'.<br> <br></blockquote><div>I understand from the gcc 15.1 change log, the defaul= t std for c is C23. By adding -std=3Dgnu18, able to compile. Since hantro i= s not open-source, adding flags may be sufficient.=C2=A0</div><div><br></di= v></div></div></blockquote><div>Now, I have pulled the changes from the mas= ter branch.=C2=A0 Thanks Max and Otavio.=C2=A0</div><blockquote class=3D"gm= ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,= 204,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div= ></div><div>Regards,</div><div>Sathishkumar D=C2=A0</div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"> Regards,<br> Max<br> <br> > <br> > <br> > > Regards,<br> > > Sathishkumar D<br> > > <br> > > <br> > > <br> > > <br> > > <br> > <br> > <br> <br> </blockquote></div></div> <br> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br> Links: You receive all messages sent to this group.<br> View/Reply Online (#24962): <a href=3D"https://lists.yoctoproject.org/g/met= a-freescale/message/24962" rel=3D"noreferrer" target=3D"_blank">https://lis= ts.yoctoproject.org/g/meta-freescale/message/24962</a><br> Mute This Topic: <a href=3D"https://lists.yoctoproject.org/mt/112895226/641= 6184" rel=3D"noreferrer" target=3D"_blank">https://lists.yoctoproject.org/m= t/112895226/6416184</a><br> Group Owner: <a href=3D"mailto:meta-freescale%[email protected]= g" target=3D"_blank">[email protected]</a><br> Unsubscribe: <a href=3D"https://lists.yoctoproject.org/g/meta-freescale/uns= ub" rel=3D"noreferrer" target=3D"_blank">https://lists.yoctoproject.org/g/m= eta-freescale/unsub</a> [<a href=3D"mailto:[email protected]" ta= rget=3D"_blank">[email protected]</a>]<br> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br> <br> </blockquote></div><div><br clear=3D"all"></div><div><br></div><span class= =3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s= ignature"><div dir=3D"ltr">Regards,<div>Sathishkumar D</div></div></div></d= iv> --000000000000b152c70635019a75--