Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew install pothosaudio fails (Catalina 10.15.6) #44

Open
kerrynwood opened this issue Sep 7, 2020 · 3 comments
Open

brew install pothosaudio fails (Catalina 10.15.6) #44

kerrynwood opened this issue Sep 7, 2020 · 3 comments

Comments

@kerrynwood
Copy link

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
Copy link

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

@guruofquality
Copy link
Contributor

guruofquality commented Sep 16, 2020

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants