20240830解决编译RK3588平台Rockchip原厂的Buildroot编译不过的问题ERROR: Running mk-rootfs.sh - build_buildroot failed!

rootroot@rootroot-desktop:~/repo_rk3588_20240508$ sudo apt install g++


20240830解决编译RK3588平台Rockchip原厂的Buildroot编译不过的问题ERROR: Running mk-rootfs.sh - build_buildroot failed!
2024/8/30 17:25


缘起:安装编译环境的时候,遗漏了g++。
以前批量通过apt-get安装的都是,g++都是默认安装的!
这次不知道是怎么回事!

出错:99-all.sh: build_hook(127)
装好,继续编译就OK了!


rootroot@rootroot-desktop:~/repo_rk3588_20240508$ ./build.sh lunch
Log colors: message notice warning error fatal

Log saved at /home/rootroot/repo_rk3588_20240508/output/sessions/2024-08-29_17-43-34
Pick a defconfig:

1. rockchip_defconfig
2. rockchip_rk3588_evb1_lp4_v10_defconfig
3. rockchip_rk3588_evb7_v11_defconfig
4. rockchip_rk3588s_evb1_lp4x_v10_defconfig
Which would you like? [1]: 3

Switching to defconfig: /home/rootroot/repo_rk3588_20240508/device/rockchip/.chip/rockchip_rk3588_evb7_v11_defconfig
mkdir -p /home/rootroot/repo_rk3588_20240508/output/kconf/lxdialog
make CC="gcc" HOSTCC="gcc" \
    obj=/home/rootroot/repo_rk3588_20240508/output/kconf -C /home/rootroot/repo_rk3588_20240508/device/rockchip/common/kconfig -f Makefile.br conf
make[1]: Entering directory '/home/rootroot/repo_rk3588_20240508/device/rockchip/common/kconfig'
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/rootroot/repo_rk3588_20240508/output/kconf -DCONFIG_=\"\"  -MM *.c > /home/rootroot/repo_rk3588_20240508/output/kconf/.depend 2>/dev/null || :
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/rootroot/repo_rk3588_20240508/output/kconf -DCONFIG_=\"\"   -c conf.c -o /home/rootroot/repo_rk3588_20240508/output/kconf/conf.o
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/rootroot/repo_rk3588_20240508/output/kconf -DCONFIG_=\"\"  -I. -c /home/rootroot/repo_rk3588_20240508/output/kconf/zconf.tab.c -o /home/rootroot/repo_rk3588_20240508/output/kconf/zconf.tab.o
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/rootroot/repo_rk3588_20240508/output/kconf -DCONFIG_=\"\"   /home/rootroot/repo_rk3588_20240508/output/kconf/conf.o /home/rootroot/repo_rk3588_20240508/output/kconf/zconf.tab.o  -o /home/rootroot/repo_rk3588_20240508/output/kconf/conf
rm /home/rootroot/repo_rk3588_20240508/output/kconf/zconf.tab.c
make[1]: Leaving directory '/home/rootroot/repo_rk3588_20240508/device/rockchip/common/kconfig'
#
# configuration written to /home/rootroot/repo_rk3588_20240508/output/.config
#
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ ll


rootroot@rootroot-desktop:~/repo_rk3588_20240508$ ./build.sh lunch
Log colors: message notice warning error fatal

Log saved at /home/rootroot/repo_rk3588_20240508/output/sessions/2024-08-29_17-44-40
Pick a defconfig:

