wxWidget 配置:无法猜测构建类型

wxWidget configure: cannot guess build type

我正尝试按照 this 教程在 Windows 上构建 wxWidget .但是当输入 ../configure --enable-unicode --enable-debug -- --enable-monolithic --disable-shared 时,输出是很多 "Segmentation fault" 消息:

$ ./configure --enable-unicode --enable-debug --enable-monolithic --disable-shared
./configure: line 427:  3224 Segmentation fault      expr a : '\(a\)' > /dev/null 2>&1
./configure: line 1492:  2560 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
./configure: line 1492:  2452 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
./configure: line 1492:  3692 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
./configure: line 1492:  3436 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2015-08-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;    f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2015-08-20

uname -m = x86
uname -r = 1
uname -s = WindowsNT
uname -v = 5

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              = i686
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = x86
UNAME_RELEASE = 1
UNAME_SYSTEM  = WindowsNT
UNAME_VERSION = 5
configure: error: cannot guess build type; you must specify one

config.log在这里。

我还下载了 config.sub 和 config.guess 我的 OS 是 Windows XP SP3。 wxWidgets版本是3.0.2.

您 运行 配置的环境(Cygwin?MSYS?MSYS2?我们不知道,因为您不说)肯定是 expr不应该出现段错误。尝试以交互方式 运行 连接它,看看您是否只有损坏的 /usr/bin/expr 可执行文件。如果没有,运行 在您的机器上进行硬件测试。