[解决]Invalid configuration `aarch64-linux‘: machine `aarch64‘ not recognize

https://blog.csdn.net/lile777/article/details/81389098

/*********************************************************************
* Author          :     lile
* Modified        :     2019年12月28日星期六  10:16:13
* Email           :     roger0212@163.com
* HomePage        :     lile777.blog.csdn.net
* CopyRight       :     该文章版权由lile所有。
*                       保留原文出处链接和本声明的前提下,可在非商业目的下任意传播和复制。
*                       对于商业目的下对本文的任何行为需经作者同意。
*********************************************************************/

   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

现象

在TX1板卡上移植开源库出现如下错误

checking build system type... Invalid configuration `aarch64-linux': machine `aarch64' not recognized

   
   
  • 1

系统环境

ubuntu@tegra-ubuntu:/$ file /bin/busybox 
/bin/busybox: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, for GNU/Linux 3.7.0, BuildID[sha1]=e31196f09f5c22fbc94e653b40d7b0f07309cf5c, stripped
ubuntu@tegra-ubuntu:/$ cat /proc/version 
Linux version 3.10.96+ (tegra-ubuntu@ubuntu) (gcc version 5.4.1 20170404 (Linaro GCC 5.4-2017.05) ) #1 SMP PREEMPT Tue Jul 24 20:52:13 PDT 2018
ubuntu@tegra-ubuntu:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:        16.04
Codename:       xenial
ubuntu@tegra-ubuntu:/$ 

   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

搜索了一圈发现这个方法是靠谱的

https://blog.csdn.net/amds123/article/details/53258495

思路:

1, 下载最新的配置文件

wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
  • 1
  • 2
  • 3

2, 查找当前库文件的位置

find . -name "config.guess"
find . -name "config.sub"
  • 1
  • 2
  • 3

3,删除旧文件,更新 最新文件

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值