homebrew upgrade failed with error: 1.5.1 -> 2.0.0
- Dominant language
- C++
- Stars
- 344
- Forks
- 67
- Avg merge
- 15d 2h
- Merged PRs (30d)
- 7
Description
Full cmake logs attached.
[02.cmake.log](https://github.com/user-attachments/files/30865507/02.cmake.log)
```
/private/tmp/libultrahdr-20260808-17310-oa0fb6/libultrahdr-2.0.0/lib/src/avifultrahdr.cpp:664:20: error: use of undeclared identifier 'heif_image_handle_ge│
│ HEIF_ERR_CHECK(heif_image_handle_get_gain_map_image_handle(base_handle, &gainmap_handle)) │
│ ^ │
│/private/tmp/libultrahdr-20260808-17310-oa0fb6/libultrahdr-2.0.0/lib/src/heifultrahdr.cpp:734:11: error: use of undeclared identifier 'heif_image_handle_ge│
│ err = heif_image_handle_get_derived_image_nclx_color_profile(base_handle, &nclx); │
│ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ │
│ heif_image_handle_get_nclx_color_profile │
│/usr/local/include/libheif/heif_color.h:227:12: note: 'heif_image_handle_get_nclx_color_profile' declared here │
│heif_error heif_image_handle_get_nclx_color_profile(const heif_image_handle* handle, │
│ ^ │
│/private/tmp/libultrahdr-20260808-17310-oa0fb6/libultrahdr-2.0.0/lib/src/avifultrahdr.cpp:734:11: error: use of undeclared identifier 'heif_image_handle_ge│
│ err = heif_image_handle_get_derived_image_nclx_color_profile(base_handle, &nclx); │
│ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ │
│ heif_image_handle_get_nclx_color_profile │
│/usr/local/include/libheif/heif_color.h:227:12: note: 'heif_image_handle_get_nclx_color_profile' declared here │
│heif_error heif_image_handle_get_nclx_color_profile(const heif_image_handle* handle, │
│ ^ │
│[ 85%] Building CXX object CMakeFiles/core.dir/lib/src/jpegr.cpp.o │
│/usr/local/Homebrew/Library/Homebrew/shims/mac/super/bin/clang++ -I/private/tmp/libultrahdr-20260808-17310-oa0fb6/libultrahdr-2.0.0/lib/include -I/usr/loc│
│5 errors generated. │
│5 errors generated. │
│make[2]: *** [CMakeFiles/core.dir/lib/src/heifultrahdr.cpp.o] Error 1 │
│make[2]: *** Waiting for unfinished jobs.... │
│make[2]: *** [CMakeFiles/core.dir/lib/src/avifultrahdr.cpp.o] Error 1 │
│[ 87%] Building CXX object CMakeFiles/core.dir/lib/src/jpegrutils.cpp.o │
│/usr/local/Homebrew/Library/Homebrew/shims/mac/super/bin/clang++ -I/private/tmp/libultrahdr-20260808-17310-oa0fb6/libultrahdr-2.0.0/lib/include -I/usr/loc│
│make[1]: *** [CMakeFiles/core.dir/all] Error 2 │
│make: *** [all] Error 2
```
**_Additional info:_**
system_profiler SPSoftwareDataType
Software:
System Version: macOS 12.7.6 (21H1320)
Kernel Version: Darwin 21.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
λ system_profiler SPHardwareDataType
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro11,5
Processor Name: Quad-Core Intel Core i7
Processor Speed: 2.8 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB
brew config
HOMEBREW_VERSION: 6.0.15
ORIGIN: https://github.com/Homebrew/brew
HEAD: 7b0f22a4ab77567edef114c8dfc423fb96e2fbaa
Last commit: 6 days ago
Branch: stable
Core tap: N/A
Core cask tap: N/A
HOMEBREW_PREFIX: /usr/local
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_GITHUB_API_TOKEN: set
Homebrew Ruby: 4.0.6 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/4.0.6/bin/ruby
CPU: octa-core 64-bit haswell
Clang: 14.0.0 build 1400
Git: 2.55.0 => /usr/local/bin/git
Curl: 8.21.0 => /usr/local/opt/curl/bin/curl
macOS: 12.7.6-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2
Contributor guide
Research direction
Start with lib/src/avifultrahdr.cpp and lib/src/heifultrahdr.cpp, then inspect the libheif headers under /usr/local/include/libheif referenced by the CMake log. Compare the missing function declarations with the libultrahdr 2.0.0 build requirements and rerun the CMake build on the reported macOS/Homebrew setup to confirm the upgrade succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100