lxk584213344 发表于 2024-7-1 13:05:57

RK3588在编译huildroot的rootfs时报错

官方下载的SDK ,更新到了20240517_v1.4.0b版本,编译buildroot时,在编译rootfs时报错,看着是编译下载软件pixman 0.42.2时,编译报错2024-06-11T02:51:17 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory找不到drmrga.h这个文件。

799959745 发表于 2024-7-9 11:08:14

怎么编译的?

lxk584213344 发表于 2024-7-9 16:00:13

799959745 发表于 2024-7-9 11:08
怎么编译的?

按照教程来的 前面uboot,extboot,recovery都可以正常编译生成,到rootfs报错,

lxk@ubuntu:~$ cd proj/rk3588_sdk/
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$ ./build.sh roc-rk3588-pc-buildroot.mk
processing option: roc-rk3588-pc-buildroot.mk
switching to board: /home/lxk/proj/rk3588_sdk/device/rockchip/rk3588/roc-rk3588-pc-buildroot.mk
/home/lxk/proj/rk3588_sdk
/home/lxk/proj/rk3588_sdk
lxk@ubuntu:~/proj/rk3588_sdk$ ./build.sh rootfs
processing option: rootfs
rootfs dir .rootfs
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=firefly_rk3588
=========================================
Top of tree: /home/lxk/proj/rk3588_sdk
make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
GEN   /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
/home/lxk/proj/rk3588_sdk/buildroot/build/parse_defconfig.sh /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config.in
Parsing defconfig: /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig
Using configs/rockchip/base/kernel.config as base
Merging configs/rockchip/fs/e2fs.config
Merging configs/rockchip/base/common.config
Merging configs/rockchip/base/base.config
Merging configs/rockchip/chips/rk3588.config
Value of BR2_ROOTFS_OVERLAY is redefined by configs/rockchip/chips/rk3588.config:
Previous value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base"
Modify value:        BR2_ROOTFS_OVERLAY+="board/rockchip/rk3588/fs-overlay/"
New value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3588/fs-overlay/"

Merging configs/rockchip/chips/rk3588_aarch64.config
Merging configs/rockchip/font/font.config
Merging configs/rockchip/font/chinese.config
Merging configs/rockchip/fs/exfat.config
Merging configs/rockchip/fs/ntfs.config
Merging configs/rockchip/fs/vfat.config
Merging configs/rockchip/gpu/gpu.config
Merging configs/rockchip/multimedia/audio.config
Merging configs/rockchip/multimedia/camera.config
Merging configs/rockchip/multimedia/gst/audio.config
Merging configs/rockchip/multimedia/gst/camera.config
Merging configs/rockchip/multimedia/gst/rtsp.config
Merging configs/rockchip/multimedia/gst/video.config
Merging configs/rockchip/multimedia/mpp.config
Merging configs/rockchip/wifibt/bt.config
Merging configs/rockchip/wifibt/network.config
Merging configs/rockchip/wifibt/wireless.config
Merging configs/rockchip/tools/benchmark.config
Merging configs/rockchip/tools/common.config
Merging configs/rockchip/tools/test.config
Merging configs/rockchip/chromium.config
Merging configs/rockchip/npu2.config
Merging configs/rockchip/powermanager.config
Merging configs/rockchip/weston.config
Merging /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig
Value of BR2_TARGET_GENERIC_ROOT_PASSWD is redefined by /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig:
Previous value:        BR2_TARGET_GENERIC_ROOT_PASSWD="rockchip"
New value:        BR2_TARGET_GENERIC_ROOT_PASSWD="firefly"

Value of BR2_ROOTFS_OVERLAY is redefined by /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig:
Previous value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3588/fs-overlay/"
Modify value:        BR2_ROOTFS_OVERLAY+="board/firefly/roc-rk3588s-pc board/firefly/itx-3588j board/firefly/aio-3588sjd4"
New value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3588/fs-overlay/ board/firefly/roc-rk3588s-pc board/firefly/itx-3588j board/firefly/aio-3588sjd4"

