cmake fails invariably at 78/79%
Unsure why this quits. Using basic cmake configuration with declaration for arm64 architecture on Mac M1, but without testing module selected. Always seems to fail following libtasks or libdata-impl:
[ 78%] Linking CXX static library libtasks.a
[ 78%] Built target tasks
26 warnings generated.
[ 79%] Linking CXX static library libdata-impl.a
[ 79%] Built target data-impl
make: *** [all] Error 2
Not much to go on to solve this. If it helps, here is the output generated by cmake -B:
-- The C compiler identification is AppleClang 15.0.0.15000309
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for close
-- Looking for close - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'gtk+-3.0'
-- Found gtk+-3.0, version 3.24.41
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Failed
-- Found Iconv: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/libiconv.tbd
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/libz.tbd (found suitable version "1.2.12", minimum required is "1.2.0")
-- Checking for module 'gmime-3.0'
-- Found gmime-3.0, version 3.2.14
-- Checking for module 'glib-2.0>=2.26.0'
-- Found glib-2.0, version 2.80.0
-- Checking for module 'gtkspell3-3.0'
-- Found gtkspell3-3.0, version 3.0.10
-- Checking for module 'enchant-2>=2.2.3'
-- Found enchant-2, version 2.6.9
-- Checking for module 'gnutls>=3.0.0'
-- Found gnutls, version 3.8.4
-- platform: Darwin-23.4.0
-- Found Gettext: /opt/homebrew/bin/msgmerge (found version "0.22.5")
-- Configuring done (3.4s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/mark/Development/pan/std-build
Before all of the older makefiles were deleted in favor of cmake, was able to build by setting the following and just running make, but that's not possible now:
export LDFLAGS="-L/opt/homebrew/opt/libffi/lib";
export CXXFLAGS="-g -O2 -std=c++11"
export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/libffi/include";
export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig";
./autogen.sh --enable-libnotify --enable-manual --with-dbus --with-gmime-crypto --with-gtkspell --with-webkit --with-gnutls --with-yelp-tools LIBS=-liconv
Not sure how to fix this.