なんだこれは

はてなダイアリーから移転しました。

macOS で cppcheck project を支援する donate-cpu を実行してみる

macOS で cppcheck project を支援する donate-cpu を実行してみる

(cppcheck)https://github.com/danmar/cppcheck のプロジェクトを簡単に支援する方法として donate-cpu がある。

Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core or as many as you like). It is simple:

Download (and extract) Cppcheck source code
Run script: python cppcheck/tools/donate-cpu.py

The script will analyse debian source code and upload the results to a cppcheck server. We need these results both to improve Cppcheck and to detect regressions.

You can stop the script whenever you like with Ctrl C.

とあるのでまず、git clone

git clone git@github.com:danmar/cppcheck.git
# or
git clone https://github.com/danmar/cppcheck.git

して、python cppcheck/tools/donate-cpu.py するといいはず。

python cppcheck/tools/donate-cpu.py
#

IMPORTANT Please run the client with at least Python 3.4, thanks!

#

おっと python 3.4 以上じゃないとダメみたいですね。

python3.7 cppcheck/tools/donate-cpu.py

Thank you! Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.3 (clang-1103.0.32.59) Target: x86_64-apple-darwin19.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin git version 2.25.0 GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0 GNU Wget 1.20.3 built on darwin19.0.0.

-cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls +ntlm +opie -psl +ssl/openssl

Wgetrc: /usr/local/etc/wgetrc (system) ロケール: /usr/local/Cellar/wget/1.20.3_2/share/locale コンパイル: clang -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" -DLOCALEDIR="/usr/local/Cellar/wget/1.20.3_2/share/locale" -I. -I../lib -I../lib -I/usr/local/opt/openssl@1.1/include -DNDEBUG -g -O2 リンク: clang -DNDEBUG -g -O2 -lidn2 -L/usr/local/opt/openssl@1.1/lib -lssl -lcrypto -ldl -lz ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a -liconv -lintl -Wl,-framework -Wl,CoreFoundation -lunistring

Copyright (C) 2015 Free Software Foundation, Inc. ライセンス GPLv3+: GNU GPL バージョン 3 あるいはそれ以降のバージョン http://www.gnu.org/licenses/gpl.html. このソフトウェアはフリーソフトウェアです。自由に変更、再配布ができます。 法律が許すかぎり、全くの無保証です。

Hrvoje Niksic hniksic@xemacs.org によって書かれました。 バグ報告や質問はbug-wget@gnu.orggdb is required

gdb が必要なようです。先にいってくれないのか。

(macOS Sierragdbを使う)https://qiita.com/kaityo256/items/d2f7ac7acc42cf2098b2 などをみて用意すればいいと思います。

これで、とりあえず実行できるようになりました。