1. rockchip_defconfig
2. rockchip_rk3588_evb1_lp4_v10_defconfig
3. rockchip_rk3588_evb7_v11_defconfig
4. rockchip_rk3588s_evb1_lp4x_v10_defconfig
Which would you like? [1]: 3
Switching to defconfig: /home/rootroot/repo_rk3588_20240508/device/rockchip/.chip/rockchip_rk3588_evb7_v11_defconfig
#
# configuration written to /home/rootroot/repo_rk3588_20240508/output/.config
#
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ ll
total 256664
drwxrwxr-x 16 rootroot rootroot      4096 8月  29 17:44 ./
drwxr-xr-x 35 rootroot rootroot      4096 8月  29 17:37 ../
drwxrwxr-x  4 rootroot rootroot      4096 8月  29 17:27 app/
drwxrwxr-x 17 rootroot rootroot      4096 8月  29 17:42 buildroot/
lrwxrwxrwx  1 rootroot rootroot        39 8月  29 17:27 build.sh -> device/rockchip/common/scripts/build.sh*
lrwxrwxrwx  1 rootroot rootroot        22 8月  29 17:43 common -> device/rockchip/common/
drwxrwxr-x  9 rootroot rootroot      4096 8月  29 17:27 debian/
drwxrwxr-x  3 rootroot rootroot      4096 8月  29 17:27 device/
drwxrwxr-x  6 rootroot rootroot      4096 8月  29 17:27 docs/
drwxrwxr-x 27 rootroot rootroot      4096 8月  29 17:29 external/
drwxrwxr-x 26 rootroot rootroot      4096 8月  29 17:27 kernel/
-rw-rw-r--  1 rootroot rootroot 243839252 8月  29 17:44 kernel2.tgz
lrwxrwxrwx  1 rootroot rootroot        31 8月  29 17:27 Makefile -> device/rockchip/common/Makefile
drwxrwxr-x  5 rootroot rootroot      4096 8月  29 17:44 output/
drwxrwxr-x  3 rootroot rootroot      4096 8月  29 17:27 prebuilts/
lrwxrwxrwx  1 rootroot rootroot        32 8月  29 17:43 README.md -> device/rockchip/common/README.md
drwxrwxr-x  9 rootroot rootroot      4096 8月  29 17:28 rkbin/
lrwxrwxrwx  1 rootroot rootroot        41 8月  29 17:27 rkflash.sh -> device/rockchip/common/scripts/rkflash.sh*
drwxrwxr-x  5 rootroot rootroot      4096 8月  29 17:28 tools/
drwxrwxr-x 24 rootroot rootroot      4096 8月  29 17:28 u-boot/
-rw-rw-r--  1 rootroot rootroot  18912847 8月  29 17:44 u-boot1.tgz
drwxrwxr-x  5 rootroot rootroot      4096 8月  29 17:29 uefi/
drwxrwxr-x  9 rootroot rootroot      4096 8月  29 17:29 yocto/
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ du -sh output/
512K    output/
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ cd kernel/arch/arm64/boot/dts/


rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ ./build.sh 
Log colors: message notice warning error fatal

Log saved at /home/rootroot/repo_rk3588_20240508/output/sessions/2024-08-29_17-45-11

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=/home/rootroot/repo_rk3588_20240508/device/rockchip/.chip/boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT=y
RK_BUILDROOT_CFG=rockchip_rk3588
RK_CHIP=rk3588
RK_CHIP_FAMILY=rk3588
RK_DEBIAN=y
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_BULLSEYE=y
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=/home/rootroot/repo_rk3588_20240508/device/rockchip/.chips/rk3588/rockchip_rk3588_evb7_v11_defconfig
RK_EXTRA_PARTITION_NUM=2
RK_EXTRA_PARTITION_STR=oem:oem:/oem:ext4:defaults:normal:auto:@userdata:userdata:/userdata:ext4:defaults:normal:auto:@@@
RK_KERNEL=y
RK_KERNEL_ARCH=arm64
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_CFG_FRAGMENTS=rk3588_linux.config
RK_KERNEL_DTB=kernel/arch/arm64/boot/dts/rockchip/rk3588-evb7-v11-linux.dtb
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/rk3588-evb7-v11-linux.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_KBUILD_ARCH=host
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_REAL=5.10
RK_LOADER=y
RK_MISC=y
RK_MISC_BLANK=y
RK_OWNER=rootroot
RK_OWNER_UID=1000
RK_PARAMETER=parameter.txt
RK_RECOVERY=y
RK_RECOVERY_CFG=rockchip_rk3588_recovery
RK_RECOVERY_FIT_ITS=/home/rootroot/repo_rk3588_20240508/device/rockchip/.chip/boot4recovery.its
RK_RECOVERY_INITRD_TYPE=cpio.gz
RK_ROOTFS=y
RK_ROOTFS_ASYNC_COMMIT=y
RK_ROOTFS_DEBUG_INFO=y
RK_ROOTFS_IRQBALANCE=y
RK_ROOTFS_OVERLAY=y
RK_ROOTFS_STRIP_MODULES=y
RK_ROOTFS_SYSTEM=buildroot
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-08-29_17-45-11
RK_UBOOT_ARCH=arm64
RK_UBOOT_CFG=rk3588
RK_UPDATE=y
RK_USB_ADBD=y
RK_USB_ADBD_BASH=y
RK_USB_ADBD_TCP_PORT=5555
RK_USE_FIT_IMG=y
RK_WIFIBT_CHIP=ALL_AP
RK_YOCTO=y
RK_YOCTO_CHROMIUM=y
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3588-evb
RK_YOCTO_USBMOUNT=y

