如何在ARM64 CPU(aarch64)上安装bison 2.4.1?

时间:2018-06-05 07:20:48

标签: arm bison arm64

我已经在ARM 64 Board上的Ubuntu 16.0.4 linux上下载了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

1 个答案:

答案 0 :(得分:2)

由于与bison 2.4.1打包的autotools对64位ARM体系结构一无所知,因此您需要告诉configure不要试图猜测机器:

./configure --build=unknown-unknown-linux

我不相信这会导致问题,但我没有办法测试它,因为我没有ARM64板踢(如果我这样做,我不会安装一个10岁的野牛它上面的版本。)但我在我的机器上测试了配置选项;它配置并构建良好,然后通过了测试套件中的所有测试。

我认为,在野牛2.7中添加了aarch64支持,但你最好下载一个不那么古老的野牛版本,它几乎肯定会默认识别你的构建环境并且没有问题。

Bison 3.0.5于上周发布;您可以在https://ftp.gnu.org/gnu/bison/bison-3.0.5.tar.xz

下载