我已经在我的Ubuntu 16.0.4 linux on ARM 64板上下载了bison2.4.1。但是,我不能再继续了,我的问题如下:
当我执行./configure cmd时,我收到如下错误消息:
checking for wctype.h... yes
checking for inline... inline
checking whether system is Windows or MSDOS... no
checking build system type... build-aux/config.guess: unable to guess system type
This script, last modified 2008-12-11, 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 (build-aux/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 = 2008-12-11
uname -m = aarch64
uname -r = 4.4.77-rockchip-ayufan-136
uname -s = Linux
uname -v = #1 SMP Thu Oct 12 09:14:48 UTC 2017
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.4.77-rockchip-ayufan-136
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP Thu Oct 12 09:14:48 UTC 2017
configure: error: cannot guess build type; you must specify one发布于 2018-06-05 16:05:59
由于bison 2.4.1中打包的autotools对64位ARM架构一无所知,因此您需要告诉configure不要费心去猜测机器:
./configure --build=unknown-unknown-linux我不认为这会造成问题,但我没有办法测试它,因为我没有ARM64板可用(如果有,我也不会在上面安装10年前的野牛版本)。但我确实在我的机器上测试了该配置选项;它配置和构建得很好,然后通过了测试套件中的所有测试。
我认为在bison 2.7中添加了对aarch64的支持,但你最好下载一个不太老的版本,它几乎肯定会默认识别你的构建环境并运行时没有问题。
Bison 3.0.5是上周发布的;您可以从https://ftp.gnu.org/gnu/bison/bison-3.0.5.tar.xz下载它
https://stackoverflow.com/questions/50694319
复制相似问题