首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在ARM64 CPU (aarch64)上安装bison 2.4.1?

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

Stack Overflow用户
提问于 2018-06-05 15:20:48
回答 1查看 1.6K关注 0票数 1

我已经在我的Ubuntu 16.0.4 linux on ARM 64板上下载了bison2.4.1。但是,我不能再继续了,我的问题如下:

当我执行./configure cmd时,我收到如下错误消息:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2018-06-05 16:05:59

由于bison 2.4.1中打包的autotools对64位ARM架构一无所知,因此您需要告诉configure不要费心去猜测机器:

代码语言:javascript
复制
./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下载它

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50694319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档