ossia / libossia

A modern C++, cross-environment distributed object model for creative coding and interaction scoring
https://ossia.io
GNU Lesser General Public License v3.0
207 stars 34 forks source link

master build fails on mac os #804

Open x37v opened 2 years ago

x37v commented 2 years ago

libossia: 8fee847c5e809dcc91f1f79c93eea4069a056be4 i'm on osx 10.15.7 with xcode 11.7. seems like I should be good according to https://github.com/OSSIA/libossia/wiki/Building#building-libossia-and-tests-on-macos-on-the-command-line

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project ossia.xcodeproj build -target ALL_BUILD -configuration Debug -hideShellScriptEnvironment

User defaults from command line:
    HideShellScriptEnvironment = YES

Prepare build
note: Using legacy build system
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT ossia WITH CONFIGURATION Debug ===

Check dependencies

PhaseScriptExecution CMake\ Rules build/ossia.build/Debug/ZERO_CHECK.build/Script-0E6896FB2DA4478E8CE32312.sh
    cd /Users/xnor/local/src/libossia
    /bin/sh -c /Users/xnor/local/src/libossia/build/ossia.build/Debug/ZERO_CHECK.build/Script-0E6896FB2DA4478E8CE32312.sh
echo ""

make -f /Users/xnor/local/src/libossia/build/CMakeScripts/ReRunCMake.make
make[1]: `/Users/xnor/local/src/libossia/build/CMakeFiles/cmake.check_cache' is up to date.

=== BUILD TARGET re2 OF PROJECT ossia WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET ossia OF PROJECT ossia WITH CONFIGURATION Debug ===

Check dependencies

CompileC build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/name_validation.o src/ossia/network/base/name_validation.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/xnor/local/src/libossia
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.15 -fmessage-length=243 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DOSSIA_EXPORTS -DRAPIDJSON_HAS_STDSTRING=1 -DTINYSPLINE_DOUBLE_PRECISION -DBOOST_MATH_DISABLE_FLOAT128=1 -DBOOST_ASIO_DISABLE_CONCEPTS=1 -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING -DFMT_HEADER_ONLY=1 -DSERVUS_USE_DNSSD -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/xnor/local/src/libossia/build/src/Debug/include -I/Users/xnor/local/src/libossia/src/ossia-cpp -I/Users/xnor/local/src/libossia/src -I/Users/xnor/local/src/libossia/3rdparty/rapidfuzz-cpp -I/Users/xnor/local/src/libossia/build/src -I/Users/xnor/local/src/libossia/3rdparty/Servus/servus/.. -I/Users/xnor/local/src/libossia/3rdparty/re2 -isystem /Users/xnor/local/src/libossia/3rdparty/compile-time-regular-expressions/include -isystem /Users/xnor/local/src/libossia/3rdparty/mparkvariant/include -isystem /Users/xnor/local/src/libossia/3rdparty/nano-signal-slot/include -isystem /Users/xnor/local/src/libossia/3rdparty/spdlog/include -isystem /Users/xnor/local/src/libossia/3rdparty/brigand/include -isystem /Users/xnor/local/src/libossia/3rdparty/fmt/include -isystem /Users/xnor/local/src/libossia/3rdparty/hopscotch-map/include -isystem /Users/xnor/local/src/libossia/3rdparty/mdspan/include -isystem /Users/xnor/local/src/libossia/3rdparty/tuplet/include -isystem /Users/xnor/local/src/libossia/3rdparty/flat_hash_map -isystem /Users/xnor/local/src/libossia/3rdparty/flat -isystem /Users/xnor/local/src/libossia/3rdparty/readerwriterqueue -isystem /Users/xnor/local/src/libossia/3rdparty/concurrentqueue -isystem /Users/xnor/local/src/libossia/3rdparty/SmallFunction/smallfun/include -isystem /Users/xnor/local/src/libossia/3rdparty/websocketpp -isystem /Users/xnor/local/src/libossia/3rdparty/dr_libs -isystem /Users/xnor/local/src/libossia/3rdparty/rnd/include -isystem /Users/xnor/local/src/libossia/3rdparty/span/include -isystem /Users/xnor/local/src/libossia/3rdparty/unordered_dense/include -isystem /Users/xnor/local/src/libossia/3rdparty/PerlinNoise -isystem /Users/xnor/local/src/libossia/3rdparty/rapidjson/include -isystem /Users/xnor/local/src/libossia/3rdparty/libremidi/include -isystem /Users/xnor/local/src/libossia/3rdparty/oscpack -isystem /Users/xnor/local/src/libossia/3rdparty/boost_1_80_0 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources-normal/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources -F/Users/xnor/local/src/libossia/build/src/Debug -std=c++2a -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-gnu-statement-expression -Wno-four-char-constants -Wno-cast-align -Wno-unused-local-typedef -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-missing-braces -Wnon-virtual-dtor -pedantic -Wunused -Woverloaded-virtual -pipe -Werror=return-type -Werror=trigraphs -Wmissing-field-initializers -Wno-auto-var-id -Wno-availability -Wno-deprecated-declarations -Wno-exceptions -Wno-extra-semi -Wno-gnu-folding-constant -Wno-gnu-zero-variadic-macro-arguments -Wno-inconsistent-missing-override -Wno-infinite-recursion -Wno-missing-method-return-type -Wno-non-virtual-dtor -Wno-nullability-completeness-on-arrays -Wno-nullability-extension -Wno-pedantic -Wno-sign-compare -Wno-switch -Wno-unguarded-availability-new -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-private-field -Wno-unused-variable -Wno-variadic-macros -Wno-zero-length-array -std=gnu++2a -MMD -MT dependencies -MF /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/name_validation.d --serialize-diagnostics /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/name_validation.dia -c /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp -o /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/name_validation.o
/Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp:25:22: error: call to 'ssize' is ambiguous
  for(int i = 0; i < std::ssize(ret); i++)
                     ^~~~~~~~~~
In file included from /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp:1:
In file included from /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.hpp:2:
In file included from /Users/xnor/local/src/libossia/src/ossia/detail/string_view.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/array:110:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1871:16: note: candidate function [with _Cont = std::__1::basic_string<char>]
constexpr auto ssize(const _Cont& __c)
               ^
In file included from /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp:6:
/Users/xnor/local/src/libossia/src/ossia/detail/ssize.hpp:19:23: note: candidate function [with T = std::__1::basic_string<char>]
static constexpr auto ssize(const T& t) noexcept
                      ^
/Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp:39:22: error: call to 'ssize' is ambiguous
  for(int i = 0; i < std::ssize(ret); i++)
                     ^~~~~~~~~~
In file included from /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp:1:
In file included from /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.hpp:2:
In file included from /Users/xnor/local/src/libossia/src/ossia/detail/string_view.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/array:110:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1871:16: note: candidate function [with _Cont = std::__1::basic_string<char>]
constexpr auto ssize(const _Cont& __c)
               ^
In file included from /Users/xnor/local/src/libossia/src/ossia/network/base/name_validation.cpp:6:
/Users/xnor/local/src/libossia/src/ossia/detail/ssize.hpp:19:23: note: candidate function [with T = std::__1::basic_string<char>]
static constexpr auto ssize(const T& t) noexcept
                      ^
2 errors generated.

CompileC build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/node_functions.o src/ossia/network/base/node_functions.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/xnor/local/src/libossia
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.15 -fmessage-length=243 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DOSSIA_EXPORTS -DRAPIDJSON_HAS_STDSTRING=1 -DTINYSPLINE_DOUBLE_PRECISION -DBOOST_MATH_DISABLE_FLOAT128=1 -DBOOST_ASIO_DISABLE_CONCEPTS=1 -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING -DFMT_HEADER_ONLY=1 -DSERVUS_USE_DNSSD -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/xnor/local/src/libossia/build/src/Debug/include -I/Users/xnor/local/src/libossia/src/ossia-cpp -I/Users/xnor/local/src/libossia/src -I/Users/xnor/local/src/libossia/3rdparty/rapidfuzz-cpp -I/Users/xnor/local/src/libossia/build/src -I/Users/xnor/local/src/libossia/3rdparty/Servus/servus/.. -I/Users/xnor/local/src/libossia/3rdparty/re2 -isystem /Users/xnor/local/src/libossia/3rdparty/compile-time-regular-expressions/include -isystem /Users/xnor/local/src/libossia/3rdparty/mparkvariant/include -isystem /Users/xnor/local/src/libossia/3rdparty/nano-signal-slot/include -isystem /Users/xnor/local/src/libossia/3rdparty/spdlog/include -isystem /Users/xnor/local/src/libossia/3rdparty/brigand/include -isystem /Users/xnor/local/src/libossia/3rdparty/fmt/include -isystem /Users/xnor/local/src/libossia/3rdparty/hopscotch-map/include -isystem /Users/xnor/local/src/libossia/3rdparty/mdspan/include -isystem /Users/xnor/local/src/libossia/3rdparty/tuplet/include -isystem /Users/xnor/local/src/libossia/3rdparty/flat_hash_map -isystem /Users/xnor/local/src/libossia/3rdparty/flat -isystem /Users/xnor/local/src/libossia/3rdparty/readerwriterqueue -isystem /Users/xnor/local/src/libossia/3rdparty/concurrentqueue -isystem /Users/xnor/local/src/libossia/3rdparty/SmallFunction/smallfun/include -isystem /Users/xnor/local/src/libossia/3rdparty/websocketpp -isystem /Users/xnor/local/src/libossia/3rdparty/dr_libs -isystem /Users/xnor/local/src/libossia/3rdparty/rnd/include -isystem /Users/xnor/local/src/libossia/3rdparty/span/include -isystem /Users/xnor/local/src/libossia/3rdparty/unordered_dense/include -isystem /Users/xnor/local/src/libossia/3rdparty/PerlinNoise -isystem /Users/xnor/local/src/libossia/3rdparty/rapidjson/include -isystem /Users/xnor/local/src/libossia/3rdparty/libremidi/include -isystem /Users/xnor/local/src/libossia/3rdparty/oscpack -isystem /Users/xnor/local/src/libossia/3rdparty/boost_1_80_0 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources-normal/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources -F/Users/xnor/local/src/libossia/build/src/Debug -std=c++2a -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-gnu-statement-expression -Wno-four-char-constants -Wno-cast-align -Wno-unused-local-typedef -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-missing-braces -Wnon-virtual-dtor -pedantic -Wunused -Woverloaded-virtual -pipe -Werror=return-type -Werror=trigraphs -Wmissing-field-initializers -Wno-auto-var-id -Wno-availability -Wno-deprecated-declarations -Wno-exceptions -Wno-extra-semi -Wno-gnu-folding-constant -Wno-gnu-zero-variadic-macro-arguments -Wno-inconsistent-missing-override -Wno-infinite-recursion -Wno-missing-method-return-type -Wno-non-virtual-dtor -Wno-nullability-completeness-on-arrays -Wno-nullability-extension -Wno-pedantic -Wno-sign-compare -Wno-switch -Wno-unguarded-availability-new -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-private-field -Wno-unused-variable -Wno-variadic-macros -Wno-zero-length-array -std=gnu++2a -MMD -MT dependencies -MF /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/node_functions.d --serialize-diagnostics /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/node_functions.dia -c /Users/xnor/local/src/libossia/src/ossia/network/base/node_functions.cpp -o /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/node_functions.o

CompileC build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/path.o src/ossia/network/common/path.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/xnor/local/src/libossia
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.15 -fmessage-length=243 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DOSSIA_EXPORTS -DRAPIDJSON_HAS_STDSTRING=1 -DTINYSPLINE_DOUBLE_PRECISION -DBOOST_MATH_DISABLE_FLOAT128=1 -DBOOST_ASIO_DISABLE_CONCEPTS=1 -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING -DFMT_HEADER_ONLY=1 -DSERVUS_USE_DNSSD -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/xnor/local/src/libossia/build/src/Debug/include -I/Users/xnor/local/src/libossia/src/ossia-cpp -I/Users/xnor/local/src/libossia/src -I/Users/xnor/local/src/libossia/3rdparty/rapidfuzz-cpp -I/Users/xnor/local/src/libossia/build/src -I/Users/xnor/local/src/libossia/3rdparty/Servus/servus/.. -I/Users/xnor/local/src/libossia/3rdparty/re2 -isystem /Users/xnor/local/src/libossia/3rdparty/compile-time-regular-expressions/include -isystem /Users/xnor/local/src/libossia/3rdparty/mparkvariant/include -isystem /Users/xnor/local/src/libossia/3rdparty/nano-signal-slot/include -isystem /Users/xnor/local/src/libossia/3rdparty/spdlog/include -isystem /Users/xnor/local/src/libossia/3rdparty/brigand/include -isystem /Users/xnor/local/src/libossia/3rdparty/fmt/include -isystem /Users/xnor/local/src/libossia/3rdparty/hopscotch-map/include -isystem /Users/xnor/local/src/libossia/3rdparty/mdspan/include -isystem /Users/xnor/local/src/libossia/3rdparty/tuplet/include -isystem /Users/xnor/local/src/libossia/3rdparty/flat_hash_map -isystem /Users/xnor/local/src/libossia/3rdparty/flat -isystem /Users/xnor/local/src/libossia/3rdparty/readerwriterqueue -isystem /Users/xnor/local/src/libossia/3rdparty/concurrentqueue -isystem /Users/xnor/local/src/libossia/3rdparty/SmallFunction/smallfun/include -isystem /Users/xnor/local/src/libossia/3rdparty/websocketpp -isystem /Users/xnor/local/src/libossia/3rdparty/dr_libs -isystem /Users/xnor/local/src/libossia/3rdparty/rnd/include -isystem /Users/xnor/local/src/libossia/3rdparty/span/include -isystem /Users/xnor/local/src/libossia/3rdparty/unordered_dense/include -isystem /Users/xnor/local/src/libossia/3rdparty/PerlinNoise -isystem /Users/xnor/local/src/libossia/3rdparty/rapidjson/include -isystem /Users/xnor/local/src/libossia/3rdparty/libremidi/include -isystem /Users/xnor/local/src/libossia/3rdparty/oscpack -isystem /Users/xnor/local/src/libossia/3rdparty/boost_1_80_0 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources-normal/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources -F/Users/xnor/local/src/libossia/build/src/Debug -std=c++2a -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-gnu-statement-expression -Wno-four-char-constants -Wno-cast-align -Wno-unused-local-typedef -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-missing-braces -Wnon-virtual-dtor -pedantic -Wunused -Woverloaded-virtual -pipe -Werror=return-type -Werror=trigraphs -Wmissing-field-initializers -Wno-auto-var-id -Wno-availability -Wno-deprecated-declarations -Wno-exceptions -Wno-extra-semi -Wno-gnu-folding-constant -Wno-gnu-zero-variadic-macro-arguments -Wno-inconsistent-missing-override -Wno-infinite-recursion -Wno-missing-method-return-type -Wno-non-virtual-dtor -Wno-nullability-completeness-on-arrays -Wno-nullability-extension -Wno-pedantic -Wno-sign-compare -Wno-switch -Wno-unguarded-availability-new -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-private-field -Wno-unused-variable -Wno-variadic-macros -Wno-zero-length-array -std=gnu++2a -MMD -MT dependencies -MF /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/path.d --serialize-diagnostics /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/path.dia -c /Users/xnor/local/src/libossia/src/ossia/network/common/path.cpp -o /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/path.o
/Users/xnor/local/src/libossia/src/ossia/network/common/path.cpp:26:10: error: no matching function for call to 'FullMatch'
  return re2::RE2::FullMatch(m, *r);
         ^~~~~~~~~~~~~~~~~~~
In file included from /Users/xnor/local/src/libossia/src/ossia/network/common/path.cpp:15:
/Users/xnor/local/src/libossia/3rdparty/re2/re2/re2.h:384:15: note: candidate function template not viable: no known conversion from 'std::string_view' (aka 'basic_string_view<char>') to 'const re2::StringPiece' for 1st argument
  static bool FullMatch(const StringPiece& text, const RE2& re, A&&... a) {
              ^
/Users/xnor/local/src/libossia/src/ossia/network/common/path.cpp:372:10: error: no matching function for call to 'FullMatch'
  return re2::RE2::FullMatch(address, rex);
         ^~~~~~~~~~~~~~~~~~~
In file included from /Users/xnor/local/src/libossia/src/ossia/network/common/path.cpp:15:
/Users/xnor/local/src/libossia/3rdparty/re2/re2/re2.h:384:15: note: candidate function template not viable: no known conversion from 'std::string_view' (aka 'basic_string_view<char>') to 'const re2::StringPiece' for 1st argument
  static bool FullMatch(const StringPiece& text, const RE2& re, A&&... a) {
              ^

CompileC build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/value.o src/ossia/network/value/value.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/xnor/local/src/libossia
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.15 -fmessage-length=243 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DOSSIA_EXPORTS -DRAPIDJSON_HAS_STDSTRING=1 -DTINYSPLINE_DOUBLE_PRECISION -DBOOST_MATH_DISABLE_FLOAT128=1 -DBOOST_ASIO_DISABLE_CONCEPTS=1 -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING -DFMT_HEADER_ONLY=1 -DSERVUS_USE_DNSSD -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/xnor/local/src/libossia/build/src/Debug/include -I/Users/xnor/local/src/libossia/src/ossia-cpp -I/Users/xnor/local/src/libossia/src -I/Users/xnor/local/src/libossia/3rdparty/rapidfuzz-cpp -I/Users/xnor/local/src/libossia/build/src -I/Users/xnor/local/src/libossia/3rdparty/Servus/servus/.. -I/Users/xnor/local/src/libossia/3rdparty/re2 -isystem /Users/xnor/local/src/libossia/3rdparty/compile-time-regular-expressions/include -isystem /Users/xnor/local/src/libossia/3rdparty/mparkvariant/include -isystem /Users/xnor/local/src/libossia/3rdparty/nano-signal-slot/include -isystem /Users/xnor/local/src/libossia/3rdparty/spdlog/include -isystem /Users/xnor/local/src/libossia/3rdparty/brigand/include -isystem /Users/xnor/local/src/libossia/3rdparty/fmt/include -isystem /Users/xnor/local/src/libossia/3rdparty/hopscotch-map/include -isystem /Users/xnor/local/src/libossia/3rdparty/mdspan/include -isystem /Users/xnor/local/src/libossia/3rdparty/tuplet/include -isystem /Users/xnor/local/src/libossia/3rdparty/flat_hash_map -isystem /Users/xnor/local/src/libossia/3rdparty/flat -isystem /Users/xnor/local/src/libossia/3rdparty/readerwriterqueue -isystem /Users/xnor/local/src/libossia/3rdparty/concurrentqueue -isystem /Users/xnor/local/src/libossia/3rdparty/SmallFunction/smallfun/include -isystem /Users/xnor/local/src/libossia/3rdparty/websocketpp -isystem /Users/xnor/local/src/libossia/3rdparty/dr_libs -isystem /Users/xnor/local/src/libossia/3rdparty/rnd/include -isystem /Users/xnor/local/src/libossia/3rdparty/span/include -isystem /Users/xnor/local/src/libossia/3rdparty/unordered_dense/include -isystem /Users/xnor/local/src/libossia/3rdparty/PerlinNoise -isystem /Users/xnor/local/src/libossia/3rdparty/rapidjson/include -isystem /Users/xnor/local/src/libossia/3rdparty/libremidi/include -isystem /Users/xnor/local/src/libossia/3rdparty/oscpack -isystem /Users/xnor/local/src/libossia/3rdparty/boost_1_80_0 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources-normal/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources/x86_64 -I/Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/DerivedSources -F/Users/xnor/local/src/libossia/build/src/Debug -std=c++2a -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-gnu-statement-expression -Wno-four-char-constants -Wno-cast-align -Wno-unused-local-typedef -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-missing-braces -Wnon-virtual-dtor -pedantic -Wunused -Woverloaded-virtual -pipe -Werror=return-type -Werror=trigraphs -Wmissing-field-initializers -Wno-auto-var-id -Wno-availability -Wno-deprecated-declarations -Wno-exceptions -Wno-extra-semi -Wno-gnu-folding-constant -Wno-gnu-zero-variadic-macro-arguments -Wno-inconsistent-missing-override -Wno-infinite-recursion -Wno-missing-method-return-type -Wno-non-virtual-dtor -Wno-nullability-completeness-on-arrays -Wno-nullability-extension -Wno-pedantic -Wno-sign-compare -Wno-switch -Wno-unguarded-availability-new -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-private-field -Wno-unused-variable -Wno-variadic-macros -Wno-zero-length-array -std=gnu++2a -MMD -MT dependencies -MF /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/value.d --serialize-diagnostics /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/value.dia -c /Users/xnor/local/src/libossia/src/ossia/network/value/value.cpp -o /Users/xnor/local/src/libossia/build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/value.o

** BUILD FAILED **

The following build commands failed:
    CompileC build/src/ossia.build/Debug/ossia.build/Objects-normal/x86_64/name_validation.o src/ossia/network/base/name_validation.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I have a branch that builds: https://github.com/ossia/libossia/compare/master...Cycling74:libossia:xnor/master-build Though some tests fail, i'm not sure if those tests failed before or not. There was also a note Note : if this is changed, also change the Qt version in js_utilities.cpp but I didn't find/change the appropriate thing to change.

jcelerier commented 2 years ago

arf, can you try going into src/ossia/detail/ssize.hpp and replacing __MAC_OS_X_VERSION_MIN_REQUIRED >= 113000 by e.g. 114000? Or even just #ifdefing the whole thing to make sure that it builds this way

x37v commented 2 years ago

incrementing to 114000 solved the ssize failure, still failing on FullMatch

jcelerier commented 2 years ago

hmmm checking into re2's code it seems that there is an overload which depends on __cpp_lib_string_view being defined. wild that xcode 11.3 didn't yet provides it even though it provided the type... trying to think of a fix

jcelerier commented 2 years ago

I'm wondering: what does it give if you try to run CMake with -DCMAKE_CXX_FLAGS="-D__cpp_lib_string_view=201803L" to try to force things a bit ? Maybe they didn't define the flag at the time because not all member functions were implemented but with some luck we aren't using them.... the only reference to __cpp_lib_string_view I could find in ossia's source tree is in re2

jcelerier commented 2 years ago

nevermind, there's an overload that takes (const char* data, size_t size) ; i'll just change the code to use that

jcelerier commented 2 years ago

can you try at current git master?

maybites commented 2 years ago

I just tried to compile it on my machine and have the same problem: with current master [514c7f5bf] and follwoing these instructions: https://github.com/ossia/libossia/wiki/Building#building-the-max-implementation-on-macos

[ 27%] Building CXX object src/CMakeFiles/ossia.dir/ossia/network/base/name_validation.cpp.o
/Users/maybites/Arbeiten/02_code/library/ossia/libossia/src/ossia/network/base/name_validation.cpp:25:22: error: 
      call to 'ssize' is ambiguous
  for(int i = 0; i < std::ssize(ret); i++)
                     ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1955:16: note: 
      candidate function [with _Cont = std::__1::basic_string<char>]
constexpr auto ssize(const _Cont& __c)
               ^
/Users/maybites/Arbeiten/02_code/library/ossia/libossia/src/ossia/detail/ssize.hpp:19:23: note: 
      candidate function [with T = std::__1::basic_string<char>]
static constexpr auto ssize(const T& t) noexcept
                      ^
/Users/maybites/Arbeiten/02_code/library/ossia/libossia/src/ossia/network/base/name_validation.cpp:39:22: error: 
      call to 'ssize' is ambiguous
  for(int i = 0; i < std::ssize(ret); i++)
                     ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1955:16: note: 
      candidate function [with _Cont = std::__1::basic_string<char>]
constexpr auto ssize(const _Cont& __c)
               ^
/Users/maybites/Arbeiten/02_code/library/ossia/libossia/src/ossia/detail/ssize.hpp:19:23: note: 
      candidate function [with T = std::__1::basic_string<char>]
static constexpr auto ssize(const T& t) noexcept
                      ^
[ 28%] Building CXX object src/CMakeFiles/ossia.dir/ossia/network/base/node.cpp.o
[ 29%] Building CXX object src/CMakeFiles/ossia.dir/ossia/network/base/node_functions.cpp.o
2 errors generated.
make[2]: *** [src/CMakeFiles/ossia.dir/ossia/network/base/name_validation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/ossia.dir/all] Error 2
make: *** [all] Error 2
jcelerier commented 1 year ago

agh, and can you tell me which version of Xcode you are using ?

maybites commented 1 year ago

Version 12.4 (12D4e)

jcelerier commented 1 year ago

hmmm... I wonder if it's still the same with a clean build? It looks like it could be using an old Xcode SDK maybe? Can you send me the CMakeCache.txt at the root of the build folder?

maybites commented 1 year ago

CMakeCache.txt

jcelerier commented 1 year ago

okay, it's Xcode 12 but with the macosx 11.1 sdk:

 CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk

can you try to run

 cmake . -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

to set it to the last version ? if I'm not mistaken that's the right path but cannot check on my mac right now

maybites commented 1 year ago

I cleaned the 'build-max' folder and executed

cmake ../libossia -DOSSIA_EXAMPLES=1 -DOSSIA_TESTING=1  -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

which was running without issues

but my error reported above when executing 'make' still persists.

jcelerier commented 1 year ago

hmmm... can you send me the new CMakeCache.txt from this build ? I wonder if there isn't some package which tries to force-use the MacOSXA.B.sdk somewhere

jcelerier commented 1 year ago

.. at worst, can you try to move it somewhere else temporarily and do a clean build ?

maybites commented 1 year ago

I just did a clean clone and build, same error.

CMakeCache.txt

jcelerier commented 1 year ago

okay, I can see still the line in the CMakeCacke.txt:

CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk

so there seems to be something in either our cmake code or a third party dep, that forces to it when it is detected. I will try to simulate on my mac by adding the SDK manually and seeing where things go wrong.

In the meantime:

could you make a clean build folder and run:

1/ the command

  cmake /* usual cmake build commands */ --trace > trace.log
  // send me trace.log
  // clear the build dir

  cmake /* usual cmake build commands */ --trace-expand > trace-expand.log
  // send me trace-expand.log

this way I can see exactly where the issue happens in your machine in case I cannot reproduce on mine. thanks, sorry for all the steps... debugging build issues on mac are always a pain ahha

maybites commented 1 year ago

trace.log

trace-expand.log

jcelerier commented 1 year ago

oops... had a typo in my message sorry. It's 2> not >. But even in the log you showed it talks about DNSSD - i'll investigate around this part first so don't worry about runnign the commands again