==========================================
          Start building all images
==========================================
Generated blank misc image
Done packing /home/rootroot/repo_rk3588_20240508/output/firmware/misc.img
Running mk-misc.sh - build_misc succeeded.
Toolchain for loader (U-Boot):
/home/rootroot/repo_rk3588_20240508/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building loader
==========================================
+ cd u-boot
+ ./make.sh CROSS_COMPILE=/home/rootroot/repo_rk3588_20240508/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- rk3588
grep: .config: No such file or directory
grep: .config: No such file or directory
## make rk3588_defconfig -j72
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2468:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:771:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  771 |  sprintf(newname, "%s%s", dirname, basename);
      |                   ^~~~~~
scripts/kconfig/confdata.c:771:19: note: assuming directive output of 7 bytes
In file included from /usr/include/stdio.h:867,
                 from scripts/kconfig/zconf.tab.c:82:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 1 or more bytes (assuming 4104) into a destination of size 4097
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2468:
scripts/kconfig/confdata.c:774:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  774 |   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
      |                    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from scripts/kconfig/zconf.tab.c:82:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4119 bytes into a destination of size 4097
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk.dep
  CFG     u-boot.cfg
  CFG     tpl/u-boot.cfg
  CFG     spl/u-boot.cfg
  GEN     tpl/include/autoconf.mk
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h


