Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955540 - media-libs/avidemux-core-2.8.1-r1: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
Summary: media-libs/avidemux-core-2.8.1-r1: error: non-constant-expression cannot be n...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2025-05-06 19:46 UTC by eroen
Modified: 2025-05-07 13:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs:avidemux-core-2.8.1-r1:20250506-193442.log (media-libs:avidemux-core-2.8.1-r1:20250506-193442.log,541.44 KB, text/x-log)
2025-05-06 19:46 UTC, eroen
Details
emerge --info &c. (file_955540.txt,14.22 KB, text/plain)
2025-05-06 19:47 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2025-05-06 19:46:02 UTC
Created attachment 927952 [details]
media-libs:avidemux-core-2.8.1-r1:20250506-193442.log

This is using clang version 20.1.4.


/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/src/ADM_colorspace.cpp:640:16: error:
      non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to
      'int' in initializer list [-Wc++11-narrowing]
  640 |     int xs[4]={ADM_IMAGE_ALIGN(arg->srcWidth),0,0,0};
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/include/ADM_image.h:44:28: note:
      expanded from macro 'ADM_IMAGE_ALIGN'
   44 | #define ADM_IMAGE_ALIGN(x) ((x+63)&(~63))
      |                            ^~~~~~~~~~~~~~
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/src/ADM_colorspace.cpp:640:16: note:
      insert an explicit cast to silence this issue
  640 |     int xs[4]={ADM_IMAGE_ALIGN(arg->srcWidth),0,0,0};
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                static_cast<int>(             )
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/include/ADM_image.h:44:28: note:
      expanded from macro 'ADM_IMAGE_ALIGN'
   44 | #define ADM_IMAGE_ALIGN(x) ((x+63)&(~63))
      |                            ^~~~~~~~~~~~~~
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/src/ADM_colorspace.cpp:641:16: error:
      non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to
      'int' in initializer list [-Wc++11-narrowing]
  641 |     int xd[4]={ADM_IMAGE_ALIGN(arg->dstWidth),0,0,0};
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/include/ADM_image.h:44:28: note:
      expanded from macro 'ADM_IMAGE_ALIGN'
   44 | #define ADM_IMAGE_ALIGN(x) ((x+63)&(~63))
      |                            ^~~~~~~~~~~~~~
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/src/ADM_colorspace.cpp:641:16: note:
      insert an explicit cast to silence this issue
  641 |     int xd[4]={ADM_IMAGE_ALIGN(arg->dstWidth),0,0,0};
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                static_cast<int>(             )
/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core/ADM_coreImage/include/ADM_image.h:44:28: note:
      expanded from macro 'ADM_IMAGE_ALIGN'
   44 | #define ADM_IMAGE_ALIGN(x) ((x+63)&(~63))
      |                            ^~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [ADM_coreImage/src/CMakeFiles/ADM_coreImage6.dir/build.make:129: ADM_coreImage/src/CMakeFiles/ADM_coreImage6.dir/ADM_colorspace.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core_build'
make[1]: *** [CMakeFiles/Makefile2:1628: ADM_coreImage/src/CMakeFiles/ADM_coreImage6.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/avidemux-core-2.8.1-r1/work/avidemux2-2.8.1/avidemux_core_build'
make: *** [Makefile:139: all] Error 2
 * ERROR: media-libs/avidemux-core-2.8.1-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 eroen 2025-05-06 19:47:39 UTC
Created attachment 927953 [details]
emerge --info &c.
Comment 2 eroen 2025-05-06 20:15:02 UTC
It builds with gcc 14.2.1_p20250419.