Opened 3 months ago
Last modified 2 months ago
#73988 new defect
btop @1.4.7 does not build on macOS Sonoma 14.8.5 because src/btop_config.cpp:819:24: error: constexpr function's return type 'std::optional<fs::path>' is not a literal type
| Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.12.5 |
| Keywords: | sonoma intel | Cc: | sam@… |
| Port: | btop |
Description
[1;97mCompiling src/osx/sensors.cpp[0m
clang++: warning: -framework IOKit: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -framework CoreFoundation: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -lIOReport: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]
src/btop_config.cpp:819:24: error: constexpr function's return type 'std::optional<fs::path>' is not a literal type
819 | static constexpr auto get_xdg_state_dir() -> std::optional<fs::path> {
| ^
Attachments (1)
Change History (2)
Changed 3 months ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 2 months ago by sidoki
Same for me, unable to upgrade to v1.4.7 in older version of Mac (Monterey 12.7.6):
During the compilation, the compiler encounters the following error in src/btop_config.cpp :
src/btop_config.cpp:819:24: error: constexpr function's return type 'std::optional<fs::path>' is not a literal type
819 | static constexpr auto get_xdg_state_dir() -> std::optional<fs::path> {
Note: See
TracTickets for help on using
tickets.

Main.log from intel macOS Sonoma, 14.8.5