2024-08-29T17:50:23 >>> host-fakeroot 1.26 Extracting
2024-08-29T17:50:23 >>> host-fakeroot 1.26 Patching
2024-08-29T17:50:23 >>> host-fakeroot 1.26 Updating config.sub and config.guess
2024-08-29T17:50:23 >>> host-fakeroot 1.26 Patching libtool
2024-08-29T17:50:23 >>> host-fakeroot 1.26 Configuring
2024-08-29T17:50:35 >>> host-fakeroot 1.26 Building
2024-08-29T17:50:36 >>> host-fakeroot 1.26 Installing to host directory
2024-08-29T17:50:36 >>> host-makedevs  Extracting
2024-08-29T17:50:36 >>> host-makedevs  Patching
2024-08-29T17:50:36 >>> host-makedevs  Configuring
2024-08-29T17:50:37 >>> host-makedevs  Building
2024-08-29T17:50:37 >>> host-makedevs  Installing to host directory
2024-08-29T17:50:37 >>> host-mkpasswd  Extracting
2024-08-29T17:50:37 >>> host-mkpasswd  Patching
2024-08-29T17:50:37 >>> host-mkpasswd  Configuring
2024-08-29T17:50:37 >>> host-mkpasswd  Building
2024-08-29T17:50:38 >>> host-mkpasswd  Installing to host directory
2024-08-29T17:50:38 >>> host-m4 1.4.19 Extracting
2024-08-29T17:50:38 >>> host-m4 1.4.19 Patching
2024-08-29T17:50:38 >>> host-m4 1.4.19 Updating config.sub and config.guess
2024-08-29T17:50:38 >>> host-m4 1.4.19 Patching libtool
2024-08-29T17:50:38 >>> host-m4 1.4.19 Configuring
2024-08-29T17:51:20 >>> host-m4 1.4.19 Building
2024-08-29T17:51:21 >>> host-m4 1.4.19 Installing to host directory
2024-08-29T17:51:22 >>> host-bison 3.8.2 Extracting
2024-08-29T17:51:22 >>> host-bison 3.8.2 Patching
2024-08-29T17:51:22 >>> host-bison 3.8.2 Updating config.sub and config.guess
2024-08-29T17:51:22 >>> host-bison 3.8.2 Patching libtool
2024-08-29T17:51:23 >>> host-bison 3.8.2 Configuring
2024-08-29T17:51:55 >>> host-bison 3.8.2 Building
2024-08-29T17:52:07 >>> host-bison 3.8.2 Installing to host directory
2024-08-29T17:52:09 >>> host-gawk 5.1.0 Extracting
2024-08-29T17:52:09 >>> host-gawk 5.1.0 Patching
2024-08-29T17:52:09 >>> host-gawk 5.1.0 Updating config.sub and config.guess
2024-08-29T17:52:09 >>> host-gawk 5.1.0 Patching libtool
2024-08-29T17:52:09 >>> host-gawk 5.1.0 Configuring
2024-08-29T17:52:29 >>> host-gawk 5.1.0 Building
2024-08-29T17:52:30 >>> host-gawk 5.1.0 Installing to host directory
2024-08-29T17:52:32 >>> host-binutils 2.40 Extracting
2024-08-29T17:52:35 >>> host-binutils 2.40 Patching
2024-08-29T17:52:35 >>> host-binutils 2.40 Updating config.sub and config.guess
2024-08-29T17:52:35 >>> host-binutils 2.40 Patching libtool
2024-08-29T17:52:35 >>> host-binutils 2.40 Configuring
2024-08-29T17:52:39 >>> host-binutils 2.40 Building
Done in 3min 11s  (error code: 2)
Failed to build rockchip_rk3588:
2024-08-29T17:52:51 checking for struct stat.st_mtim.tv_sec in sys/stat.h... yes
2024-08-29T17:52:51 checking for struct stat.st_mtim.tv_nsec in sys/stat.h... no
2024-08-29T17:52:51 checking for spawnvpe... yes
2024-08-29T17:52:51 checking for mkdtemp... yes
2024-08-29T17:52:51 configure: updating cache ./config.cache
2024-08-29T17:52:51 no
2024-08-29T17:52:51 checking that generated files are newer than configure... done
2024-08-29T17:52:51 configure: creating ./config.status
2024-08-29T17:52:51 checking for strerror... yes
2024-08-29T17:52:52 checking for mkstemp... yes
2024-08-29T17:52:52 checking for strsignal... yes
2024-08-29T17:52:52 checking for utimensat... yes
2024-08-29T17:52:52 yes
2024-08-29T17:52:52 checking for sysconf... checking for utimes... yes
2024-08-29T17:52:52 yes
2024-08-29T17:52:52 checking for sysctl... checking for mbstate_t... yes
2024-08-29T17:52:52 checking for struct stat.st_atim.tv_nsec... yes
2024-08-29T17:52:52 checking whether struct stat.st_atim is of type struct timespec... yes
2024-08-29T17:52:52 checking for sysmp... yes
2024-08-29T17:52:52 checking for library containing frexp... no
2024-08-29T17:52:52 checking for table... none required
2024-08-29T17:52:52 checking for LC_MESSAGES... no
2024-08-29T17:52:52 yes
2024-08-29T17:52:52 checking for a known getopt prototype in unistd.h... checking for times... yes
2024-08-29T17:52:52 checking for utime.h... yes
2024-08-29T17:52:52 checking whether asprintf is declared... yes
2024-08-29T17:52:52 checking for wait3... yes
2024-08-29T17:52:52 checking whether environ is declared... yes
2024-08-29T17:52:52 checking for wait4... yes
2024-08-29T17:52:52 checking whether getc_unlocked is declared... yes
2024-08-29T17:52:52 checking for sbrk... yes
2024-08-29T17:52:52 checking whether stpcpy is declared... yes
2024-08-29T17:52:52 yes
2024-08-29T17:52:52 checking whether strnlen is declared... checking whether basename is declared... yes
2024-08-29T17:52:52 checking for msgpack... no
2024-08-29T17:52:52 checking iconv.h usability... yes
2024-08-29T17:52:52 checking whether ffs is declared... yes
2024-08-29T17:52:52 checking iconv.h presence... yes
2024-08-29T17:52:52 checking for iconv.h... yes
2024-08-29T17:52:52 checking for ld used by GCC... config.status: creating .gdbinit
2024-08-29T17:52:52 /usr/bin/ld -m elf_x86_64
2024-08-29T17:52:52 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
2024-08-29T17:52:52 yes
2024-08-29T17:52:52 checking for shared library run path origin... checking whether asprintf is declared... config.status: creating Makefile
2024-08-29T17:52:52 config.status: creating po/Makefile.in
2024-08-29T17:52:52 done
2024-08-29T17:52:52 yes
2024-08-29T17:52:52 checking for iconv... checking whether vasprintf is declared... config.status: creating config.h
2024-08-29T17:52:52 config.status: executing depfiles commands
2024-08-29T17:52:52 config.status: executing libtool commands
2024-08-29T17:52:52 yes
2024-08-29T17:52:53 checking whether snprintf is declared... config.status: executing default-1 commands
2024-08-29T17:52:53 yes
2024-08-29T17:52:53 checking for iconv declaration... config.status: creating po/POTFILES
2024-08-29T17:52:53 config.status: creating po/Makefile
2024-08-29T17:52:53 config.status: executing default commands
2024-08-29T17:52:53 yes
2024-08-29T17:52:53 checking whether vsnprintf is declared...
2024-08-29T17:52:53 extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2024-08-29T17:52:53 yes
2024-08-29T17:52:53 checking whether calloc is declared... configure: updating cache ./config.cache
2024-08-29T17:52:53 checking that generated files are newer than configure... done
2024-08-29T17:52:53 configure: creating ./config.status
2024-08-29T17:52:53 yes
2024-08-29T17:52:53 checking whether getenv is declared... yes
2024-08-29T17:52:53 checking whether getopt is declared... yes
2024-08-29T17:52:53 checking whether malloc is declared... yes
2024-08-29T17:52:53 checking whether realloc is declared... yes
2024-08-29T17:52:53 checking whether sbrk is declared... yes
2024-08-29T17:52:53 checking whether strtol is declared... yes
2024-08-29T17:52:53 checking whether strtoul is declared... yes
2024-08-29T17:52:53 checking whether strtoll is declared... yes
2024-08-29T17:52:53 checking whether strtoull is declared... yes
2024-08-29T17:52:53 checking whether strverscmp is declared... yes
2024-08-29T17:52:53 checking whether strnlen is declared... yes
2024-08-29T17:52:53 checking whether canonicalize_file_name must be declared... no
2024-08-29T17:52:53 checking for stdlib.h... (cached) yes
2024-08-29T17:52:53 checking for unistd.h... (cached) yes
2024-08-29T17:52:53 checking for sys/param.h... (cached) yes
2024-08-29T17:52:53 checking for getpagesize... (cached) yes
2024-08-29T17:52:54 checking for working mmap... yes
2024-08-29T17:52:54 checking for working strncmp... config.status: creating Makefile
2024-08-29T17:52:54 config.status: creating po/Makefile.in
2024-08-29T17:52:54 yes
2024-08-29T17:52:54 config.status: creating config.h
2024-08-29T17:52:54 config.status: executing depfiles commands
2024-08-29T17:52:54 config.status: executing libtool commands
2024-08-29T17:52:54 configure: updating cache ./config.cache
2024-08-29T17:52:54 configure: creating ./config.status
2024-08-29T17:52:54 config.status: executing default-1 commands
2024-08-29T17:52:54 config.status: creating po/POTFILES
2024-08-29T17:52:54 config.status: creating po/Makefile
2024-08-29T17:52:54 config.status: creating Makefile
2024-08-29T17:52:54 config.status: creating testsuite/Makefile
2024-08-29T17:52:54 config.status: creating config.h
2024-08-29T17:52:54 config.status: executing default commands
2024-08-29T17:52:54 make[2]: *** [Makefile:1005: all] Error 2
2024-08-29T17:52:54 make[1]: *** [package/pkg-generic.mk:315: /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/build/host-binutils-2.40/.stamp_built] Error 2
2024-08-29T17:52:54 make: *** [Makefile:114: _all] Error 2
2024-08-29T17:52:54 make: Leaving directory '/home/rootroot/repo_rk3588_20240508/buildroot'
Please check details in /home/rootroot/repo_rk3588_20240508/output/sessions/2024-08-29_17-45-11/br-rockchip_rk3588_2024-08-29_17-49-43.log

