[MacPorts] #67590: openexr @3.1.8: build failures: 10.8 and earlier (unknown type name 'dispatch_semaphore_t'); ppc/gcc: ('isnan' was not declared in this scope) (was: openexr now broken with GCC due to cmath issue: error: 'isnan' was not declared in this scope; did you mean 'std::isnan'?)
MacPorts
noreply at macports.org
Wed Jun 7 22:46:44 UTC 2023
#67590: openexr @3.1.8: build failures: 10.8 and earlier (unknown type name
'dispatch_semaphore_t'); ppc/gcc: ('isnan' was not declared in this scope)
-------------------------+-------------------------------------------------
Reporter: | Owner: mascguy
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: powerpc, leopard, snowleopard,
Port: openexr | lion, mountainlion
-------------------------+-------------------------------------------------
Changes (by mascguy):
* keywords: powerpc, leopard, snowleopard => powerpc, leopard,
snowleopard, lion, mountainlion
Old 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
New description:
For Intel, 10.8 and earlier:
{{{
work/openexr-3.1.8/src/lib/IlmThread/IlmThreadSemaphore.h:64:13: error:
unknown type name 'dispatch_semaphore_t'
}}}
For PPC, 10.5/10.6:
{{{
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'?
}}}
Also:
https://github.com/AcademySoftwareFoundation/openexr/issues/1412#issuecomment-1581598674
--
--
Ticket URL: <https://trac.macports.org/ticket/67590#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list