[MacPorts] #69436: libjxl fails on 10.6 Snow Leopard - onstexpr function never produces a constant expression [-Winvalid-constexpr]
MacPorts
noreply at macports.org
Sat Mar 2 23:08:11 UTC 2024
#69436: libjxl fails on 10.6 Snow Leopard - onstexpr function never produces a
constant expression [-Winvalid-constexpr]
--------------------------+--------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: snow leopard | Port: libjxl
--------------------------+--------------------
Build dies with:
{{{
In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.1/lib/jxl/dec_cache.h:26:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.1/lib/jxl/coeff_order.h:33:42:
error: constexpr function never produces a constant expression [-Winvalid-
constexpr]
static JXL_MAYBE_UNUSED constexpr size_t CoeffOrderOffset(size_t order,
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.1/lib/jxl/coeff_order.h:35:10:
note: non-constexpr function 'operator[]' cannot be used in a constant
expression
return kCoeffOrderOffset[3 * order + c] * kDCTBlockSize;
^
/opt/local/libexec/llvm-11/bin/../include/c++/v1/array:204:21: note:
declared here
const_reference operator[](size_type __n) const _NOEXCEPT {
^
[ 20%] Building CXX object lib/CMakeFiles/jxl_extras_core-
obj.dir/extras/dec/pnm.cc.o
}}}
Build is with clang 11
--
Ticket URL: <https://trac.macports.org/ticket/69436>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list