Closed MindTooth closed 5 years ago
Thanks
Are you using 10.12? I've got error on 10.11:
Last 15 lines from ~/Library/Logs/Homebrew/ccls/02.cmake:
[ 41%] Building CXX object CMakeFiles/ccls.dir/src/query.cc.o
/usr/local/opt/llvm/bin/clang++ -DDEFAULT_RESOURCE_DIRECTORY="R\"(/usr/local/Cellar/llvm/7.0.0/lib/clang/7.0.0)\"" -I/tmp/ccls-20180922-8715-19vn0sx/src -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party/rapidjson/include -isystem /usr/local/opt/llvm/include -DNDEBUG -fno-rtti -Wall -Wno-sign-compare -std=c++17 -o CMakeFiles/ccls.dir/src/query.cc.o -c /tmp/ccls-20180922-8715-19vn0sx/src/query.cc
/tmp/ccls-20180922-8715-19vn0sx/src/pipeline.cc:104:6: error: 'shared_mutex' is unavailable: introduced in macOS 10.12
std::shared_mutex g_index_mutex;
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/shared_mutex:178:58: note: 'shared_mutex' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_mutex
^
[ 43%] Building CXX object CMakeFiles/ccls.dir/src/serializer.cc.o
/usr/local/opt/llvm/bin/clang++ -DDEFAULT_RESOURCE_DIRECTORY="R\"(/usr/local/Cellar/llvm/7.0.0/lib/clang/7.0.0)\"" -I/tmp/ccls-20180922-8715-19vn0sx/src -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party/rapidjson/include -isystem /usr/local/opt/llvm/include -DNDEBUG -fno-rtti -Wall -Wno-sign-compare -std=c++17 -o CMakeFiles/ccls.dir/src/serializer.cc.o -c /tmp/ccls-20180922-8715-19vn0sx/src/serializer.cc
1 error generated.
make[2]: *** [CMakeFiles/ccls.dir/src/pipeline.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/ccls.dir/all] Error 2
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures and other breakages.
Please create pull-requests instead of asking for help on Homebrew's
GitHub, Discourse, Twitter or IRC. As you are running this old version,
you are responsible for resolving any issues you experience.
I’m on 10.13. Seems to be because of LLVM 7. Try to downgrade if possible.
On 22 Sep 2018, at 07:52, twlz0ne notifications@github.com wrote:
Thanks
Are you using 10.12? I've got error on 10.11:
Last 15 lines from ~/Library/Logs/Homebrew/ccls/02.cmake: [ 41%] Building CXX object CMakeFiles/ccls.dir/src/query.cc.o /usr/local/opt/llvm/bin/clang++ -DDEFAULT_RESOURCE_DIRECTORY="R\"(/usr/local/Cellar/llvm/7.0.0/lib/clang/7.0.0)\"" -I/tmp/ccls-20180922-8715-19vn0sx/src -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party/rapidjson/include -isystem /usr/local/opt/llvm/include -DNDEBUG -fno-rtti -Wall -Wno-sign-compare -std=c++17 -o CMakeFiles/ccls.dir/src/query.cc.o -c /tmp/ccls-20180922-8715-19vn0sx/src/query.cc /tmp/ccls-20180922-8715-19vn0sx/src/pipeline.cc:104:6: error: 'shared_mutex' is unavailable: introduced in macOS 10.12 std::shared_mutex g_index_mutex; ^ /usr/local/Cellar/llvm/7.0.0/include/c++/v1/shared_mutex:178:58: note: 'shared_mutex' has been explicitly marked unavailable here class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_mutex ^ [ 43%] Building CXX object CMakeFiles/ccls.dir/src/serializer.cc.o /usr/local/opt/llvm/bin/clang++ -DDEFAULT_RESOURCE_DIRECTORY="R\"(/usr/local/Cellar/llvm/7.0.0/lib/clang/7.0.0)\"" -I/tmp/ccls-20180922-8715-19vn0sx/src -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party -isystem /tmp/ccls-20180922-8715-19vn0sx/third_party/rapidjson/include -isystem /usr/local/opt/llvm/include -DNDEBUG -fno-rtti -Wall -Wno-sign-compare -std=c++17 -o CMakeFiles/ccls.dir/src/serializer.cc.o -c /tmp/ccls-20180922-8715-19vn0sx/src/serializer.cc 1 error generated. make[2]: [CMakeFiles/ccls.dir/src/pipeline.cc.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/ccls.dir/all] Error 2 make: [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.11. We (and Apple) do not provide support for this old version. You will encounter build failures and other breakages. Please create pull-requests instead of asking for help on Homebrew's GitHub, Discourse, Twitter or IRC. As you are running this old version, you are responsible for resolving any issues you experience. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Seems to be because of LLVM 7.
Yes.
Try to downgrade if possible.
I have tried many times before and still can't solve the problem.
I will merge this PR first and solve the problem of 10.11 at the next commit.
Hi,
Been running it through
brew audit
andbrew strict
.