Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953974 - =media-gfx/darktable-5.0.0-r1 failed with sys-devel/gcc-15.0.9999 : error: template with C linkage
Summary: =media-gfx/darktable-5.0.0-r1 failed with sys-devel/gcc-15.0.9999 : error: t...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Markus Meier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-04-17 22:04 UTC by tdr
Modified: 2025-04-17 22:15 UTC (History)
1 user (show)

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


Attachments
emerge--info (emerge--info.txt,6.48 KB, text/plain)
2025-04-17 22:05 UTC, tdr
Details
failed build log (darktable-5.0.0-r1.build.log.txt.gz,39.21 KB, application/x-gzip)
2025-04-17 22:06 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2025-04-17 22:04:15 UTC
FAILED: lib64/darktable/plugins/imageio/format/CMakeFiles/exr.dir/exr.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DAVIF_DLL -DDT_HAVE_SIGNAL_TRACE -DGDK_DISABLE_DEPRECATED -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DHAVE_BUILTIN_CPU_SUPPORTS -DHAVE_CONFIG_H -DHAVE_GPHOTO2 -DHAVE_ICU -DHAVE_IMATH -DHAVE_ISO_CODES -DHAVE_KWALLET -DHAVE_LIBAVIF=1 -DHAVE_LIBHEIF=1 -DHAVE_LIBJXL -DHAVE_LIBRAW=1 -DHAVE_LIBSECRET -DHAVE_LIBSHARPYUV=1 -DHAVE_OPENCL -DHAVE_OPENEXR -DHAVE_OPENJPEG -DHAVE_PRINT -DHAVE_VISIBILITY -DHAVE_WEBP -DLIBHEIF_EXPORTS -DSQLITE_CORE -DSQLITE_ENABLE_ICU -DUSE_COLORDGTK -D_RELEASE -D_XOPEN_SOURCE=700 -Dexr_EXPORTS -I/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0_build/lib64/darktable/plugins/imageio/format -I/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format -I/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src -I/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0_build/bin -isystem /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/external -isystem /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/external/OpenCL -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/webp -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/atk-1.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/elogind -isystem /usr/include/fribidi -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/gio-unix-2.0 -isystem /usr/lib64/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/sysprof-6 -isystem /usr/include/libxml2 -isystem /usr/include/lensfun -isystem /usr/include/librsvg-2.0 -isystem /usr/include/json-glib-1.0 -isystem /usr/include/openjpeg-2.5 -isystem /usr/include/libsecret-1 -isystem /usr/include/colord-1 -isystem /usr/include/Imath -isystem /usr/include/OpenEXR  -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -Werror=lto-type-mismatch -Werror=odr -Werror=strict-aliasing -mavx -msse3 -Wall -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wmaybe-uninitialized -Wno-unknown-pragmas -Wno-error=varargs -Wno-format-truncation -Wno-error=address-of-packed-member -fopenmp -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -include common/module_api.h -include imageio/format/imageio_format_api.h -MD -MT lib64/darktable/plugins/imageio/format/CMakeFiles/exr.dir/exr.cc.o -MF lib64/darktable/plugins/imageio/format/CMakeFiles/exr.dir/exr.cc.o.d -o lib64/darktable/plugins/imageio/format/CMakeFiles/exr.dir/exr.cc.o -c /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/exr.cc
In file included from /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/imageio_exr.hh:22,
                 from /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/exr.cc:29:
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/ciso646:46:4: warning: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Wcpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
In file included from /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/common/darktable.h:85,
                 from /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/common/colorspaces.h:21,
                 from /var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:34,
                 from <command-line>:
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:448:1: error: template with C linkage
  448 | template<typename __T, omp_allocator_handle_t __Handle>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:475:1: error: template with C linkage
  475 | template<typename __T, typename __U, omp_allocator_handle_t __Handle>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:483:1: error: template with C linkage
  483 | template<typename __T, omp_allocator_handle_t __Handle,
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:492:1: error: template with C linkage
  492 | template<typename __T, typename __U, omp_allocator_handle_t __Handle>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:500:1: error: template with C linkage
  500 | template<typename __T, omp_allocator_handle_t __Handle,
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:511:1: error: template with C linkage
  511 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:515:1: error: template with C linkage
  515 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:519:1: error: template with C linkage
  519 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:523:1: error: template with C linkage
  523 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:527:1: error: template with C linkage
  527 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:531:1: error: template with C linkage
  531 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:535:1: error: template with C linkage
  535 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:539:1: error: template with C linkage
  539 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:543:1: error: template with C linkage
  543 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/omp.h:557:1: error: template with C linkage
  557 | template<typename __T>
      | ^~~~~~~~
/var/tmp/portage/media-gfx/darktable-5.0.0-r1/work/darktable-5.0.0/src/imageio/format/imageio_format_api.h:24:1: note: ‘extern "C"’ linkage started here
   24 | extern "C" {
      | ^~~~~~~~~~

Reproducible: Always

Steps to Reproduce:
emerge sys-devel/gcc-15.0.9999
emerge marketable

[ebuild   R    ] media-gfx/darktable-5.0.0-r1::gentoo  USE="avif colord cups gphoto2 heif jpeg2k jpegxl keyring kwallet opencl openexr openmp tools webp -doc -gamepad -geolocation -graphicsmagick -lto -lua -midi -test" CPU_FLAGS_X86="avx sse3" L10N="-cs -de -es -fi -fr -ja -nl -pt-BR -sl -sq -uk -zh-CN -zh-TW" LUA_SINGLE_TARGET="lua5-4" 0 KiB



last successful build was with sys-devel/gcc-15.0.1_pre20250413
Comment 1 tdr 2025-04-17 22:05:17 UTC
Created attachment 925174 [details]
emerge--info
Comment 2 tdr 2025-04-17 22:06:32 UTC
Created attachment 925175 [details]
failed build log