Closed sclsj closed 6 months ago
echo $PATH
. /opt/homebrew/bin /opt/homebrew/sbin /opt/homebrew/opt/openjdk/bin /usr/local/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Library/Frameworks/Python.framework/Versions/3.7/bin . /usr/libexec /usr/local/libexec /usr/local/texlive/2020/bin/x86_64-darwin /opt/local/bin /opt/local/sbin /Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin /System/Library/CoreServices .
Dependencies installed using homebrew
. Did brew update
and brew upgrade
before the build to make sure I'm using the latest version.
qmake --version
QMake version 3.1
Using Qt version 6.6.2 in /opt/homebrew/lib
cmake --version
cmake version 3.28.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
gmake --version
GNU Make 4.4.1
Built for aarch64-apple-darwin21.6.0
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
This is a strange error... I've never seen anything like this before. I don't see any traces that it could be directly related to the fact that you're using an ARM Mac, but I'm not sure either what it could be instead.
I do see a few interesting things in the log file:
MUE_COMPILE_BUILD_64
to OFF
but that has no effect)gmake
; what if you use ./build.cmake -G Ninja
to use Ninja instead? (You'd need to install it first via HomeBrew)Also, have you already tried just throwing your build folder away and trying it again?
maybe upgrading to latest clang then specifying (before build) will help I know how hard these things are to trace hope this helps someone
export CC=/usr/local/opt/llvm/bin/clang export CXX=/usr/local/opt/llvm/bin/clang++ export GCC_HOST_COMPILER_PATH=/usr/local/opt/llvm/bin/clang
Actually I will close this issue, since there has not been any reply to the question above for 3 weeks and it's unlikely that it will need to be resolved at MuseScore's side.
Sorry for the late reply.
Unfortunately qt 6.2.4
is not available through homebrew. I was always under the impression that Qt's own installer takes up a lot of space. I will free up some space and try that route.
Yes, I've tried compiling from scratch again.
I also tried to delete gtest from the cmake file, but found that the linking stage at the end fails because it can't find the gtest library. I then compiled it manually and edited the linking files manually to include the library. It eventually worked, but the mscore app exits immediately after I open it.
Same error with ninja
FAILED: src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx.pch
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DKORS_LOGGER_QT_SUPPORT -DKORS_PROFILER_ENABLED -DMUE_BUILD_APPSHELL_MODULE -DMUE_BUILD_BRAILLE_MODULE -DMUE_BUILD_CONVERTER_MODULE -DMUE_BUILD_CRASHPAD_CLIENT -DMUE_BUILD_DIAGNOSTICS_MODULE -DMUE_BUILD_IMAGESEXPORT_MODULE -DMUE_BUILD_IMPORTEXPORT_MODULE -DMUE_BUILD_INSPECTOR_MODULE -DMUE_BUILD_INSTRUMENTSSCENE_MODULE -DMUE_BUILD_NOTATION_MODULE -DMUE_BUILD_PALETTE_MODULE -DMUE_BUILD_PLAYBACK_MODULE -DMUE_BUILD_PROJECT_MODULE -DMUE_BUILD_UPDATE_MODULE -DMUE_COMPILE_USE_QTFONTMETRICS -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKTEMPLATES2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_STATEMACHINE_LIB -DQT_SUPPORT -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSCRIPT_INTERFACE -Dglobal_QML_IMPORT=\"\" -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global -I/Users/jin/musescorecomilebug/musescore/src/framework/global -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/global_autogen/include -I/opt/homebrew/lib/QtDBus.framework/Headers -iframework /opt/homebrew/lib -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo -I/Users/jin/musescorecomilebug/musescore/src -I/Users/jin/musescorecomilebug/musescore -I/Users/jin/musescorecomilebug/musescore/framework -I/Users/jin/musescorecomilebug/musescore/framework/global -I/Users/jin/musescorecomilebug/musescore/framework/testing/thirdparty/googletest/googletest/include -I/Users/jin/musescorecomilebug/musescore/src/framework -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks -isystem /opt/homebrew/lib/QtCore.framework/Headers -isystem /opt/homebrew/lib/QtGui.framework/Headers -isystem /opt/homebrew/lib/QtWidgets.framework/Headers -isystem /opt/homebrew/lib/QtNetwork.framework/Headers -isystem /opt/homebrew/lib/QtNetworkAuth.framework/Headers -isystem /opt/homebrew/lib/QtQml.framework/Headers -isystem /opt/homebrew/include/QtQmlIntegration -isystem /opt/homebrew/include -isystem /opt/homebrew/lib/QtQuick.framework/Headers -isystem /opt/homebrew/lib/QtQmlModels.framework/Headers -isystem /opt/homebrew/lib/QtOpenGL.framework/Headers -isystem /opt/homebrew/lib/QtQuickControls2.framework/Headers -isystem /opt/homebrew/lib/QtQuickTemplates2.framework/Headers -isystem /opt/homebrew/lib/QtQuickWidgets.framework/Headers -isystem /opt/homebrew/lib/QtXml.framework/Headers -isystem /opt/homebrew/lib/QtSvg.framework/Headers -isystem /opt/homebrew/lib/QtPrintSupport.framework/Headers -isystem /opt/homebrew/lib/QtCore5Compat.framework/Headers -isystem /opt/homebrew/lib/QtStateMachine.framework/Headers -isystem /opt/homebrew/lib/QtConcurrent.framework/Headers -isystem /opt/homebrew/share/qt/mkspecs/macx-clang -O2 -g -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14 -Wall -Wextra -Winvalid-pch -Xclang -emit-pch -Xclang -include -Xclang /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx -x c++-header -MD -MT src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx.pch -MF src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx.pch.d -o src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx.pch -c /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx.cxx
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:59:58: error: 'path' is unavailable: introduced in macOS 10.15
inline QString fromFilesystemPath(const std::filesystem::path &path)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:64:40: error: 'native' is unavailable: introduced in macOS 10.15
return QString::fromStdString(path.native());
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:1193:22: note: 'native' has been explicitly marked unavailable here
const string_type& native() const noexcept { return __pn_; }
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:68:25: error: 'path' is unavailable: introduced in macOS 10.15
inline std::filesystem::path toFilesystemPath(const QString &path)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:70:29: error: 'path' is unavailable: introduced in macOS 10.15
return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:70:12: error: 'path<const char16_t *>' is unavailable: introduced in macOS 10.15
return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:953:3: note: 'path<const char16_t *>' has been explicitly marked unavailable here
path(_InputIt __first, _InputIt __last, format = format::auto_format) {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:70:12: error: 'path' is unavailable: introduced in macOS 10.15
return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:953:3: note: 'path' has been explicitly marked unavailable here
path(_InputIt __first, _InputIt __last, format = format::auto_format) {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:70:12: error: '~path' is unavailable: introduced in macOS 10.15
return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:968:3: note: '~path' has been explicitly marked unavailable here
~path() = default;
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:128:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemFileName() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:190:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemSymLinkTarget() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:195:29: error: 'path' is unavailable: introduced in macOS 10.15
static std::filesystem::path filesystemSymLinkTarget(const T &fileName)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:129:14: error: '~path' is unavailable: introduced in macOS 10.15
{ return QtPrivate::toFilesystemPath(fileName()); }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:968:3: note: '~path' has been explicitly marked unavailable here
~path() = default;
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:79:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:192:16: error: '~path' is unavailable: introduced in macOS 10.15
return QtPrivate::toFilesystemPath(symLinkTarget());
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:968:3: note: '~path' has been explicitly marked unavailable here
~path() = default;
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:82:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemFilePath() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:84:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemAbsoluteFilePath() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:86:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemCanonicalFilePath() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:100:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemPath() const { return QtPrivate::toFilesystemPath(path()); }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:101:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemAbsolutePath() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:103:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemCanonicalPath() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from <built-in>:1:
In file included from /Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/global/CMakeFiles/global.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/jin/musescorecomilebug/musescore/build/pch/pch.h:87:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFileInfo:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:134:22: error: 'path' is unavailable: introduced in macOS 10.15
std::filesystem::path filesystemSymLinkTarget() const
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/filesystem:909:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[185/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/dec_API.c.o
[186/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/decoder_set_fs.c.o
[187/1545] Running rcc pass 1 for resource fonts_FreeSans
[188/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/decode_core.c.o
[189/1545] Running rcc pass 1 for resource fonts_Bravura
[190/1545] Building CXX object src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
FAILED: src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DKORS_LOGGER_QT_SUPPORT -DKORS_PROFILER_ENABLED -DMUE_BUILD_APPSHELL_MODULE -DMUE_BUILD_BRAILLE_MODULE -DMUE_BUILD_CONVERTER_MODULE -DMUE_BUILD_CRASHPAD_CLIENT -DMUE_BUILD_DIAGNOSTICS_MODULE -DMUE_BUILD_IMAGESEXPORT_MODULE -DMUE_BUILD_IMPORTEXPORT_MODULE -DMUE_BUILD_INSPECTOR_MODULE -DMUE_BUILD_INSTRUMENTSSCENE_MODULE -DMUE_BUILD_NOTATION_MODULE -DMUE_BUILD_PALETTE_MODULE -DMUE_BUILD_PLAYBACK_MODULE -DMUE_BUILD_PROJECT_MODULE -DMUE_BUILD_UPDATE_MODULE -DMUE_COMPILE_USE_QTFONTMETRICS -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKTEMPLATES2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_STATEMACHINE_LIB -DQT_SUPPORT -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSCRIPT_INTERFACE -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/testing/thirdparty/googletest/googletest -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/testing/thirdparty/googletest/googletest/gtest_autogen/include -I/opt/homebrew/lib/QtCore.framework/Headers -F/opt/homebrew/lib -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtDBus.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtNetworkAuth.framework/Headers -I/opt/homebrew/lib/QtQml.framework/Headers -I/opt/homebrew/include/QtQmlIntegration -I/opt/homebrew/include -I/opt/homebrew/lib/QtQuick.framework/Headers -I/opt/homebrew/lib/QtQmlModels.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtQuickControls2.framework/Headers -I/opt/homebrew/lib/QtQuickTemplates2.framework/Headers -I/opt/homebrew/lib/QtQuickWidgets.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtStateMachine.framework/Headers -I/opt/homebrew/lib/QtConcurrent.framework/Headers -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/include -O2 -g -DNDEBUG -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14 -DGTEST_HAS_PTHREAD=1 -Wall -Wextra -Wno-conversion -MD -MT src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-all.cc
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-all.cc:41:
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest.cc:118:
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:141:47: error: use of undeclared identifier 'also_run_disabled_tests'
also_run_disabled_tests_ = GTEST_FLAG_GET(also_run_disabled_tests);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:142:40: error: use of undeclared identifier 'break_on_failure'
break_on_failure_ = GTEST_FLAG_GET(break_on_failure);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:143:40: error: use of undeclared identifier 'catch_exceptions'
catch_exceptions_ = GTEST_FLAG_GET(catch_exceptions);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:144:29: error: use of undeclared identifier 'color'
color_ = GTEST_FLAG_GET(color);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:145:40: error: use of undeclared identifier 'death_test_style'
death_test_style_ = GTEST_FLAG_GET(death_test_style);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:146:43: error: use of undeclared identifier 'death_test_use_fork'
death_test_use_fork_ = GTEST_FLAG_GET(death_test_use_fork);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:147:33: error: use of undeclared identifier 'fail_fast'
fail_fast_ = GTEST_FLAG_GET(fail_fast);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:148:30: error: use of undeclared identifier 'filter'
filter_ = GTEST_FLAG_GET(filter);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:149:47: error: use of undeclared identifier 'internal_run_death_test'
internal_run_death_test_ = GTEST_FLAG_GET(internal_run_death_test);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:150:34: error: use of undeclared identifier 'list_tests'
list_tests_ = GTEST_FLAG_GET(list_tests);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:151:30: error: use of undeclared identifier 'output'
output_ = GTEST_FLAG_GET(output);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:152:29: error: use of undeclared identifier 'brief'
brief_ = GTEST_FLAG_GET(brief);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:153:34: error: use of undeclared identifier 'print_time'
print_time_ = GTEST_FLAG_GET(print_time);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:154:34: error: use of undeclared identifier 'print_utf8'
print_utf8_ = GTEST_FLAG_GET(print_utf8);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:155:35: error: use of undeclared identifier 'random_seed'
random_seed_ = GTEST_FLAG_GET(random_seed);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:156:30: error: use of undeclared identifier 'repeat'
repeat_ = GTEST_FLAG_GET(repeat);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:158:24: error: use of undeclared identifier 'recreate_environments_when_repeating'
GTEST_FLAG_GET(recreate_environments_when_repeating);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:159:31: error: use of undeclared identifier 'shuffle'
shuffle_ = GTEST_FLAG_GET(shuffle);
^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:160:41: error: use of undeclared identifier 'stack_trace_depth'
stack_trace_depth_ = GTEST_FLAG_GET(stack_trace_depth);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[191/1545] Automatic MOC and UIC for target kddockwidgets
[192/1545] Running rcc pass 1 for resource fonts_FreeSerif
[193/1545] Building CXX object src/framework/global/CMakeFiles/global.dir/internal/platform/macos/macosinteractivehelper.mm.o
ninja: build stopped: subcommand failed.
CMake Error at build.cmake:249 (message):
Build step failed with status 1. See output above for details.
And in my original attempt, to get around the error: 'path' is unavailable: introduced in macOS 10.15
error I had to do this:
for i in **/CMakeLists.txt
echo "
set(CMAKE_OSX_DEPLOYMENT_TARGET \"12.3\")" >> $i
end
maybe upgrading to latest clang then specifying (before build) will help I know how hard these things are to trace hope this helps someone
export CC=/usr/local/opt/llvm/bin/clang export CXX=/usr/local/opt/llvm/bin/clang++ export GCC_HOST_COMPILER_PATH=/usr/local/opt/llvm/bin/clang
I assume these commands are for homebrew
on x86_64
systems? These paths do not exist on my system.
export CC=/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang; export CXX=/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang++; export GCC_HOST_COMPILER_PATH=/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang
jin@Joy-MBP ~/m/musescore (master)> ./build.cmake -G Ninja
[184/1545] Building CXX object src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
FAILED: src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang++ -DKORS_LOGGER_QT_SUPPORT -DKORS_PROFILER_ENABLED -DMUE_BUILD_APPSHELL_MODULE -DMUE_BUILD_BRAILLE_MODULE -DMUE_BUILD_CONVERTER_MODULE -DMUE_BUILD_CRASHPAD_CLIENT -DMUE_BUILD_DIAGNOSTICS_MODULE -DMUE_BUILD_IMAGESEXPORT_MODULE -DMUE_BUILD_IMPORTEXPORT_MODULE -DMUE_BUILD_INSPECTOR_MODULE -DMUE_BUILD_INSTRUMENTSSCENE_MODULE -DMUE_BUILD_NOTATION_MODULE -DMUE_BUILD_PALETTE_MODULE -DMUE_BUILD_PLAYBACK_MODULE -DMUE_BUILD_PROJECT_MODULE -DMUE_BUILD_UPDATE_MODULE -DMUE_COMPILE_USE_QTFONTMETRICS -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKTEMPLATES2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_STATEMACHINE_LIB -DQT_SUPPORT -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSCRIPT_INTERFACE -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/testing/thirdparty/googletest/googletest -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/testing/thirdparty/googletest/googletest/gtest_autogen/include -I/opt/homebrew/lib/QtCore.framework/Headers -F/opt/homebrew/lib -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtDBus.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtNetworkAuth.framework/Headers -I/opt/homebrew/lib/QtQml.framework/Headers -I/opt/homebrew/include/QtQmlIntegration -I/opt/homebrew/include -I/opt/homebrew/lib/QtQuick.framework/Headers -I/opt/homebrew/lib/QtQmlModels.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtQuickControls2.framework/Headers -I/opt/homebrew/lib/QtQuickTemplates2.framework/Headers -I/opt/homebrew/lib/QtQuickWidgets.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtStateMachine.framework/Headers -I/opt/homebrew/lib/QtConcurrent.framework/Headers -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/include -O2 -g -DNDEBUG -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14 -Wall -Wshadow -Wconversion -DGTEST_HAS_PTHREAD=1 -fexceptions -W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wredundant-decls -Wall -Wextra -Wno-conversion -MD -MT src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-all.cc
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-all.cc:41:
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest.cc:118:
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:141:47: error: use of undeclared identifier 'also_run_disabled_tests'
141 | also_run_disabled_tests_ = GTEST_FLAG_GET(also_run_disabled_tests);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:142:40: error: use of undeclared identifier 'break_on_failure'
142 | break_on_failure_ = GTEST_FLAG_GET(break_on_failure);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:143:40: error: use of undeclared identifier 'catch_exceptions'
143 | catch_exceptions_ = GTEST_FLAG_GET(catch_exceptions);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:144:29: error: use of undeclared identifier 'color'
144 | color_ = GTEST_FLAG_GET(color);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:145:40: error: use of undeclared identifier 'death_test_style'
145 | death_test_style_ = GTEST_FLAG_GET(death_test_style);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:146:43: error: use of undeclared identifier 'death_test_use_fork'
146 | death_test_use_fork_ = GTEST_FLAG_GET(death_test_use_fork);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:147:33: error: use of undeclared identifier 'fail_fast'
147 | fail_fast_ = GTEST_FLAG_GET(fail_fast);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:148:30: error: use of undeclared identifier 'filter'
148 | filter_ = GTEST_FLAG_GET(filter);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:149:47: error: use of undeclared identifier 'internal_run_death_test'
149 | internal_run_death_test_ = GTEST_FLAG_GET(internal_run_death_test);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:150:34: error: use of undeclared identifier 'list_tests'
150 | list_tests_ = GTEST_FLAG_GET(list_tests);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:151:30: error: use of undeclared identifier 'output'
151 | output_ = GTEST_FLAG_GET(output);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:152:29: error: use of undeclared identifier 'brief'
152 | brief_ = GTEST_FLAG_GET(brief);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:153:34: error: use of undeclared identifier 'print_time'
153 | print_time_ = GTEST_FLAG_GET(print_time);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:154:34: error: use of undeclared identifier 'print_utf8'
154 | print_utf8_ = GTEST_FLAG_GET(print_utf8);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:155:35: error: use of undeclared identifier 'random_seed'
155 | random_seed_ = GTEST_FLAG_GET(random_seed);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:156:30: error: use of undeclared identifier 'repeat'
156 | repeat_ = GTEST_FLAG_GET(repeat);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:158:24: error: use of undeclared identifier 'recreate_environments_when_repeating'
158 | GTEST_FLAG_GET(recreate_environments_when_repeating);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:159:31: error: use of undeclared identifier 'shuffle'
159 | shuffle_ = GTEST_FLAG_GET(shuffle);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:160:41: error: use of undeclared identifier 'stack_trace_depth'
160 | stack_trace_depth_ = GTEST_FLAG_GET(stack_trace_depth);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[185/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/gain_quant.c.o
[186/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/encode_indices.c.o
[187/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/encode_pulses.c.o
[188/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/src/opus_encoder.c.o
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/src/opus_encoder.c:38:
/Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/celt/float_cast.h:129:10: warning: "Don't have the functions lrint() and lrintf ()." [-W#warnings]
129 | #warning "Don't have the functions lrint() and lrintf ()."
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/celt/float_cast.h:130:10: warning: "Replacing these functions with a standard C cast." [-W#warnings]
130 | #warning "Replacing these functions with a standard C cast."
| ^
2 warnings generated.
[189/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/dec_API.c.o
[190/1545] Building C object src/framework/audio/opusenc/opus/CMakeFiles/opus.dir/silk/enc_API.c.o
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/silk/enc_API.c:41:
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/silk/float/main_FLP.h:31:
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/silk/float/SigProc_FLP.h:32:
/Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/celt/float_cast.h:129:10: warning: "Don't have the functions lrint() and lrintf ()." [-W#warnings]
129 | #warning "Don't have the functions lrint() and lrintf ()."
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/audio/thirdparty/opus/celt/float_cast.h:130:10: warning: "Replacing these functions with a standard C cast." [-W#warnings]
130 | #warning "Replacing these functions with a standard C cast."
| ^
2 warnings generated.
[191/1545] Automatic MOC and UIC for target global
[192/1545] Running rcc pass 1 for resource fonts_Bravura
[193/1545] Automatic MOC and UIC for target kddockwidgets
ninja: build stopped: subcommand failed.
CMake Error at build.cmake:249 (message):
Build step failed with status 1. See output above for details.
export CC=/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang; export CXX=/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang++; export GCC_HOST_COMPILER_PATH=/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang
jin@Joy-MBP ~/m/musescore (master)> ./build.cmake
[184/1545] Building CXX object src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
FAILED: src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
/opt/homebrew/Cellar/llvm/17.0.6_1/bin/clang++ -DKORS_LOGGER_QT_SUPPORT -DKORS_PROFILER_ENABLED -DMUE_BUILD_APPSHELL_MODULE -DMUE_BUILD_BRAILLE_MODULE -DMUE_BUILD_CONVERTER_MODULE -DMUE_BUILD_CRASHPAD_CLIENT -DMUE_BUILD_DIAGNOSTICS_MODULE -DMUE_BUILD_IMAGESEXPORT_MODULE -DMUE_BUILD_IMPORTEXPORT_MODULE -DMUE_BUILD_INSPECTOR_MODULE -DMUE_BUILD_INSTRUMENTSSCENE_MODULE -DMUE_BUILD_NOTATION_MODULE -DMUE_BUILD_PALETTE_MODULE -DMUE_BUILD_PLAYBACK_MODULE -DMUE_BUILD_PROJECT_MODULE -DMUE_BUILD_UPDATE_MODULE -DMUE_COMPILE_USE_QTFONTMETRICS -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKTEMPLATES2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_STATEMACHINE_LIB -DQT_SUPPORT -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSCRIPT_INTERFACE -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/testing/thirdparty/googletest/googletest -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest -I/Users/jin/musescorecomilebug/MuseScore/builds/Mac-Qtopt-homebrew-Ninja-RelWithDebInfo/src/framework/testing/thirdparty/googletest/googletest/gtest_autogen/include -I/opt/homebrew/lib/QtCore.framework/Headers -F/opt/homebrew/lib -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtDBus.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtNetworkAuth.framework/Headers -I/opt/homebrew/lib/QtQml.framework/Headers -I/opt/homebrew/include/QtQmlIntegration -I/opt/homebrew/include -I/opt/homebrew/lib/QtQuick.framework/Headers -I/opt/homebrew/lib/QtQmlModels.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtQuickControls2.framework/Headers -I/opt/homebrew/lib/QtQuickTemplates2.framework/Headers -I/opt/homebrew/lib/QtQuickWidgets.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtStateMachine.framework/Headers -I/opt/homebrew/lib/QtConcurrent.framework/Headers -I/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/include -O2 -g -DNDEBUG -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14 -Wall -Wshadow -Wconversion -DGTEST_HAS_PTHREAD=1 -fexceptions -W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wredundant-decls -Wall -Wextra -Wno-conversion -MD -MT src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-all.cc
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-all.cc:41:
In file included from /Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest.cc:118:
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:141:47: error: use of undeclared identifier 'also_run_disabled_tests'
141 | also_run_disabled_tests_ = GTEST_FLAG_GET(also_run_disabled_tests);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:142:40: error: use of undeclared identifier 'break_on_failure'
142 | break_on_failure_ = GTEST_FLAG_GET(break_on_failure);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:143:40: error: use of undeclared identifier 'catch_exceptions'
143 | catch_exceptions_ = GTEST_FLAG_GET(catch_exceptions);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:144:29: error: use of undeclared identifier 'color'
144 | color_ = GTEST_FLAG_GET(color);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:145:40: error: use of undeclared identifier 'death_test_style'
145 | death_test_style_ = GTEST_FLAG_GET(death_test_style);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:146:43: error: use of undeclared identifier 'death_test_use_fork'
146 | death_test_use_fork_ = GTEST_FLAG_GET(death_test_use_fork);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:147:33: error: use of undeclared identifier 'fail_fast'
147 | fail_fast_ = GTEST_FLAG_GET(fail_fast);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:148:30: error: use of undeclared identifier 'filter'
148 | filter_ = GTEST_FLAG_GET(filter);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:149:47: error: use of undeclared identifier 'internal_run_death_test'
149 | internal_run_death_test_ = GTEST_FLAG_GET(internal_run_death_test);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:150:34: error: use of undeclared identifier 'list_tests'
150 | list_tests_ = GTEST_FLAG_GET(list_tests);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:151:30: error: use of undeclared identifier 'output'
151 | output_ = GTEST_FLAG_GET(output);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:152:29: error: use of undeclared identifier 'brief'
152 | brief_ = GTEST_FLAG_GET(brief);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:153:34: error: use of undeclared identifier 'print_time'
153 | print_time_ = GTEST_FLAG_GET(print_time);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:154:34: error: use of undeclared identifier 'print_utf8'
154 | print_utf8_ = GTEST_FLAG_GET(print_utf8);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:155:35: error: use of undeclared identifier 'random_seed'
155 | random_seed_ = GTEST_FLAG_GET(random_seed);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:156:30: error: use of undeclared identifier 'repeat'
156 | repeat_ = GTEST_FLAG_GET(repeat);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:158:24: error: use of undeclared identifier 'recreate_environments_when_repeating'
158 | GTEST_FLAG_GET(recreate_environments_when_repeating);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:159:31: error: use of undeclared identifier 'shuffle'
159 | shuffle_ = GTEST_FLAG_GET(shuffle);
| ^
/Users/jin/musescorecomilebug/musescore/src/framework/testing/thirdparty/googletest/googletest/src/gtest-internal-inl.h:160:41: error: use of undeclared identifier 'stack_trace_depth'
160 | stack_trace_depth_ = GTEST_FLAG_GET(stack_trace_depth);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[2]: *** [src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/build.make:97: src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2676: src/framework/testing/thirdparty/googletest/googletest/CMakeFiles/gtest.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:59:58: error: 'path' is unavailable: introduced in macOS 10.15 inline QString fromFilesystemPath(const std::filesystem::path &path)
That error comes from using a too new Qt version. Qt 6.3+ assumes building for macOS 10.15 and newer, but for MuseScore we also want to support macOS 10.14.
Issue type
Other type of issue
Bug description
Cannot get MuseScore to compile
Steps to reproduce
Screenshots/Screen recordings
MuseScore Version
GitHub HEAD
Regression
I don't know
Operating system
macOS 12
Additional context
musescore compile.log