Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937887 - media-libs/openimageio-2.5.13.1 fails with gcc-15.0.0_pre20240811 at dicominput.cpp: const struct OFrvalue_storage<T, <anonymous> >’ has no member named ‘pt’ [-Wtemplate-body]
Summary: media-libs/openimageio-2.5.13.1 fails with gcc-15.0.0_pre20240811 at dicominp...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-13 22:27 UTC by tdr
Modified: 2024-08-15 02:32 UTC (History)
1 user (show)

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


Attachments
USE="dicom" emerge fail log (openimageio-2.5.13.1-build.fail.log,199.66 KB, text/plain)
2024-08-13 22:29 UTC, tdr
Details
emerge--info (emerge--info.txt,6.10 KB, text/plain)
2024-08-13 22:30 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-08-13 22:27:08 UTC
dicom component fails to build with gcc-15 with "no member" errors due to template changes

Reproducible: Always

Steps to Reproduce:
select gcc-15
USE="dicom" emerge -1 =media-libs/openimageio-2.5.13.1 
Actual Results:  
FAILED: src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/dicom.imageio/dicominput.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DDISABLE_FITS -DEMBED_PLUGINS=1 -DFMT_HEADER_ONLY=1 -DOIIO_FFMPEG_VERSION=\"6.0\" -DOIIO_FREETYPE_VERSION=\"2.13.2\" -DOIIO_INTERNAL=1 -DOIIO_OPENEXR_CORE_DEFAULT=1 -DOIIO_OpenCV_VERSION=\"4.9.0\" -DOIIO_PYTHON_VERSION=\"3.12.5\" -DOIIO_QT_VERSION=\"6.7.2\" -DOIIO_TBB_VERSION=\"2021.13.0\" -DOIIO_USE_EXR_C_API=1 -DOpenImageIO_EXPORTS -DUSE_DCMTK=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE=1 -DUSE_GIF -DUSE_HEIF=1 -DUSE_JPEG_TURBO=1 -DUSE_LIBRAW=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -DUSE_OPENCV=1 -DUSE_OPENJPEG -DUSE_OPENVDB=1 -DUSE_PTEX -DUSE_STD_FILESYSTEM -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/openimageio-2.5.13.1/work/OpenImageIO-2.5.13.1_build/include/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-2.5.13.1/work/OpenImageIO-2.5.13.1_build/include -I/var/tmp/portage/media-libs/openimageio-2.5.13.1/work/OpenImageIO-2.5.13.1_build/src/include -I/var/tmp/portage/media-libs/openimageio-2.5.13.1/work/OpenImageIO-2.5.13.1/src/include -I/usr/include/openjpeg-2.5 -I/OpenEXR -isystem /usr/include/opencv4 -isystem /usr/include/Imath -isystem /usr/include/OpenEXR -isystem /usr/include/freetype2  -march=native -O3 -flto=jobserver -mprefer-vector-width=512 -fno-vect-cost-model -pipe -std=c++17 -fPIC -fvisibility=hidden -Wall -Wno-unused-local-typedefs -Wno-unused-result -Wno-aligned-new -Wno-noexcept-type -fno-math-errno -maes -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mavx512f -mf16c -MD -MT src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/dicom.imageio/dicominput.cpp.o -MF src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/dicom.imageio/dicominput.cpp.o.d -o src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/dicom.imageio/dicominput.cpp.o -c /var/tmp/portage/media-libs/openimageio-2.5.13.1/work/OpenImageIO-2.5.13.1/src/dicom.imageio/dicominput.cpp
In file included from /usr/include/dcmtk/ofstd/ofmem.h:27,
                 from /usr/include/dcmtk/oflog/appender.h:33,
                 from /usr/include/dcmtk/oflog/spi/apndatch.h:33,
                 from /usr/include/dcmtk/oflog/logger.h:36,
                 from /usr/include/dcmtk/oflog/oflog.h:28,
                 from /usr/include/dcmtk/dcmdata/dctypes.h:27,
                 from /usr/include/dcmtk/dcmdata/dctk.h:28,
                 from /var/tmp/portage/media-libs/openimageio-2.5.13.1/work/OpenImageIO-2.5.13.1/src/dicom.imageio/dicominput.cpp:14:
/usr/include/dcmtk/ofstd/ofutil.h: In constructor ‘OFrvalue_storage<T, <anonymous> >::type::type(const OFrvalue_storage<T, <anonymous> >&)’:
/usr/include/dcmtk/ofstd/ofutil.h:79:18: error: ‘const struct OFrvalue_storage<T, <anonymous> >’ has no member named ‘pt’ [-Wtemplate-body]
   79 |         : t( rhs.pt ) {}
      |                  ^~
Comment 1 tdr 2024-08-13 22:29:13 UTC
Created attachment 900080 [details]
USE="dicom" emerge fail log
Comment 2 tdr 2024-08-13 22:30:42 UTC
Created attachment 900081 [details]
emerge--info
Comment 3 tdr 2024-08-13 22:39:37 UTC
 GCC 15 now diagnoses failed lookups in non-instantiated templates
since r15-2117-g313afcfdabeab3 [0]. This exposes broken latent code.
[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=r15-2117-g313afcfdabeab3.