-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure: sherpa-onnx objects built for macOS 12.7, incompatible with macOS 11.0 #1188
Comments
Could you show the output of
|
Thanks for quick response :) Details
/nix/store/wkpac975pr7mad7mnbjf3dhdf4v6ildv-cmake-3.29.6/bin/cmake -S/Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx -B/Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static --check-build-system CMakeFiles/Makefile.cmake 0 |
Relevant environment variables in the shell MACOSX_DEPLOYMENT_TARGET=11.0
DEPLOYMENT_TARGET=11.0
CC=clang
CXX=clang
CXX_FOR_TARGET=clang |
Could you tell us the version of your xcode? Hint: please run
|
xcodebuild --version xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance |
Could you have a look at There must be something wrong with your installation of xcode. |
Got that fixed - xcodebuild -version
Xcode 15.4
Build version 15F31d It still fails: https://gist.github.com/nirmitleo/b84b949a5516632045cce8244613187b |
Could you delete your build directory and retry after you fix your xcode installation? Please post the log of |
https://gist.github.com/nirmitleo/6203aabe29e94238ab9f709f24c78bec Exact steps -
|
Could you share the log of
You are using |
So sorry missed that one. https://gist.github.com/nirmitleo/fd3e007332bd5ef151ebc1eb8d0e2178 |
The quickest fix should be using
Since you are already using xcode 15 which is newer than xcode 14, I've no idea why you still have such issues. |
Macos version
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
Clang version:
Cmake version:
Git commit:
Tag: tags/v1.10.18
Command used to build
Output
Output of cmake command
build-static % cmake \
-DSHERPA_ONNX_ENABLE_C_API=ON
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_INSTALL_PREFIX=/tmp/sherpa-onnx/static
..
-- The C compiler identification is Clang 16.0.6
-- The CXX compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/k8mrxviw965lv59hqbln3297jwfffm2w-clang-wrapper-16.0.6/bin/clang - 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: /nix/store/k8mrxviw965lv59hqbln3297jwfffm2w-clang-wrapper-16.0.6/bin/clang - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /tmp/sherpa-onnx/static
-- BUILD_SHARED_LIBS OFF
-- SHERPA_ONNX_ENABLE_PYTHON OFF
-- SHERPA_ONNX_ENABLE_TESTS OFF
-- SHERPA_ONNX_ENABLE_CHECK OFF
-- SHERPA_ONNX_ENABLE_PORTAUDIO ON
-- SHERPA_ONNX_ENABLE_JNI OFF
-- SHERPA_ONNX_ENABLE_C_API ON
-- SHERPA_ONNX_ENABLE_WEBSOCKET ON
-- SHERPA_ONNX_ENABLE_GPU OFF
-- SHERPA_ONNX_ENABLE_WASM OFF
-- SHERPA_ONNX_ENABLE_WASM_TTS OFF
-- SHERPA_ONNX_ENABLE_WASM_ASR OFF
-- SHERPA_ONNX_ENABLE_WASM_KWS OFF
-- SHERPA_ONNX_ENABLE_WASM_NODEJS OFF
-- SHERPA_ONNX_ENABLE_BINARY ON
-- SHERPA_ONNX_ENABLE_TTS ON
-- SHERPA_ONNX_LINK_LIBSTDCPP_STATICALLY ON
-- SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE ON
-- SHERPA_ONNX_ENABLE_SANITIZER: OFF
-- SHERPA_ONNX_BUILD_C_API_EXAMPLES: ON
-- TTS is enabled
CMake Warning at CMakeLists.txt:181 (message):
DirectML is disabled
-- C Standard version: 17
-- Looking for C include cxxabi.h
-- Looking for C include cxxabi.h - found
-- Looking for C include execinfo.h
-- Looking for C include execinfo.h - found
-- Downloading kaldi-native-fbank from https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.20.0.tar.gz
-- kaldi-native-fbank is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/kaldi_native_fbank-src
-- kaldi-native-fbank's binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/kaldi_native_fbank-build
CMake Deprecation Warning at build-static/_deps/kaldi_native_fbank-src/CMakeLists.txt:24 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_EXPORT_COMPILE_COMMANDS:
-- BUILD_SHARED_LIBS: OFF
-- KALDI_NATIVE_FBANK_BUILD_TESTS: OFF
-- KALDI_NATIVE_FBANK_BUILD_PYTHON: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- CMAKE_CXX_FLAGS:
-- CMAKE_INSTALL_PREFIX: /tmp/sherpa-onnx/static
-- Looking for C include cxxabi.h
-- Looking for C include cxxabi.h - found
-- Looking for C include execinfo.h
-- Looking for C include execinfo.h - found
-- Disable building Python
-- Downloading kaldi-decoder from https://github.com/k2-fsa/kaldi-decoder/archive/refs/tags/v0.2.6.tar.gz
-- kaldi-decoder is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/kaldi_decoder-src
-- kaldi-decoder's binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/kaldi_decoder-build
-- CMAKE_BUILD_TYPE: Release
-- Downloading kaldifst from https://github.com/k2-fsa/kaldifst/archive/refs/tags/v1.7.11.tar.gz
-- kaldifst is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/kaldifst-src
-- kaldifst's binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/kaldifst-build
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /tmp/sherpa-onnx/static
-- BUILD_SHARED_LIBS OFF
-- C Standard version: 17
-- CMAKE_CXX_FLAGS:
-- Downloading openfst from https://github.com/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-06-19.tar.gz
-- openfst is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/openfst-src
-- The following ICU libraries were not found:
-- data (required)
-- i18n (required)
-- io (required)
-- test (required)
-- tu (required)
-- uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
CMake Deprecation Warning at build-static/_deps/openfst-src/CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- PYTHON_SITE_PACKAGE_DIR:
-- Downloading eigen from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
-- eigen is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/eigen-src
-- eigen's binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/eigen-build
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Success
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- Performing Test standard_math_library_linked_to_automatically
-- Performing Test standard_math_library_linked_to_automatically - Success
-- Standard libraries to link to explicitly: none
-- Performing Test COMPILER_SUPPORT_WERROR
-- Performing Test COMPILER_SUPPORT_WERROR - Success
-- Performing Test COMPILER_SUPPORT_pedantic
-- Performing Test COMPILER_SUPPORT_pedantic - Success
-- Performing Test COMPILER_SUPPORT_Wall
-- Performing Test COMPILER_SUPPORT_Wall - Success
-- Performing Test COMPILER_SUPPORT_Wextra
-- Performing Test COMPILER_SUPPORT_Wextra - Success
-- Performing Test COMPILER_SUPPORT_Wundef
-- Performing Test COMPILER_SUPPORT_Wundef - Success
-- Performing Test COMPILER_SUPPORT_Wcastalign
-- Performing Test COMPILER_SUPPORT_Wcastalign - Success
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts - Success
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor - Success
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs - Success
-- Performing Test COMPILER_SUPPORT_Wpointerarith
-- Performing Test COMPILER_SUPPORT_Wpointerarith - Success
-- Performing Test COMPILER_SUPPORT_Wwritestrings
-- Performing Test COMPILER_SUPPORT_Wwritestrings - Success
-- Performing Test COMPILER_SUPPORT_Wformatsecurity
-- Performing Test COMPILER_SUPPORT_Wformatsecurity - Success
-- Performing Test COMPILER_SUPPORT_Wshorten64to32
-- Performing Test COMPILER_SUPPORT_Wshorten64to32 - Success
-- Performing Test COMPILER_SUPPORT_Wlogicalop
-- Performing Test COMPILER_SUPPORT_Wlogicalop - Failed
-- Performing Test COMPILER_SUPPORT_Wenumconversion
-- Performing Test COMPILER_SUPPORT_Wenumconversion - Success
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions - Success
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion - Success
-- Performing Test COMPILER_SUPPORT_Wshadow
-- Performing Test COMPILER_SUPPORT_Wshadow - Success
-- Performing Test COMPILER_SUPPORT_Wnopsabi
-- Performing Test COMPILER_SUPPORT_Wnopsabi - Success
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros - Success
-- Performing Test COMPILER_SUPPORT_Wnolonglong
-- Performing Test COMPILER_SUPPORT_Wnolonglong - Success
-- Performing Test COMPILER_SUPPORT_fnochecknew
-- Performing Test COMPILER_SUPPORT_fnochecknew - Success
-- Performing Test COMPILER_SUPPORT_fnocommon
-- Performing Test COMPILER_SUPPORT_fnocommon - Success
-- Performing Test COMPILER_SUPPORT_fstrictaliasing
-- Performing Test COMPILER_SUPPORT_fstrictaliasing - Success
-- Performing Test COMPILER_SUPPORT_wd981
-- Performing Test COMPILER_SUPPORT_wd981 - Failed
-- Performing Test COMPILER_SUPPORT_wd2304
-- Performing Test COMPILER_SUPPORT_wd2304 - Failed
-- Performing Test COMPILER_SUPPORT_STRICTANSI
-- Performing Test COMPILER_SUPPORT_STRICTANSI - Failed
-- Performing Test COMPILER_SUPPORT_Qunusedarguments
-- Performing Test COMPILER_SUPPORT_Qunusedarguments - Success
-- Performing Test COMPILER_SUPPORT_ansi
-- Performing Test COMPILER_SUPPORT_ansi - Success
-- Performing Test COMPILER_SUPPORT_OPENMP
-- Performing Test COMPILER_SUPPORT_OPENMP - Success
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - NOTFOUND
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES)
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) (Required is at least version "4.0")
-- Checking for one of the modules 'hwloc'
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
-- Configured Eigen 3.4.0
-- Available targets (use: make TARGET):
-- --------- --------------------------------------------------------------
-- Target | Description
-- --------- --------------------------------------------------------------
-- install | Install Eigen. Headers will be installed to:
-- | <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /tmp/sherpa-onnx/static
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc | Generate the API documentation, requires Doxygen & LaTeX
-- blas | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- --------- --------------------------------------------------------------
-- CMAKE_SYSTEM_NAME: Darwin
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- location_onnxruntime_header_dir: location_onnxruntime_header_dir-NOTFOUND
-- location_onnxruntime_lib: location_onnxruntime_lib-NOTFOUND
-- Could not find a pre-installed onnxruntime.
-- Downloading pre-compiled onnxruntime
-- CMAKE_SYSTEM_NAME: Darwin
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- CMAKE_SYSTEM_NAME: Darwin
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- CMAKE_OSX_ARCHITECTURES:
-- CMAKE_APPLE_SILICON_PROCESSOR :
-- Downloading onnxruntime from https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-arm64-static_lib-1.17.1.zip
-- onnxruntime is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/onnxruntime-src
-- onnxruntime lib files: /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/onnxruntime-src/lib/libonnxruntime.a
-- Downloading simple-sentencepiece https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz
-- simple-sentencepiece is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/simple-sentencepiece-src
-- Performing Test SBPE_COMPILER_SUPPORTS_CXX14
-- Performing Test SBPE_COMPILER_SUPPORTS_CXX14 - Success
-- C Standard version: 17
-- ONNXRUNTIME_DIR: /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/onnxruntime-src
-- Downloading portaudio from http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz
-- portaudio is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/portaudio-src
-- portaudio's binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/portaudio-build
CMake Deprecation Warning at build-static/_deps/portaudio-src/CMakeLists.txt:7 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Downloading websocketpp from https://github.com/zaphoyd/websocketpp/archive/b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip
-- websocketpp is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/websocketpp-src
-- Downloading asio https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz
-- asio is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/asio-src
-- Downloading espeak-ng from https://github.com/csukuangfj/espeak-ng/archive/f6fed6c58b5e0998b8e68c6610125e2d07d595a7.zip
-- espeak-ng is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/espeak_ng-src
-- espeak-ng binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/espeak_ng-build
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Configuration:
-- shared: OFF
-- mbrola: OFF (MBROLA_BIN-NOTFOUND)
-- libsonic: OFF (SONIC_LIB-NOTFOUND SONIC_INC-NOTFOUND)
-- libpcaudio: OFF (PCAUDIO_LIB-NOTFOUND PCAUDIO_INC-NOTFOUND)
-- klatt: OFF
-- speech-player: OFF
-- async: OFF
-- ESPEAK_NG_DIR: /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/espeak_ng-src
-- Downloading piper-phonemize from https://github.com/csukuangfj/piper-phonemize/archive/dc6b5f4441bffe521047086930b0fc12686acd56.zip
-- piper-phonemize is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/piper_phonemize-src
-- piper-phonemize binary dir is /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/piper_phonemize-build
-- ESPEAK_NG_DIR: /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/espeak_ng-src
-- ONNXRUNTIME_DIR: /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/onnxruntime-src
-- Downloading cppjieba https://github.com/csukuangfj/cppjieba/archive/refs/tags/sherpa-onnx-2024-04-19.tar.gz
-- cppjieba is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/cppjieba-src
CMake Deprecation Warning at build-static/_deps/cppjieba-src/CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Downloading cargs https://github.com/likle/cargs/archive/refs/tags/v1.0.3.tar.gz
-- cargs is downloaded to /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static/_deps/cargs-src
-- CMAKE_CXX_FLAGS:
-- CMAKE_CXX_FLAGS:
-- Configuring done (42.0s)
-- Generating done (0.4s)
-- Build files have been written to: /Users/nirmitdalal/Documents/playgrounds/rust/sherpa-rs/sys/sherpa-onnx/build-static
Output of make -j6
Since its too long to fit in the issue: https://gist.github.com/nirmitleo/745e18f7bb55726ecbe79af8bff3f4c4
The text was updated successfully, but these errors were encountered: