pothosware / homebrew-pothos

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

brew install pothosaudio fails (Catalina 10.15.6) #44

Open kerrynwood opened 4 years ago

kerrynwood commented 4 years ago

Homebrew version 2.4.16

From source, I can get it to compile by changing -std=gnu++11 to -std=gnu+=14..

[ error snip ]

Last 15 lines from /Users/woodkn1/Library/Logs/Homebrew/pothos/02.make: cd /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/build/apps && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DPOCO_NO_AUTOMATIC_LIBS -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/include -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps -I/usr/local/include/nlohmann -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=gnu++11 -o CMakeFiles/PothosUtil.dir/PothosUtilSelfTests.cpp.o -c /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps/PothosUtilSelfTests.cpp [ 97%] Building CXX object apps/CMakeFiles/PothosUtil.dir/PothosUtilDocParse.cpp.o cd /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/build/apps && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DPOCO_NO_AUTOMATIC_LIBS -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/include -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps -I/usr/local/include/nlohmann -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=gnu++11 -o CMakeFiles/PothosUtil.dir/PothosUtilDocParse.cpp.o -c /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps/PothosUtilDocParse.cpp /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps/PothosUtilSelfTests.cpp:100:15: error: no member named 'emplace_back' in 'std::1::vector<bool, std::1::allocator >' okVec.emplace_back(ok);


[ 97%] Building CXX object apps/CMakeFiles/PothosUtil.dir/PothosUtilRunTopology.cpp.o
cd /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/build/apps && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DPOCO_NO_AUTOMATIC_LIBS -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/include -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps -I/usr/local/include/nlohmann -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=gnu++11 -o CMakeFiles/PothosUtil.dir/PothosUtilRunTopology.cpp.o -c /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps/PothosUtilRunTopology.cpp
[ 98%] Building CXX object apps/CMakeFiles/PothosUtil.dir/PothosUtilListModules.cpp.o
cd /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/build/apps && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DPOCO_NO_AUTOMATIC_LIBS -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/include -I/tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps -I/usr/local/include/nlohmann -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=gnu++11 -o CMakeFiles/PothosUtil.dir/PothosUtilListModules.cpp.o -c /tmp/pothos-20200906-14635-iknr7/PothosCore-pothos-0.7.0/apps/PothosUtilListModules.cpp
1 error generated.
make[2]: *** [apps/CMakeFiles/PothosUtil.dir/PothosUtilSelfTests.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [apps/CMakeFiles/PothosUtil.dir/all] Error 2
make: *** [all] Error 2
CybSec113 commented 4 years ago

Similar error (brew 2.5.1): make[1]: *** [CMakeFiles/AudioSupport.dir/all] Error 2

guruofquality commented 4 years ago

Its not the audio module, the executable from PothosCore is using the emplace_back of the bool specialization of std::vector. I guess they didnt add it yet until after c++11. Not sure, but it should be easy to switch it back to push_back() https://en.cppreference.com/w/cpp/container/vector_bool

guruofquality commented 4 years ago

I replaced the use of this function on master if you build with --head for pothoscore it should be fine

I have had a lot of random compiler issues to fix after this release so I think another tag is on the horizon. THanks for the report