ERROR: Running /home/rootroot/repo_rk3588_20240508/device/rockchip/common/scripts/mk-rootfs.sh - build_buildroot failed!
ERROR: exit code 1 from line 16:
    "$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$IMAGE_DIR"
ERROR: call stack:
    mk-rootfs.sh: build_buildroot(16)
    mk-rootfs.sh: build_hook(262)
    mk-rootfs.sh: main(291)
ERROR: Running /home/rootroot/repo_rk3588_20240508/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 21:
    "$RK_SCRIPTS_DIR/mk-rootfs.sh"
ERROR: call stack:
    99-all.sh: build_all(21)
    99-all.sh: build_hook(127)
    build-helper: try_func(63)
    build-helper: try_hook(95)
    build-helper: source(175)
    99-all.sh: main(138)
ERROR: Running /home/rootroot/repo_rk3588_20240508/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(95)
    build-helper: source(175)
    99-all.sh: main(138)
ERROR: Running ./build.sh - run_hooks build all failed!
ERROR: exit code 1 from line 256:
    /home/rootroot/repo_rk3588_20240508/device/rockchip/common/build-hooks/99-all.sh build all
ERROR: call stack:
    build.sh: run_hooks(256)
    build.sh: run_build_hooks(275)
    build.sh: main(644)
    build.sh: main(655)
