Opened 5 months ago

Closed 5 weeks ago

#70110 closed defect (worksforme)

cherrytree @1.0.1 fails to build on Sonoma: error: use of undeclared identifier '_CMAKE_BINARY_DIR'

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: sonoma Cc:
Port: cherrytree

Description

[ 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.
  1. 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.

Attachments (1)

cherrytree.log (674.4 KB) - added by barracuda156 5 months ago.

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by barracuda156

Attachment: cherrytree.log added

comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

It built successfully on all OS versions on the buildbot last time it was tried (except on macOS 13 x86_64 where dependencies failed to build). I see a revbump just happened and most builders have not gotten to it yet, so we can see what happens.

These identifiers are supposed to be defined in cherrytree_1.0.1/config.h. Can you attach that file and build/CMakeFiles/CMakeConfigureLog.yaml? Since you're using Xcode 15.3, which introduces new errors like implicit int (and the buildbot is using an earlier version), maybe this is causing something to fail.

comment:2 Changed 5 weeks ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed

cherrytree installs fine for me on Sonoma too.

Works great still.

please reopen with new information if this is still a problem for you.

Note: See TracTickets for help on using tickets.