#
# merged configuration written to /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config.in (needs make)
#
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/tristate.config BR2_CONFIG=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config HOST_GCC_VERSION="7" BASE_DIR=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 SKIP_LEGACY= CUSTOM_KERNEL_VERSION="5.10" BR2_DEFCONFIG=/home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/conf --defconfig=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config.in Config.in
#
# configuration written to /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config
#
make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-07-09T00:56:07 >>> pixman 0.42.2 Building
Done in 37s(error code: 2)
Failed to build /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config:
2024-06-20T01:38:46 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-06-20T01:38:46 42 | #include "drmrga.h"
2024-06-20T01:38:46 |          ^~~~~~~~~~
2024-06-20T01:38:46 compilation terminated.
2024-06-20T01:38:46 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-20T01:38:46 make: *** Error 1
2024-06-20T01:38:46 make: *** Waiting for unfinished jobs....
2024-06-20T01:38:47 Makefile:515: recipe for target 'all-recursive' failed
2024-06-20T01:38:47 make: *** Error 1
2024-06-20T01:38:47 Makefile:422: recipe for target 'all' failed
2024-06-20T01:38:47 make: *** Error 2
2024-06-20T01:38:47 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-06-20T01:38:47 make: *** Error 2
2024-06-20T01:38:47 Makefile:114: recipe for target '_all' failed
2024-06-20T01:38:47 make: *** Error 2
2024-06-20T01:38:47 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T21:33:59 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T21:34:08 /usr/bin/make -j1 O=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2024-06-30T21:34:09 GEN   /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-30T21:34:22 >>> pixman 0.42.2 Building
2024-06-30T21:34:22 PATH="/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/bin:/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"/usr/bin/make -j2-C /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/
2024-06-30T21:34:22 /usr/bin/makeall-recursive
2024-06-30T21:34:22 Making all in pixman
2024-06-30T21:34:22 CC       pixman-fast-path.lo
2024-06-30T21:34:22 CC       pixman.lo
2024-06-30T21:34:28 In file included from pixman.c:36:
2024-06-30T21:34:28 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-06-30T21:34:28 42 | #include "drmrga.h"
2024-06-30T21:34:28 |          ^~~~~~~~~~
2024-06-30T21:34:28 compilation terminated.
2024-06-30T21:34:28 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-30T21:34:28 make: *** Error 1
2024-06-30T21:34:28 make: *** Waiting for unfinished jobs....
2024-06-30T21:34:34 Makefile:515: recipe for target 'all-recursive' failed
2024-06-30T21:34:34 make: *** Error 1
2024-06-30T21:34:34 Makefile:422: recipe for target 'all' failed
2024-06-30T21:34:34 make: *** Error 2
2024-06-30T21:34:34 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-06-30T21:34:34 make: *** Error 2
2024-06-30T21:34:34 Makefile:114: recipe for target '_all' failed
2024-06-30T21:34:34 make: *** Error 2
2024-06-30T21:34:34 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T23:47:29 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T23:51:27 /usr/bin/make -j1 O=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2024-06-30T23:51:38 GEN   /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-30T23:51:46 >>> pixman 0.42.2 Building
2024-06-30T23:51:46 PATH="/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/bin:/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"/usr/bin/make -j2-C /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/
2024-06-30T23:51:46 /usr/bin/makeall-recursive
2024-06-30T23:51:46 Making all in pixman
2024-06-30T23:51:46 CC       pixman.lo
2024-06-30T23:51:46 CC       pixman-glyph.lo
2024-06-30T23:51:53 pixman-glyph.c:408:1: warning: 'force_align_arg_pointer' attribute directive ignored [-Wattributes]
2024-06-30T23:51:53 408 | {
2024-06-30T23:51:53 | ^
2024-06-30T23:51:53 pixman-glyph.c:655:1: warning: 'force_align_arg_pointer' attribute directive ignored [-Wattributes]
2024-06-30T23:51:53 655 | {
2024-06-30T23:51:53 | ^
2024-06-30T23:51:55 In file included from pixman.c:36:
2024-06-30T23:51:55 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-06-30T23:51:55 42 | #include "drmrga.h"
2024-06-30T23:51:55 |          ^~~~~~~~~~
2024-06-30T23:51:55 compilation terminated.
2024-06-30T23:51:56 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-30T23:51:56 make: *** Error 1
2024-06-30T23:51:56 make: *** Waiting for unfinished jobs....
2024-06-30T23:52:02 Makefile:515: recipe for target 'all-recursive' failed
2024-06-30T23:52:02 make: *** Error 1
2024-06-30T23:52:02 Makefile:422: recipe for target 'all' failed
2024-06-30T23:52:02 make: *** Error 2
2024-06-30T23:52:02 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-06-30T23:52:02 make: *** Error 2
2024-06-30T23:52:02 Makefile:114: recipe for target '_all' failed
2024-06-30T23:52:02 make: *** Error 2
2024-06-30T23:52:02 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-07-09T00:55:33 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-07-09T00:56:03 /usr/bin/make -j1 O=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2024-07-09T00:56:05 GEN   /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-07-09T00:56:07 >>> pixman 0.42.2 Building
2024-07-09T00:56:08 PATH="/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/bin:/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"/usr/bin/make -j2-C /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/
2024-07-09T00:56:08 /usr/bin/makeall-recursive
2024-07-09T00:56:08 Making all in pixman
2024-07-09T00:56:08 CC       pixman.lo
2024-07-09T00:56:08 CC       pixman-general.lo
2024-07-09T00:56:10 In file included from pixman.c:36:
2024-07-09T00:56:10 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-07-09T00:56:10 42 | #include "drmrga.h"
2024-07-09T00:56:10 |          ^~~~~~~~~~
2024-07-09T00:56:10 compilation terminated.
2024-07-09T00:56:10 Makefile:934: recipe for target 'pixman.lo' failed
2024-07-09T00:56:10 make: *** Error 1
2024-07-09T00:56:10 make: *** Waiting for unfinished jobs....
2024-07-09T00:56:10 Makefile:515: recipe for target 'all-recursive' failed
2024-07-09T00:56:10 make: *** Error 1
2024-07-09T00:56:10 Makefile:422: recipe for target 'all' failed
2024-07-09T00:56:10 make: *** Error 2
2024-07-09T00:56:10 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-07-09T00:56:10 make: *** Error 2
2024-07-09T00:56:10 Makefile:114: recipe for target '_all' failed
2024-07-09T00:56:10 make: *** Error 2
2024-07-09T00:56:10 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
Please check details in /home/lxk/proj/rk3588_sdk/.buildroot/br.log
Command exited with non-zero status 1
you take 0:49.59 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 1376:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $RK_CFG_BUILDROOT $DST_DIR
lxk@ubuntu:~/proj/rk3588_sdk$

就一直在这儿报错

lxk584213344 发表于 2024-7-9 16:06:28

799959745 发表于 2024-7-9 11:08
怎么编译的?

上面是全部的信息,红色是我感觉重点的地方,麻烦你帮忙看下,谢谢

799959745 发表于 2024-7-10 14:01:51

有改过东西吗?改过配置?编译是验证过没问题的。

lxk584213344 发表于 2024-7-15 10:12:38

799959745 发表于 2024-7-10 14:01
有改过东西吗?改过配置?编译是验证过没问题的。

没改过代码,同步后直接加载环境配置后直接编译的。
页: [1]
查看完整版本: RK3588在编译huildroot的rootfs时报错