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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 936681
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-13 22:27 UTC by tdr
Modified: 2025-01-05 20:35 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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-24 05:52:11 UTC
commit 1f97cb6d7e8d694f6ea9cfa4f4e5d2f0fc0b470a (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Tue Dec 24 05:46:21 2024 +0000

    sci-libs/dcmtk: add 3.6.9

    Another ODR issue has appeared, not yet reported upstream.

    Bug: https://bugs.gentoo.org/862699
    Closes: https://bugs.gentoo.org/936681
    Closes: https://bugs.gentoo.org/937991
    Signed-off-by: Sam James <sam@gentoo.org>
Comment 5 Larry the Git Cow gentoo-dev 2025-01-05 20:35:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa90c53710c45618987773803fda61b5af39e2bc

commit fa90c53710c45618987773803fda61b5af39e2bc
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-11-11 19:17:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-05 20:33:24 +0000

    media-libs/openimageio: add 2.5.18.0
    
    Bug: https://bugs.gentoo.org/937887
    Closes: https://bugs.gentoo.org/940297
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openimageio/Manifest                    |   3 +
 .../openimageio-2.5.18.0-tests-optional.patch      |  31 +++
 media-libs/openimageio/openimageio-2.5.18.0.ebuild | 302 +++++++++++++++++++++
 3 files changed, 336 insertions(+)