野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 304|回复: 2

[求助] 使用SDK构建debian系统失败

[复制链接]
发表于 2023-12-5 16:04:46 | 显示全部楼层 |阅读模式
按照文档2.7节进行操作,构建时出现如下错误:


make[2]: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [scripts/package/Makefile:80: bindeb-pkg] Error 2
make: *** [Makefile:1519: bindeb-pkg] Error 2
ERROR: Running build_kerneldeb failed!
ERROR: exit code 2 from line 702:
    make ARCH=$RK_ARCH bindeb-pkg RK_KERNEL_DTS=$RK_KERNEL_DTS -j$RK_JOBS

看提示是编译内核失败。编译机版本是:
LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
不知道什么原因,希望有人能解答一二。谢谢
回复

使用道具 举报

发表于 2023-12-7 08:33:36 | 显示全部楼层
单独构建下内核看下什么报错,
./build.sh kerneldeb
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-12-7 10:33:14 | 显示全部楼层
make[2]: Warning: File 'debian/rules' has modification time 0.57 s in the future
make KERNELRELEASE=4.19.232 ARCH=arm64  KBUILD_BUILD_VERSION=12 KBUILD_SRC=
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
make[5]: *** No rule to make target 'net/netfilter/xt_DSCP.o', needed by 'net/netfilter/built-in.a'.  Stop.
make[4]: *** [scripts/Makefile.build:637: net/netfilter] Error 2
make[3]: *** [Makefile:1194: net] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [scripts/package/Makefile:80: bindeb-pkg] Error 2
make: *** [Makefile:1519: bindeb-pkg] Error 2
ERROR: Running build_kerneldeb failed!
ERROR: exit code 2 from line 702:
    make ARCH=$RK_ARCH bindeb-pkg RK_KERNEL_DTS=$RK_KERNEL_DTS -j$RK_JOBS
这是单独构建内核出现的信息,看信息好像是缺少built-in.a这个文件、
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-28 11:53 , Processed in 0.115447 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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