"ptxdist" *** These critical programs are missing or too old: compiler

接上篇

安装环境:

ptxdist 2018.02  &&  oselas.toolchain 2018.2

 

如果再ubuntu 14.04的版本进行交叉工具链的编译,可能会有问题,问题出在软件版本的要求没有到达要求,参见INSTALL文件中的Recommended Tools for Compilation章节,

以glibc-headers文件夹下的INSTALL文件

 

Recommended Tools for Compilation
=================================

We recommend installing the following GNU tools before attempting to
build the GNU C Library:

   * GNU 'make' 3.79 or newer

     You need the latest version of GNU 'make'.  Modifying the GNU C
     Library to work with other 'make' programs would be so difficult
     that we recommend you port GNU 'make' instead.  *Really.*  We
     recommend GNU 'make' version 3.79.  All earlier versions have
     severe bugs or lack features.

   * GCC 4.9 or newer

     GCC 4.9 or higher is required.  In general it is recommended to use
     the newest version of the compiler that is known to work for
     building the GNU C Library, as newer compilers usually produce
     better code.  As of release time, GCC 7.3 is the newest compiler
     verified to work to build the GNU C Library.

     For PowerPC 64-bits little-endian (powerpc64le), GCC 6.2 or higher
     is required.  This compiler version is the first to provide the
     features required for building the GNU C Library with support for
     '_Float128'.

     For multi-arch support it is recommended to use a GCC which has
     been built with support for GNU indirect functions.  This ensures
     that correct debugging information is generated for functions
     selected by IFUNC resolvers.  This support can either be enabled by
     configuring GCC with '--enable-gnu-indirect-function', or by
     enabling it by default by setting 'default_gnu_indirect_function'
     variable for a particular architecture in the GCC source file
     'gcc/config.gcc'.

     You can use whatever compiler you like to compile programs that use
     the GNU C Library.

     Check the FAQ for any special compiler issues on particular
     platforms.

   * GNU 'binutils' 2.25 or later

     You must use GNU 'binutils' (as and ld) to build the GNU C Library.
     No other assembler or linker has the necessary functionality at the
     moment.  As of release time, GNU 'binutils' 2.29.1 is the newest
     verified to work to build the GNU C Library.

   * GNU 'texinfo' 4.7 or later

     To correctly translate and install the Texinfo documentation you
     need this version of the 'texinfo' package.  Earlier versions do
     not understand all the tags used in the document, and the
     installation mechanism for the info files is not present or works
     differently.  As of release time, 'texinfo' 6.5 is the newest
     verified to work to build the GNU C Library.

   * GNU 'awk' 3.1.2, or higher

     'awk' is used in several places to generate files.  Some 'gawk'
     extensions are used, including the 'asorti' function, which was
     introduced in version 3.1.2 of 'gawk'.  As of release time, 'gawk'
     version 4.2.0 is the newest verified to work to build the GNU C
     Library.

   * GNU 'bison' 2.7 or later

     'bison' is used to generate the 'yacc' parser code in the 'intl'
     subdirectory.  As of release time, 'bison' version 3.0.4 is the
     newest verified to work to build the GNU C Library.

   * Perl 5

     Perl is not required, but it is used if present to test the
     installation.  We may decide to use it elsewhere in the future.

   * GNU 'sed' 3.02 or newer

     'Sed' is used in several places to generate files.  Most scripts
     work with any version of 'sed'.  As of release time, 'sed' version
     4.4 is the newest verified to work to build the GNU C Library.

If you change any of the 'configure.ac' files you will also need

   * GNU 'autoconf' 2.69 (exactly)

and if you change any of the message translation files you will need

   * GNU 'gettext' 0.10.36 or later

 

尤其涉及gcc  python的系统要求,需要进行安装新版本,以及利用update-alternatives进行版本切换

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
当你在编译ARM架构的项目时遇到`configure: error: *** These critical programs are missing or too old: compiler *** Check the INSTALL file for required versions.` 这样的错误,这通常意味着在构建过程中依赖的编译器(可能是GCC或者其他用于编译ARM代码的关键工具)缺失、版本过低或不兼容。 具体来说: 1. 编译器:这是一个指代编译源代码以生成可执行程序的工具。可能需要的是支持ARM架构的特定版本的GCC(GNU Compiler Collection)或其他编译器。 2. 版本要求:安装的编译器版本可能不满足项目所需的最低版本要求,或者开发者指南(INSTALL文件)明确指出了需要特定版本才能正确配置和编译。 为了解决这个问题,你可以按照以下步骤操作: - **检查系统**:确认你的系统上是否已经安装了支持ARM的编译器,如`arm-linux-gnueabihf-gcc`(如果是针对Linux的交叉编译环境)。 - **安装编译器**:如果未安装或版本过低,你可以从官方网站下载并安装适合的版本,比如对于GCC,访问https://gcc.gnu.org/releases.html 下载适用于你的操作系统和目标架构的版本。 - **检查版本**:确保你安装的编译器版本与项目需求匹配,可以通过命令`gcc -v`查看GCC的版本信息。 - **更新或替换**:如果已安装但版本过低,可能需要升级到更高版本,或者替换为支持该项目的特定版本。 - **阅读文档**:再次查阅INSTALL文件或项目的README文件,遵循其中的指导来配置编译环境。 如果你在安装或配置过程中遇到困难,可能还需要查阅相关社区的技术支持或文档,比如Stack Overflow或GitHub上的ARM项目文档。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值