pothosware / homebrew-pothos

Homebrew formulas for Pothos and SoapySDR
https://github.com/pothosware/homebrew-pothos/wiki
MIT License
62 stars 17 forks source link

Pothos Blocks fails to compile Mac Big Sur #48

Closed keesL closed 3 years ago

keesL commented 3 years ago

Hello all,

While following the build instructions on https://github.com/pothosware/homebrew-pothos/wiki, I failed to build Pothos Blocks on MacOS Big Sur. To make sure, I used a blank brew environment.

brew install pothosblocks

fails with the following errors

cd /tmp/pothosblocks-20210123-84060-1lto6es/PothosBlocks-pothos-blocks-0.5.2/build/stream && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DPOCO_ENABLE_CPP11 -DPOCO_ENABLE_CPP14 -DPOCO_HAVE_IPv6 -DPOCO_NO_STAT64 -DPOCO_OS_FAMILY_UNIX -DStreamBlocks_EXPORTS -DXML_DTD -I/usr/local/include/nlohmann -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fPIC -std=gnu++14 -o CMakeFiles/StreamBlocks.dir/Mute.cpp.o -c /tmp/pothosblocks-20210123-84060-1lto6es/PothosBlocks-pothos-blocks-0.5.2/stream/Mute.cpp
/tmp/pothosblocks-20210123-84060-1lto6es/PothosBlocks-pothos-blocks-0.5.2/stream/TestRepeat.cpp:109:5: error: use of overloaded operator '==' is ambiguous (with operand types 'const size_t' (aka 'const unsigned long') and 'Pothos::Proxy')
    POTHOS_TEST_EQUAL(repeatCount, repeat.call("repeatCount"));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/Pothos/Testing.hpp:112:70: note: expanded from macro 'POTHOS_TEST_EQUAL'
        " == " + Pothos::TestingBase::current().toString(rhs), (lhs) == (rhs)); \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/local/include/Pothos/Testing.hpp:78:42: note: expanded from macro '__POTHOS_TEST_ASSERT'
    __POTHOS_TEST_STATEMENT(message, if (statement) {} else throw std::string("statement \"" #statement "\" evaluated false");); \
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/Pothos/Testing.hpp:68:9: note: expanded from macro '__POTHOS_TEST_STATEMENT'
    try{statement;} \
        ^~~~~~~~~
/tmp/pothosblocks-20210123-84060-1lto6es/PothosBlocks-pothos-blocks-0.5.2/stream/TestRepeat.cpp:109:5: note: built-in candidate operator==(unsigned long, float)
/usr/local/include/Pothos/Testing.hpp:112:70: note: expanded from macro 'POTHOS_TEST_EQUAL'
        " == " + Pothos::TestingBase::current().toString(rhs), (lhs) == (rhs)); \

This repeats for a while. Some additional info:

HOMEBREW_VERSION: 2.7.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: bca4804a9e48de5319383d3eddadaa7f054c77da
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c75a2e0b02247a01cafa248cdb45e0a662e6a0aa
Core tap last commit: 25 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.DkEfeScl1V/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 11.0.8, 11.0.2
macOS: 11.1-x86_64
CLT: 12.3.0.0.1.1607026830
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j12
CMAKE_PREFIX_PATH: /usr/local/opt/openssl@1.1:/usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/muparserx/lib/pkgconfig:/usr/local/opt/pothos/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/cmake/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/poco/bin:/usr/local/opt/pothos/bin:/usr/bin:/bin:/usr/sbin:/sbin
guruofquality commented 3 years ago

I made a new release tag that should have the fixes: https://github.com/pothosware/homebrew-pothos/commit/c4c12ff16d6d0618f73adf3a90f1f9acae5f6a02

I have more tags to make for other projects to come :-)

keesL commented 3 years ago

Confirmed fixed. Thank you!