[MacPorts] #70110: cherrytree @1.0.1 fails to build on Sonoma: error: use of undeclared identifier '_CMAKE_BINARY_DIR'
MacPorts
noreply at macports.org
Thu May 30 12:56:49 UTC 2024
#70110: cherrytree @1.0.1 fails to build on Sonoma: error: use of undeclared
identifier '_CMAKE_BINARY_DIR'
--------------------------+------------------------
Reporter: barracuda156 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: sonoma | Port: cherrytree
--------------------------+------------------------
{{{
[ 98%] Building CXX object
src/ct/CMakeFiles/cherrytree_shared.dir/ct_filesystem.cc.o
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/build/src/ct
&& /usr/bin/clang++ -DHAVE_NLS -DSHARED_FMT_SPDLOG
-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG -DSPDLOG_FMT_EXTERNAL -isystem
/opt/local/include/gtkmm-3.0 -isystem /opt/local/lib/gtkmm-3.0/include
-isystem /opt/local/include/atkmm-1.6 -isystem /opt/local/include/gtk-3.0
/unix-print -isystem /opt/local/include/gdkmm-3.0 -isystem
/opt/local/lib/gdkmm-3.0/include -isystem /opt/local/include/giomm-2.4
-isystem /opt/local/lib/giomm-2.4/include -isystem
/opt/local/include/gtk-3.0 -isystem /opt/local/include/at-spi2-atk/2.0
-isystem /opt/local/include/at-spi-2.0 -isystem /opt/local/include
-isystem /opt/local/include/dbus-1.0 -isystem
/opt/local/lib/dbus-1.0/include -isystem /opt/local/include/gio-unix-2.0
-isystem /opt/local/include/cairo -isystem /opt/local/include/atk-1.0
-isystem /opt/local/include/pangomm-1.4 -isystem
/opt/local/lib/pangomm-1.4/include -isystem /opt/local/include/glibmm-2.4
-isystem /opt/local/lib/glibmm-2.4/include -isystem
/opt/local/include/cairomm-1.0 -isystem /opt/local/lib/cairomm-1.0/include
-isystem /opt/local/include/sigc++-2.0 -isystem
/opt/local/lib/sigc++-2.0/include -isystem /opt/local/include/pango-1.0
-isystem /opt/local/include/harfbuzz -isystem /opt/local/include/fribidi
-isystem /opt/local/include/pixman-1 -isystem /opt/local/include/freetype2
-isystem /opt/local/include/gdk-pixbuf-2.0 -isystem
/opt/local/include/libpng16 -isystem /opt/local/include/glib-2.0 -isystem
/opt/local/lib/glib-2.0/include -isystem
/opt/local/include/gtksourceviewmm-3.0 -isystem
/opt/local/lib/gtksourceviewmm-3.0/include -isystem
/opt/local/include/gtksourceview-3.0 -isystem /opt/local/include/libxml2
-isystem /opt/local/include/gspell-1 -isystem /opt/local/include/enchant-2
-isystem /opt/local/include/libxml++-2.6 -isystem
/opt/local/lib/libxml++-2.6/include -isystem /opt/local/include/uchardet
-isystem
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/.
-isystem /opt/local/include/libfmt9 -pipe -DNDEBUG -I/opt/local/include
-stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -O3
-DNDEBUG -std=gnu++17 -arch arm64 -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-
min=14.0 "-Wno-#warnings" -Wthread-safety
-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR -Wno-deprecated -Wno-deprecated-
declarations -MD -MT
src/ct/CMakeFiles/cherrytree_shared.dir/ct_filesystem.cc.o -MF
CMakeFiles/cherrytree_shared.dir/ct_filesystem.cc.o.d -o
CMakeFiles/cherrytree_shared.dir/ct_filesystem.cc.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc:381:49:
error: use of undeclared identifier '_CMAKE_BINARY_DIR'
if (_exePath.parent_path() == fs::canonical(_CMAKE_BINARY_DIR)) {
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc:383:16:
error: use of undeclared identifier '_CMAKE_SOURCE_DIR'
return _CMAKE_SOURCE_DIR;
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc:393:12:
error: use of undeclared identifier 'CHERRYTREE_DATADIR'
return CHERRYTREE_DATADIR;
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc:399:49:
error: use of undeclared identifier '_CMAKE_BINARY_DIR'
if (_exePath.parent_path() == fs::canonical(_CMAKE_BINARY_DIR)) {
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc:401:62:
error: use of undeclared identifier '_CMAKE_SOURCE_DIR'
return
fs_canonicalize_filename(Glib::build_filename(_CMAKE_SOURCE_DIR, "po"));
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cherrytree/cherrytree/work/cherrytree_1.0.1/src/ct/ct_filesystem.cc:413:12:
error: use of undeclared identifier 'CHERRYTREE_LOCALEDIR'
return CHERRYTREE_LOCALEDIR;
^
6 errors generated.
}}}
P. S. Just in case, the error is independent of `spdlog` version: while I
initially tried to build it with the new 1.14.1, then I tried with
existing 1.13.0, both failed in the same way.
--
Ticket URL: <https://trac.macports.org/ticket/70110>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list