Skip to content

Please fix finding libmagic and lz4 #5307

@barracuda156

Description

@barracuda156
--->  Configuring tiledb
        (using ccache)
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_databases_tiledb/tiledb/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_Fortran_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_ISPC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules;/opt/local/lib/libfmt10/cmake" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules;/opt/local/lib/libfmt10/cmake" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DCATCH_INCLUDE_DIR:STRING=/opt/local/include -DTILEDB_ASSERIONS=OFF -DTILEDB_AZURE=OFF -DTILEDB_CPP_API=ON -DTILEDB_EXPERIMENTAL_FEATURES=OFF -DTILEDB_GCS=OFF -DTILEDB_HDFS=OFF -DTILEDB_SERIALIZATION=OFF -DTILEDB_SUPERBUILD=OFF -DTILEDB_TESTS=OFF -DTILEDB_TOOLS=OFF -DTILEDB_VERBOSE=ON -DTILEDB_WEBP=OFF -DTILEDB_WERROR=OFF -DCOMPILER_SUPPORTS_AVX2=OFF -DOPENSSL_ROOT_DIR=/opt/local/libexec/openssl3 -DOPENSSL_INCLUDE_DIR=/opt/local/libexec/openssl3/include -DWITH_SSL=/opt/local/libexec/openssl3 -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_databases_tiledb/tiledb/work/TileDB-2.26.0 
Using vcpkg features: 
-- Found Doxygen: /opt/local/bin/doxygen (found version "1.11.0") found components: doxygen dot
-- Not found clang-tidy
-- Not found clang-format
-- was unable to find clang-format
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/local/bin/gcc-mp-14 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/local/bin/g++-mp-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Starting TileDB regular build.
--   CMake version: 3.30.3
AVX2 compiler support disabled by COMPILER_SUPPORTS_AVX2=OFF
-- Using vendored cpp17::pmr for polymorphic allocators because of macOS deployment target 10.6 < 14
-- Building with cpp17::pmr
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found BZip2: /opt/local/lib/libbz2.dylib (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Could NOT find lz4 (missing: lz4_DIR)
-- Found LZ4: /opt/local/lib/liblz4.dylib
-- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.3.1")
-- Found OpenSSL: /opt/local/libexec/openssl3/lib/libcrypto.dylib (found version "3.3.2")
-- Could NOT find libmagic (missing: libmagic_DIR)
-- Found libmagic: /opt/local/include
-- The TileDB library is compiled with verbosity.
-- The TileDB library is compiled with stats enabled.
-- Could NOT find lz4 (missing: lz4_DIR)
-- Could NOT find libmagic (missing: libmagic_DIR)
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found PNG: /opt/local/lib/libpng.dylib (found version "1.6.43")
-- Configuring done (18.4s)
-- Generating done (6.8s)

It should be trivial to find libmagic, since it has .pc file, but it fails.

36-202% port contents libmagic
Port libmagic @5.45_0 contains:
  /opt/local/include/magic.h
  /opt/local/lib/libmagic.1.dylib
  /opt/local/lib/libmagic.a
  /opt/local/lib/libmagic.dylib
  /opt/local/lib/libmagic.la
  /opt/local/lib/pkgconfig/libmagic.pc
  /opt/local/share/man/man3/libmagic.3.gz
  /opt/local/share/man/man5/magic.5.gz
  /opt/local/share/misc/magic
  /opt/local/share/misc/magic.mgc

I also do not understand what configure is doing with lz4, when it find it above and then again claims it is not found below.

lz4 also has .pc file:

36-202% port contents lz4
Port lz4 @1.10.0_0 contains:
  /opt/local/bin/lz4
  /opt/local/bin/lz4c
  /opt/local/bin/lz4cat
  /opt/local/bin/unlz4
  /opt/local/include/lz4.h
  /opt/local/include/lz4file.h
  /opt/local/include/lz4frame.h
  /opt/local/include/lz4frame_static.h
  /opt/local/include/lz4hc.h
  /opt/local/lib/liblz4.1.10.0.dylib
  /opt/local/lib/liblz4.1.dylib
  /opt/local/lib/liblz4.a
  /opt/local/lib/liblz4.dylib
  /opt/local/lib/pkgconfig/liblz4.pc
  /opt/local/share/man/man1/lz4.1.gz
  /opt/local/share/man/man1/lz4c.1.gz
  /opt/local/share/man/man1/lz4cat.1.gz
  /opt/local/share/man/man1/unlz4.1.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions