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

如何在ARM64 CPU(aarch64)上安装bison 2.4.1?,arm,bison,arm64,Arm,Bison,Arm64,我已经在我的Ubuntu 16.0.4Linux上的ARM64板上下载了bison2.4.1。 但是,我无法继续,我的问题如下: 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

我已经在我的Ubuntu 16.0.4Linux上的ARM64板上下载了bison2.4.1。 但是,我无法继续,我的问题如下:

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
当我执行./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
正在检查wctype.h。。。对
正在检查内联。。。内联

正在检查系统是Windows还是MSDOS。。。不 正在检查生成系统类型。。。build aux/config.guess:无法猜测系统类型 此脚本(最后一次修改于2008年12月11日)无法识别 您正在使用的操作系统。建议您 从下载最新版本的配置脚本 http://git.savannah.gnu.org/gitweb/?p=config.git;a=斑点平原;f=config.guess;hb=头 和 http://git.savannah.gnu.org/gitweb/?p=config.git;a=斑点平原;f=config.sub;hb=头 如果您运行的版本(build aux/config.guess)已经是最新的,请 发送以下数据和您认为可能存在的任何信息 为了提供所需的 用于处理系统的信息。 config.guess timestamp=2008-12-11 uname-m=aarch64 uname-r=4.4.77-rockchip-ayufan-136 uname-s=Linux uname-v=#1 SMP周四10月12日09:14:48 UTC 2017 /usr/bin/uname-p= /bin/uname-X= 主机信息= /垃圾箱/宇宙= /usr/bin/arch-k= /垃圾箱/拱门= /usr/bin/oslevel= /usr/convertic/getsysinfo= UNAME_机器=aarch64 UNAME_版本=4.4.77-rockchip-ayufan-136 UNAME_SYSTEM=Linux UNAME#U版本=#1 SMP周四10月12日09:14:48 UTC 2017 配置:错误:无法猜测生成类型;您必须指定一个
由于bison 2.4.1附带的autotools对64位ARM体系结构一无所知,您需要告诉configure不要费心猜测机器:

./configure --build=unknown-unknown-linux
我不相信这会引起问题,但我没有办法测试它,因为我没有ARM64板(如果我有,我就不会在上面安装10年前的bison版本),但我在我的机器上测试了配置选项;它进行了良好的配置和构建,然后通过了testsuite中的所有测试

我认为aarch64支持是在bison 2.7中添加的,但是您最好下载一个不太古老的bison版本,它几乎肯定会在默认情况下识别您的构建环境,并且运行时不会出现任何问题


野牛3.0.5上周发布;您可以在

下载它,为什么要使用如此旧的bison版本?检查系统是Windows还是MSDOS。。。没有检查生成系统类型。。。无效配置
aarch64 linux gnu”:无法识别计算机
aarch64'配置:错误:/bin/bash build aux/config.sub aarch64 linux gnufailed@jason:实际上,这并不让我感到惊讶,尽管没有默认的linux构建配置有点令人失望。我应该在我的回答中更加明确,现在我已经编辑了它:获取新版本的野牛。如果您认为由于某种原因无法正常工作,请解释原因。bison的新版本在我的arm板上运行良好,但由于某些特定原因,我试图编译我们公司的解决方案,该解决方案使用bison 2.4.1,因此我需要在我的板上安装bison 2.4.1。。如果可能的话,我想重新配置配置文件…很难相信2.4.1和当前版本之间存在无法在几分钟内修复的不兼容。然而,我想你们公司对此不感兴趣(尽管他们应该这么做)。这里的问题不是野牛,真的;这是autotools试图支持硬件的疯狂方式,这种硬件只存在于计算机博物馆中。无论如何,我修改了建议的
--build
config参数,使其至少能够完成构建过程。我得说,我认为整个过程都很愚蠢。如今,遗留机器非常罕见,标准化已经发展到了一个地步,你真的不需要处理特定硬件的个别怪癖。至少,像bison这样远离原始金属的软件是不行的。