Skip to contentSkip to conversation

Build fail due to imx-vpu-hantro_1.36.0

meta-freescale Sathishkumar Duraisamy 2 participants 4 messages May 9, 2025 – May 13, 2025 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 20 lines · Sathishkumar D via lists.yoctoproject.org

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);
     |     ^~~~~~~~ ~~~~~~
Quoted 1 line

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?

Quoted 15 lines

Regards,
Sathishkumar D

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#24956):
https://lists.yoctoproject.org/g/meta-freescale/message/24956
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]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Am Freitag, dem 09.05.2025 um 17:03 +0530 schrieb Sathishkumar D via lists.yoctoproject.org:

Quoted 23 lines
Quoted 20 lines · Sathishkumar D via lists.yoctoproject.org

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);
     |     ^~~~~~~~ ~~~~~~
Quoted 4 lines
Quoted 1 line

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 = " \
    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'.

Regards,
Max

Quoted 17 lines
Quoted 9 lines

Regards,
Sathishkumar D

-=-=-=-=-=-=-=-=-=-=-=-
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]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Hi,

Quoted 46 lines · Max

Am Freitag, dem 09.05.2025 um 17:03 +0530 schrieb Sathishkumar D via lists.yoctoproject.org:

Quoted 7 lines
Quoted 4 lines · Sathishkumar D via lists.yoctoproject.org

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

Quoted 16 lines
Quoted 16 lines

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);
     |     ^~~~~~~~ ~~~~~~
Quoted 1 line
Quoted 1 line

I am getting this error with "aarch64-tdx-linux-gcc (GCC) 15.1.0" but

it

Quoted 3 lines

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 = " \
    imx-gst1.0-plugin \
    imx-gst1.0-plugin-gplay \
    imx-gst1.0-plugin-grecorder \
    packagegroup-fsl-gstreamer1.0-full \
Quoted 7 lines

"

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=gnu18, able to compile. Since hantro is not open-source, adding flags may be sufficient.

Regards,
Sathishkumar D

Quoted 24 lines

Regards,
Max

Quoted 9 lines
Quoted 9 lines

Regards,
Sathishkumar D

Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#24958):

https://lists.yoctoproject.org/g/meta-freescale/message/24958

Quoted 3 lines

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]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 60 lines · Sathishkumar D via lists.yoctoproject.org

Hi,

Quoted 55 lines · Max

Am Freitag, dem 09.05.2025 um 17:03 +0530 schrieb Sathishkumar D via lists.yoctoproject.org:

Quoted 1 line

On Fri, May 9, 2025 at 1:58 PM Sathishkumar D via

lists.yoctoproject.org

Quoted 6 lines
Quoted 4 lines · <[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

Quoted 8 lines
Quoted 8 lines

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

Quoted 3 lines
Quoted 3 lines
  79 | extern void MD5Init();
     |             ^~~~~~~

decoder_sw/software/test/common/md5_sink.c: In function

'Md5sinkClose':

Quoted 6 lines
Quoted 6 lines

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

Quoted 3 lines

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 = " \
    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'.

Quoted 5 lines
Quoted 1 line

I understand from the gcc 15.1 change log, the default std for c is C23.

By adding -std=gnu18, 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.

Quoted 30 lines

Regards,
Sathishkumar D

Quoted 16 lines

Regards,
Max

Quoted 11 lines
Quoted 9 lines

Regards,
Sathishkumar D

-=-=-=-=-=-=-=-=-=-=-=-
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Regards,
Sathishkumar D