通过 Cygwin 安装的 Clang 格式不会 运行
Clang-format installed via Cygwin won't run
当我在 Cygwin64 终端中尝试 运行ning clang-format
时,我得到以下输出:
$ clang-format
: CommandLine Error: Option 'disable-symbolication' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
我也无法在 Git Bash 中 运行,得到以下输出:
$ clang-format
1 [main] clang-format (2208) C:\cygwin64\bin\clang-format.exe: *** fatal error - cygheap base mismatch detected - 0x180301410/0x1802FD410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
我在 C:\cygwin64\bin
中只有一个 cygwin1.dll
,重启也没有用。
clang --version
给出:
$ clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-windows-cygnus
Thread model: posix
InstalledDir: /usr/bin
这不是一个很好的答案,但这是我最终所做的。这有点棘手,所以我将在这里记录下来。
注意,我实际上降级了doxygen,因为最新的依赖于clang-format-5
Uninstall clang 5.0.1-2
Uninstall doxygen 1.8.14-2 (automatically added)
Uninstall libclang5.0 5.0.1-2
Uninstall vim-clang-format 4.0.1-1
Install doxygen 1.8.13-3
然后(按返回键)
Uninstall clang 5.0.1-2 (automatically added)
Uninstall doxygen 1.8.13-3 (automatically added)
Install clang 4.0.1-1
Install doxygen 1.8.13-3
毕竟,虽然不再有 clang-format 的条目,但我的 clang-format-4.0.1 在我的计算机上并且可以运行。
当我在 Cygwin64 终端中尝试 运行ning clang-format
时,我得到以下输出:
$ clang-format
: CommandLine Error: Option 'disable-symbolication' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
我也无法在 Git Bash 中 运行,得到以下输出:
$ clang-format
1 [main] clang-format (2208) C:\cygwin64\bin\clang-format.exe: *** fatal error - cygheap base mismatch detected - 0x180301410/0x1802FD410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
我在 C:\cygwin64\bin
中只有一个 cygwin1.dll
,重启也没有用。
clang --version
给出:
$ clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-windows-cygnus
Thread model: posix
InstalledDir: /usr/bin
这不是一个很好的答案,但这是我最终所做的。这有点棘手,所以我将在这里记录下来。
注意,我实际上降级了doxygen,因为最新的依赖于clang-format-5
Uninstall clang 5.0.1-2
Uninstall doxygen 1.8.14-2 (automatically added)
Uninstall libclang5.0 5.0.1-2
Uninstall vim-clang-format 4.0.1-1
Install doxygen 1.8.13-3
然后(按返回键)
Uninstall clang 5.0.1-2 (automatically added)
Uninstall doxygen 1.8.13-3 (automatically added)
Install clang 4.0.1-1
Install doxygen 1.8.13-3
毕竟,虽然不再有 clang-format 的条目,但我的 clang-format-4.0.1 在我的计算机上并且可以运行。