You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.5.10: Build fails when MicroTeX is supplied as a git submodule: Cannot specify compile options for target "microtex" which is not built by this project.
#334
Open
yurivict opened this issue
Jan 8, 2025
· 1 comment
cmake first finds the submodule, but then fails with the error from the SUBJECT:
===> Configuring for cadabra2-2.5.10
===> Performing out-of-source build
/bin/mkdir -p /usr/ports/math/cadabra2/work/.build
-- Set CMake policy CMP0042 to NEW
-- Set CMake policy CMP0054 to NEW
-- Set CMake policy CMP0127 to NEW
-- Set CMake policy CMP0148 to NEW
-- Set CMake policy CMP0167 to NEW
-- Set CMake policy CMP0094 to NEW (use first Python found)
-- Set CMake policy CMP0169 to NEW (use new FetchContent)
-- Set CMake policy CMP0177 to NEW (destination paths are normalised)
-- The C compiler identification is Clang 19.1.5
-- The CXX compiler identification is Clang 19.1.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/libexec/ccache/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: /usr/local/libexec/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Git not found, not including commit SHA
-------------------------------------------
Building Cadabra version 2.5.10 (64-bit)
-------------------------------------------
-- Build id 'from the FreeBSD port' dated 2025-01-08
-- Build mode is set to 'Release'
-- Architecture is 'amd64'
-- Install directory set to /usr/local
-- Building in user mode
-- Building tests
-- IPO / LTO enabled
-------------------------------------------
Configuring Python
-------------------------------------------
-- Found Python: /usr/local/bin/python3.11 (found version "3.11.11") found components: Interpreter Development Development.Module Development.Embed
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Using included pybind11.
CMake Deprecation Warning at libs/pybind11/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- pybind11 v2.14.0 dev1
-- Found PythonInterp: /usr/local/bin/python3.11 (found suitable version "3.11.11", minimum required is "3.11.11")
-- Found PythonLibs: /usr/local/lib/libpython3.11.so
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found python /usr/local/lib/libpython3.11.so
-- Python version is 3.11.
-- Making PYTHON_SITE_PATH relative if possible
-- Installing Cadabra Python modules in (PYTHON_SITE_PATH) lib/python3.11/site-packages
-- relative to CMake install prefix /usr/local
-- Python abi name cpython-311
-- Python module extension cpython-311.so
-------------------------------------------
Configuring Jupyter kernel
-------------------------------------------
-- Building the default Jupyter kernel
-------------------------------------------
Configuring client-server
-------------------------------------------
-- Found PkgConfig: /usr/local/bin/pkgconf (found version "2.3.0")
-- Checking for module 'glibmm-2.4'
-- Found glibmm-2.4, version 2.66.7
-- Found glibmm; include path /usr/local/include/glibmm-2.4;/usr/local/lib/glibmm-2.4/include;/usr/local/include;/usr/local/include/glib-2.0;/usr/local/lib/glib-2.0/include;/usr/local/include/sigc++-2.0;/usr/local/lib/sigc++-2.0/include
-- Found glibmm; lib glibmm-2.4;gobject-2.0;glib-2.0;intl;sigc-2.0
-- Checking for module 'sqlite3'
-- Found sqlite3, version 3.46.1
-- Found sqlite3 library path sqlite3
-- Found sqlite3 include path /usr/local/include
-- Found SQLITE3: sqlite3
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.0.15")
-- OPENSSL_LIBRARIES: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- OPENSSL_SSL_LIBRARY: /usr/lib/libssl.so
-- OPENSSL_CRYPTO_LIBRARY: /usr/lib/libcrypto.so
-------------------------------------------
Configuring core
-------------------------------------------
-- Found glibmm; include path /usr/local/include/glibmm-2.4;/usr/local/lib/glibmm-2.4/include;/usr/local/include;/usr/local/include/glib-2.0;/usr/local/lib/glib-2.0/include;/usr/local/include/sigc++-2.0;/usr/local/lib/sigc++-2.0/include
-- Found glibmm; lib glibmm-2.4;gobject-2.0;glib-2.0;intl;sigc-2.0
-- Found gmp header at /usr/local/include
-- Found gmp library at /usr/local/lib/libgmp.so
-- Found gmp
-- Found gmpxx
-- Linking to GMP library /usr/local/lib/libgmp.so
-- Linking to GMPXX library /usr/local/lib/libgmpxx.so
-- IPO / LTO for cadabra2 enabled
-- Building without Mathematica support
-------------------------------------------
Configuring packages
-------------------------------------------
-- Found gmp header at /usr/local/include
-- Found gmp library at /usr/local/lib/libgmp.so
-- Found gmp
-- Found gmpxx
-- Storing algorithm C++ module as core
-- IPO / LTO for _component enabled
-- Storing algorithm C++ module as utils
-- IPO / LTO for _algorithm enabled
-------------------------------------------
Configuring native notebook frontend
-------------------------------------------
-- Checking for module 'gtkmm-3.0'
-- Found gtkmm-3.0, version 3.24.9
-- Found gtkmm
-- Using gtkmm frontend
-- Including MicroTeX support for typesetting
-- Found MicroTeX as submodule in /usr/ports/math/cadabra2/work/cadabra2-2.5.10/submodules/microtex/
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Performing Test COMPILER_SUPPORTS_CXX20
-- Performing Test COMPILER_SUPPORTS_CXX20 - Success
-- Checking for module 'tinyxml2'
-- Found tinyxml2, version 10.0.0
-- We are working with GTK on a Unix like OS
-- Found Fontconfig: /usr/local/lib/libfontconfig.so (found version "2.15.0")
-- Checking for module 'gtkmm-3.0'
-- Found gtkmm-3.0, version 3.24.9
-- Checking for module 'gtksourceviewmm-3.0'
-- Found gtksourceviewmm-3.0, version 3.18.0
-- Checking for module 'cairomm-1.0'
-- Found cairomm-1.0, version 1.14.5
CMake Error at frontend/gtkmm/CMakeLists.txt:53 (target_compile_options):
Cannot specify compile options for target "microtex" which is not built by
this project.
-- Found sqlite3 library path sqlite3
-- Found sqlite3 include path /usr/local/include
-- Found glibmm; include path /usr/local/include/glibmm-2.4;/usr/local/lib/glibmm-2.4/include;/usr/local/include;/usr/local/include/glib-2.0;/usr/local/lib/glib-2.0/include;/usr/local/include/sigc++-2.0;/usr/local/lib/sigc++-2.0/include
-- Found glibmm; lib glibmm-2.4;gobject-2.0;glib-2.0;intl;sigc-2.0
-- Found gtkmm
-- MicroTeX binaries will be built at /usr/ports/math/cadabra2/work/cadabra2-2.5.10/submodules/microtex//build
-- Checking for module 'fontconfig'
-- Found fontconfig, version 2.15.0
-- Checking for module 'pangomm-1.4'
-- Found pangomm-1.4, version 2.46.4
-- Installing LaTeX style files in share/cadabra2/latex
-------------------------------------------
Configuring tests
-------------------------------------------
-- Set PYTHONPATH for testing to :/usr/ports/math/cadabra2/work/cadabra2-2.5.10/libs/appdirs:/usr/ports/math/cadabra2/work/.build/core/packages:/usr/ports/math/cadabra2/work/cadabra2-2.5.10/core/packages:/usr/ports/math/cadabra2/work/cadabra2-2.5.10/core:/usr/ports/math/cadabra2/work/.build/core/Release:/usr/ports/math/cadabra2/work/.build/core/:/usr/ports/math/cadabra2/work/cadabra2-2.5.10/tests
-------------------------------------------
Configuring documentation
-------------------------------------------
-- Book will be created in /usr/ports/math/cadabra2/work/.build/book
-------------------------------------------
All scripts completed
-------------------------------------------
-- Configuring incomplete, errors occurred!
*** Error code 1
The text was updated successfully, but these errors were encountered:
Hmm, that's unexpected, I can't really say I understand why cmake considers the submodule to be not built by 'this project'. If you have any hints/suggestions let me know.
cmake first finds the submodule, but then fails with the error from the SUBJECT:
The text was updated successfully, but these errors were encountered: