Opened 17 months ago

Last modified 17 months ago

#67590 closed defect

openexr now broken with GCC due to cmath issue: error: 'isnan' was not declared in this scope; did you mean 'std::isnan'? — at Initial Version

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: powerpc, leopard, snowleopard, lion, mountainlion Cc:
Port: openexr

Description

Could we do something about this, please?

:info:build [ 66%] Building CXX object src/test/OpenEXRTest/CMakeFiles/OpenEXRTest.dir/compareDwa.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/src/test/OpenEXRTest && /opt/local/bin/g++-mp-12 -DILM_IMF_TEST_IMAGEDIR=\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/test/OpenEXRTest/\" -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/src/test/OpenEXRTest -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/test/OpenEXRTest -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/OpenEXR -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/cmake -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/Iex -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/IlmThread -isystem /opt/local/include -isystem /opt/local/include/Imath -pipe -Os -D__STDC_FORMAT_MACROS -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -MD -MT src/test/OpenEXRTest/CMakeFiles/OpenEXRTest.dir/compareDwa.cpp.o -MF CMakeFiles/OpenEXRTest.dir/compareDwa.cpp.o.d -o CMakeFiles/OpenEXRTest.dir/compareDwa.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/test/OpenEXRTest/compareDwa.cpp
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/test/OpenEXRCoreTest/compression.cpp: In function 'bool withinDWAErrorBounds(uint16_t, uint16_t)':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/test/OpenEXRCoreTest/compression.cpp:162:10: error: 'isnan' was not declared in this scope; did you mean 'std::isnan'?
:info:build   162 |     if (!isnan (a1))
:info:build       |          ^~~~~
:info:build       |          std::isnan
:info:build In file included from /opt/local/include/LegacySupport/cmath:54,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/test/OpenEXRCoreTest/compression.cpp:26:
:info:build /opt/local/include/gcc12/c++/cmath:632:5: note: 'std::isnan' declared here
:info:build   632 |     isnan(_Tp __x)
:info:build       |     ^~~~~
:info:build [ 66%] Building CXX object src/examples/CMakeFiles/OpenEXRExamples.dir/main.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/src/examples && /opt/local/bin/g++-mp-12  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/src/examples -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/examples -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/OpenEXR -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/cmake -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/Iex -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/IlmThread -isystem /opt/local/include -isystem /opt/local/include/Imath -pipe -Os -D__STDC_FORMAT_MACROS -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -MD -MT src/examples/CMakeFiles/OpenEXRExamples.dir/main.cpp.o -MF CMakeFiles/OpenEXRExamples.dir/main.cpp.o.d -o CMakeFiles/OpenEXRExamples.dir/main.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/examples/main.cpp
:info:build [ 66%] Building CXX object src/bin/exrenvmap/CMakeFiles/exrenvmap.dir/readInputImage.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/src/bin/exrenvmap && /opt/local/bin/g++-mp-12  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/src/bin/exrenvmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/bin/exrenvmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/OpenEXR -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build/cmake -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/Iex -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/lib/IlmThread -isystem /opt/local/include -isystem /opt/local/include/Imath -pipe -Os -D__STDC_FORMAT_MACROS -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -MD -MT src/bin/exrenvmap/CMakeFiles/exrenvmap.dir/readInputImage.cpp.o -MF CMakeFiles/exrenvmap.dir/readInputImage.cpp.o.d -o CMakeFiles/exrenvmap.dir/readInputImage.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/openexr-3.1.8/src/bin/exrenvmap/readInputImage.cpp
:info:build make[2]: *** [src/test/OpenEXRCoreTest/CMakeFiles/OpenEXRCoreTest.dir/compression.cpp.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openexr/openexr/work/build'
:info:build make[1]: *** [src/test/OpenEXRCoreTest/CMakeFiles/OpenEXRCoreTest.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

Also: https://github.com/AcademySoftwareFoundation/openexr/issues/1412#issuecomment-1581598674

Change History (0)

Note: See TracTickets for help on using tickets.