当前位置: 首页 > article >正文

Uboot编译出现:Makefile:40: *** missing separator. Stop.

原因:make的版本太低了,我使用的ubuntu虚拟机14版本,make的版本

qx@qx-VirtualBox:~/u-boot$ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

安装make 4.1版本

wget https://ftp.gnu.org/gnu/make/make-4.1.tar.gz
sudo tar -xzvf make-4.1.tar.gz
cd make-4.1/
./configure --prefix=/usr/local
sudo make
sudo make install
cd /usr/bin
sudo mv make make.bak  # 备份旧版本
sudo ln -s /usr/local/bin/make /usr/bin/make

然后输出

make --version

看到make已经更新到了4.1版本

qx@qx-VirtualBox:/usr/bin$ make --version
GNU Make 4.1
Built for x86_64-unknown-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

接着进入uboot进行编译,发现没有报错了。

qx@qx-VirtualBox:~/u-boot$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- bananapi_m2_berry_defconfig
#
# configuration written to .config
#


http://www.kler.cn/a/551783.html

相关文章:

  • apache artemis安装
  • H3CNE构建中小企业网络(上)面向零基础
  • AIGC(生成式AI)试用 21 -- Python调用deepseek API
  • Linux 文件内容查看
  • Docker 安全基础:权限、用户、隔离机制
  • http状态码503之解决方法(Solution to HTTP Status Code 503)
  • 部署k8s 集群1.26.0(containerd方式)
  • AI 百炼成神:线性回归,预测房价
  • docker的mysql容器修改数据库root的登录密码后,navicat依然能用旧密码访问
  • Java 设计模式总结
  • Leetcode1299:将每个元素替换为右侧最大元素
  • 半遮挡检测算法 Detecting Binocular Half-Occlusions
  • rust笔记1-学习资料推荐
  • CHARMM-GUI EnzyDocker: 一个基于网络的用于酶中多个反应状态的蛋白质 - 配体对接的计算平台
  • Ubuntu下mysql主从复制搭建
  • three.js+WebGL踩坑经验合集(8.2):z-fighting叠面问题和camera.near的坑爹关系
  • 【系列教程】Python第三课:用前两课知识解决实际问题
  • ES8中 async 和await的用法详细的总结
  • LabVIEW无刷电机控制器检测系统
  • 【算法】回溯算法