Re: [meta-freescale] Build fail due to imx-vpu-hantro_1.36.0

Sathishkumar Duraisamy <[email protected]> Tue, 13 May 2025 11:58:05 +0530
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <CAHebdzSm=j_z+sGZ8Z-GtyT8t4c8bHiLEkqvBmncWq5eEN4P7A@mail.gmail.com>
--000000000000c547050634fe8907
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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.yoctopr=
oject.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 he=
re
> > >   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" but
> 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.

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 (#24958):
> https://lists.yoctoproject.org/g/meta-freescale/message/24958
> > Mute This Topic: https://lists.yoctoproject.org/mt/112895226/3617484
> > 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-
> >
>
>

--000000000000c547050634fe8907
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><br><div class=3D"gmail_quote=
 gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, May 9=
, 2025 at 7:32=E2=80=AFPM Max &lt;<a href=3D"mailto:[email protected]">m=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">Am Freitag, dem 09.05.2025 um 17:03 +0530 schrieb Sathis=
hkumar D via <a href=3D"http://lists.yoctoproject.org" rel=3D"noreferrer" t=
arget=3D"_blank">lists.yoctoproject.org</a>:<br>
&gt; 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>
&gt; &lt;sathishkumar.d.cbe=3D<a href=3D"mailto:[email protected]=
t.org" target=3D"_blank">[email protected]</a>&gt; wrote:<br=
>
&gt; <br>
&gt; &gt; Dear All,<br>
&gt; &gt; <br>
&gt; &gt; I am getting a build error with imx-vpu-hantro-1.36.0. I checked =
the<br>
&gt; &gt; sources in devshell. I see &quot;extern&quot; function prototypes=
 are mismatching. Do<br>
&gt; &gt; we require a patch or am I missing something?.<br>
&gt; &gt; <br>
&gt; &gt; decoder_sw/software/test/common/md5_sink.c:68:3: error: too many<=
br>
&gt; &gt; arguments to function &#39;MD5Init&#39;; expected 0, have 1<br>
&gt; &gt;=C2=A0 =C2=A068 |=C2=A0 =C2=A0MD5Init(&amp;inst-&gt;ctx);<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0^~~~~~~ ~~~~~~~~~~<br>
&gt; &gt; In file included from decoder_sw/software/test/common/md5_sink.c:=
43:<br>
&gt; &gt; ./decoder_sw/software/test/common/swhw/md5.h:79:13: note: declare=
d here<br>
&gt; &gt;=C2=A0 =C2=A079 | extern void MD5Init();<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0^~~~~~~<br>
&gt; &gt; decoder_sw/software/test/common/md5_sink.c: In function &#39;Md5s=
inkClose&#39;:<br>
&gt; &gt; decoder_sw/software/test/common/md5_sink.c:77:5: error: too many<=
br>
&gt; &gt; arguments to function &#39;MD5Final&#39;; expected 0, have 2<br>
&gt; &gt;=C2=A0 =C2=A077 |=C2=A0 =C2=A0 =C2=A0MD5Final(digest, &amp;md5sink=
-&gt;ctx);<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0^~~~~~~~ ~~~~~~<br>
&gt; &gt; <br>
&gt; &gt; I am getting this error with &quot;aarch64-tdx-linux-gcc (GCC) 15=
.1.0&quot; but it<br>
&gt; compiles without any issue in aarch64-tdx-linux-gcc (GCC) 13.3.0.<br>
&gt; <br>
&gt; 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 &quot; \<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>
&quot;<br>
<br>
or use an image recipe which does not install multimedia stuff in the first=
 place, i.e. &#39;core-image-<br>
weston&#39;.<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>Regards,</div><div>Sathishkumar D=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">
Regards,<br>
Max<br>
<br>
&gt; <br>
&gt; <br>
&gt; &gt; Regards,<br>
&gt; &gt; Sathishkumar D<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br>
&gt; Links: You receive all messages sent to this group.<br>
&gt; View/Reply Online (#24958): <a href=3D"https://lists.yoctoproject.org/=
g/meta-freescale/message/24958" rel=3D"noreferrer" target=3D"_blank">https:=
//lists.yoctoproject.org/g/meta-freescale/message/24958</a><br>
&gt; Mute This Topic: <a href=3D"https://lists.yoctoproject.org/mt/11289522=
6/3617484" rel=3D"noreferrer" target=3D"_blank">https://lists.yoctoproject.=
org/mt/112895226/3617484</a><br>
&gt; Group Owner: <a href=3D"mailto:meta-freescale%[email protected]=
ct.org" target=3D"_blank">[email protected]</a><b=
r>
&gt; Unsubscribe: <a href=3D"https://lists.yoctoproject.org/g/meta-freescal=
e/unsub" rel=3D"noreferrer" target=3D"_blank">https://lists.yoctoproject.or=
g/g/meta-freescale/unsub</a> [<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>]<br>
&gt; -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br>
&gt; <br>
<br>
</blockquote></div></div>

--000000000000c547050634fe8907--