ERROR: Running ./build.sh - run_build_hooks build all failed!
ERROR: exit code 1 from line 278:
    build
ERROR: call stack:
    build.sh: run_build_hooks(278)
    build.sh: main(644)
    build.sh: main(655)

rootroot@rootroot-desktop:~/repo_rk3588_20240508$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.2' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-9QDOt0/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2) 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 


rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ g++ -v

Command 'g++' not found, but can be installed with:

sudo apt install g++

rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ sudo apt install g++
[sudo] password for rootroot: 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libgstreamer-plugins-bad1.0-0 libva-wayland2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  g++-9 libstdc++-9-dev
Suggested packages:
  g++-multilib g++-9-multilib gcc-9-doc libstdc++-9-doc
The following NEW packages will be installed:
  g++ g++-9 libstdc++-9-dev
0 upgraded, 3 newly installed, 0 to remove and 57 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 46.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.4.0-1ubuntu1~20.04.2 [1,722 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/main amd64 g++-9 amd64 9.4.0-1ubuntu1~20.04.2 [8,421 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1,604 B]
Fetched 10.1 MB in 22s (457 kB/s)

Selecting previously unselected package libstdc++-9-dev:amd64.
(Reading database ... 199774 files and directories currently installed.)
Preparing to unpack .../libstdc++-9-dev_9.4.0-1ubuntu1~20.04.2_amd64.deb ...
Unpacking libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04.2) ...
Selecting previously unselected package g++-9.
Preparing to unpack .../g++-9_9.4.0-1ubuntu1~20.04.2_amd64.deb ...
Unpacking g++-9 (9.4.0-1ubuntu1~20.04.2) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking g++ (4:9.3.0-1ubuntu2) ...
Setting up libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04.2) ...
Setting up g++-9 (9.4.0-1ubuntu1~20.04.2) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Processing triggers for man-db (2.9.1-1) ...

rootroot@rootroot-desktop:~/repo_rk3588_20240508$ 
rootroot@rootroot-desktop:~/repo_rk3588_20240508$ ./build.sh 

