Cannot install 7.4 in Catalina
mfakhrys opened this issue · 1 comments
mfakhrys commented
Describe the bug
I cannot install the php@7.4 in MacOS Catalina
PHP versions
7.4
To Reproduce
brew update
❯ brew install shivammathur/php/php@7.4
Expected behavior
PHP 7.4 installed
Screenshots/Logs
==> cmake -S . -B build -DJPEGXL_FORCE_SYSTEM_BROTLI=ON -DJPEGXL_FORCE_SYSTEM_LCMS2=ON -D
==> cmake --build build
Last 15 lines from /Users/it/Library/Logs/Homebrew/jpeg-xl/02.cmake:
In file included from /tmp/jpeg-xl-20240305-43503-y31q93/libjxl-0.10.1/lib/jxl/dec_cache.h:26:
/tmp/jpeg-xl-20240305-43503-y31q93/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,
^
/tmp/jpeg-xl-20240305-43503-y31q93/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;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/array:195:21: note: declared here
const_reference operator[](size_type __n) const _NOEXCEPT {return __elems_[__n];}
^
1 error generated.
make[2]: *** [lib/CMakeFiles/jxl_extras_core-obj.dir/extras/enc/pnm.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/jxl_extras_core-obj.dir/all] Error 2
make: *** [all] Error 2
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/git --version
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --version
/usr/local/Homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
BuildError: Failed executing: cmake --build build
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action:
Additional context
Are you willing to submit a PR?
No
Can you help me with this? I struggled in the last 2 days trying to solve this. Thank you
shivammathur commented
@mfakhrys macOS Catalina (10.15) is not supported anymore by Apple, Homebrew and this project, please consider upgrading your OS to Monterey (12) or newer if possible.