野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12528|回复: 1

debian 编译失败

[复制链接]
发表于 2020-4-12 00:25:57 | 显示全部楼层 |阅读模式
成功安装所有需要的库

报错信息如下:

...
/home/fwz/linux-source/debian/ebf-buster-linux/Makefile:1077: recipe for target 'prepare3' failed
make[1]: *** [prepare3] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/build'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make[1]: Entering directory '/home/pi/build'
/bin/bash /home/fwz/linux-source/debian/ebf-buster-linux/scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch) -b -nc -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 1stable
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by root <root@ubuntu>
dpkg-buildpackage: info: host architecture armhf
dpkg-source --before-build build
debian/rules build
make KERNELRELEASE=4.19.71-imx-r1 ARCH=arm         KBUILD_BUILD_VERSION=1stable KBUILD_SRC=
  GEN     ./Makefile
  Using /home/fwz/linux-source/debian/ebf-buster-linux as source for kernel
  /home/fwz/linux-source/debian/ebf-buster-linux is not clean, please run 'make mrproper'
  in the '/home/fwz/linux-source/debian/ebf-buster-linux' directory.
/home/fwz/linux-source/debian/ebf-buster-linux/Makefile:1077: recipe for target 'prepare3' failed
make[6]: *** [prepare3] Error 1
make[6]: *** Waiting for unfinished jobs....
Makefile:146: recipe for target 'sub-make' failed
make[5]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[4]: *** [__sub-make] Error 2
debian/rules:4: recipe for target 'build' failed
make[3]: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
/home/fwz/linux-source/debian/ebf-buster-linux/scripts/package/Makefile:79: recipe for target 'bindeb-pkg' failed
make[2]: *** [bindeb-pkg] Error 2
/home/fwz/linux-source/debian/ebf-buster-linux/Makefile:1359: recipe for target 'bindeb-pkg' failed
make[1]: *** [bindeb-pkg] Error 2
make[1]: Leaving directory '/home/pi/build'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2


回复

使用道具 举报

发表于 2020-4-14 16:30:02 | 显示全部楼层
source污染了,ebf-buster-linux目录下执行清理命令:make mrproper,然后重新编译看看。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-22 11:39 , Processed in 0.066206 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表