Y:\repo_rk3588_20240508\output\sessions\2024-08-29_17-45-11\br-rockchip_rk3588_2024-08-29_17-49-43.log

# 2024-08-29 17:49:43
2024-08-29T17:49:43 make: Entering directory '/home/rootroot/repo_rk3588_20240508/buildroot'
2024-08-29T17:49:53 /usr/bin/make -j1 O=/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="g++" syncconfig
2024-08-29T17:49:57 GEN     /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/Makefile
2024-08-29T17:49:57 
2024-08-29T17:49:57 You may have to install 'g++' on your build machine
2024-08-29T17:49:58 [7m>>> host-skeleton  Extracting[27m
2024-08-29T17:49:58 [7m>>> host-skeleton  Patching[27m
2024-08-29T17:49:58 [7m>>> host-skeleton  Configuring[27m
2024-08-29T17:49:58 [7m>>> host-skeleton  Building[27m
2024-08-29T17:49:58 [7m>>> host-skeleton  Installing to host directory[27m
2024-08-29T17:49:58 ccache-3.7.12.tar.xz: OK (sha256: a02f4e8360dc6618bc494ca35b0ae21cea080f804a4898eab1ad3fcd108eb400)
2024-08-29T17:49:58 [7m>>> host-ccache 3.7.12 Extracting[27m
2024-08-29T17:49:58 xzcat /home/rootroot/repo_rk3588_20240508/buildroot/dl/ccache/ccache-3.7.12.tar.xz | tar --strip-components=1 -C /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/build/host-ccache-3.7.12   -xf -
2024-08-29T17:49:58 [7m>>> host-ccache 3.7.12 Patching[27m
2024-08-29T17:49:58 sed -i 's,getenv("CCACHE_DIR"),getenv("BR_CACHE_DIR"),' /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/build/host-ccache-3.7.12/src/ccache.c
2024-08-29T17:49:58 sed -i 's,"%s/.ccache","%s/.buildroot-ccache",' /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/build/host-ccache-3.7.12/src/conf.c
2024-08-29T17:49:58 [7m>>> host-ccache 3.7.12 Updating config.sub and config.guess[27m
2024-08-29T17:49:58 for file in config.guess config.sub; do for i in $(find /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/build/host-ccache-3.7.12 -name $file); do cp support/gnuconfig/$file $i; done; done
2024-08-29T17:49:58 [7m>>> host-ccache 3.7.12 Patching libtool[27m
2024-08-29T17:49:58 [7m>>> host-ccache 3.7.12 Configuring[27m
2024-08-29T17:49:58 (cd /home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/build/host-ccache-3.7.12/ && rm -rf config.cache; PATH="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/bin:/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/lib/pkgconfig:/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/bin/ccache /usr/bin/gcc" GCC="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/bin/ccache /usr/bin/gcc" CXX="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/bin/ccache g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/include" CFLAGS="-O2 -I/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/include" CXXFLAGS="-O2 -I/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/include" LDFLAGS="-L/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/lib -Wl,-rpath,/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/lib" INTLTOOL_PERL=/usr/bin/perl CFLAGS="-O2 -I/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/include" LDFLAGS="-L/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/lib -Wl,-rpath,/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/lib" CC="/usr/bin/gcc" CXX="g++" CONFIG_SITE=/dev/null ./configure --prefix="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host" --sysconfdir="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/etc" --localstatedir="/home/rootroot/repo_rk3588_20240508/buildroot/output/rockchip_rk3588/host/var" --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=no --with-fop=no --disable-nls --disable-dependency-tracking  --with-bundled-zlib )
2024-08-29T17:49:59 configure: WARNING: unrecognized options: --enable-shared, --disable-static, --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --disable-debug, --with-xmlto, --with-fop, --disable-nls, --disable-dependency-tracking
2024-08-29T17:49:59 configure: configuring ccache
2024-08-29T17:49:59 checking build system type... x86_64-pc-linux-gnu
2024-08-29T17:49:59 checking host system type... x86_64-pc-linux-gnu
2024-08-29T17:49:59 checking for gcc... /usr/bin/gcc
2024-08-29T17:49:59 checking whether the C compiler works... yes
 

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值