1

我使用的是旧版 iMac,它无法将 macos 升级到 10.12 以上。当我进行 brew upgrade fontforge 时,升级 fontforge 依赖项 icu4c 失败。以下是部分日志。

谷歌搜索没有返回太多信息,任何人有类似的问题并且知道如何解决它?

==> Installing fontforge dependency: icu4c
==> ./configure --prefix=/usr/local/Cellar/icu4c/67.1 --disable-samples --disable-tests --enable-static --with-library-bits=64
==> make
Last 15 lines from /Users/erickung/Library/Logs/Homebrew/icu4c/02.make:
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT msgfmt.d msgfmt.o msgfmt.ao -o msgfmt.ao msgfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLineTools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [msgfmt.ao] Error 1
3 errors generated.
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT decimfmt.d decimfmt.o decimfmt.ao -o decimfmt.ao decimfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLineTools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [decimfmt.ao] Error 1
3 errors generated.
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT numfmt.d numfmt.o numfmt.ao -o numfmt.ao numfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLineTools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [numfmt.ao] Error 1
make: *** [all-recursive] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
icu4c 67.1 (make C++14 compatible) https://github.com/Homebrew/homebrew-core/pull/59540
4

1 回答 1

0

好的,似乎有一个分支更新了这个库的公式:https ://github.com/dotysan/homebrew-core/tree/icu4c-cplusplus14 ,我能够安装它克隆分支(你实际上只能下载所需的公式)并明确地将 brew 指向此版本:

git clone https://github.com/dotysan/homebrew-core/
cd homebrew-core/
git checkout -b icu4c-cplusplus14 origin/icu4c-cplusplus14
brew reinstall --build-from-source ./Formula/icu4c.rb

于 2020-09-16T14:29:56.250 回答