【问题标题】:How to install bison 2.4.1 on ARM64 CPU (aarch64)?如何在 ARM64 CPU (aarch64) 上安装 bison 2.4.1?
【发布时间】:2018-06-05 07:20:47
【问题描述】:

我已经在 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

【问题讨论】:

  • 你为什么用这么老的野牛版本?

标签: arm bison arm64


【解决方案1】:

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

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

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

我认为,bison 2.7 中添加了 aarch64 支持,但你最好下载一个不太古老的 bison 版本,它几乎肯定会默认识别你的构建环境并运行而不会出现问题。

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

【讨论】:

  • 检查系统是Windows还是MSDOS...不检查构建系统类型...无效配置aarch64-linux-gnu': machine aarch64'无法识别配置:错误:/bin/bash build-aux/config.sub aarch64-linux-gnu 失败
  • @jason:实际上,这并不让我感到惊讶,尽管没有默认的 linux 构建配置有点令人失望。我应该更明确地回答我的问题,现在我已经对其进行了编辑:获取新版本的野牛。如果您认为由于某种原因这不起作用,请解释为什么不这样做。
  • 新版本的 bison 在我的 arm 板上运行良好,但我尝试编译我们公司的解决方案,由于某些特定原因使用 bison 2.4.1,所以我需要在我的板上安装 bison 2.4.1。 . 如果可能的话我想重新配置配置文件...
  • 很难相信 2.4.1 与当前版本之间存在无法在几分钟内修复的不兼容问题。但是,我想您的公司对此不感兴趣(尽管他们应该恕我直言:)。这里的问题不是野牛,真的。这是 autotools 尝试支持仅存在于逆向计算博物馆中的硬件的疯狂方式。无论如何,我将建议的 --build 配置参数修改为至少可以完成构建过程的内容。
  • 我得说我认为整件事都很愚蠢。这些天来,遗留机器非常罕见,标准化已经发展到您真的不需要处理特定硬件的个别怪癖的地步。至少,对于像 bison 这样远离原始金属的软件来说不是这样。
猜你喜欢
  • 2021-04-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-01-09
  • 1970-01-01
  • 2015-10-29
  • 1970-01-01
  • 2018-01-09
相关资源
最近更新 更多