Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

使用扩展版Ubuntu配置编译报错 #21

Open
JusticeShi opened this issue Sep 25, 2024 · 7 comments
Open

使用扩展版Ubuntu配置编译报错 #21

JusticeShi opened this issue Sep 25, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@JusticeShi
Copy link

JusticeShi commented Sep 25, 2024

  1. 虚拟机:VirtualBox
  2. 系统:Linux Ubuntu22 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
  3. python版本:Python 2.7.18
  4. gcc版本:
root@Ubuntu22:/mnt/tspi-linux-sdk# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --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-bootstrap --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 --enable-libphobos-checking=release --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=hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.5.0 (Ubuntu 10.5.0-1ubuntu1~22.04)

选择扩展板配置后,执行编译报错,报错日志如下:

root@Ubuntu22:/mnt/tspi-linux-sdk# git pull
Already up to date.
root@Ubuntu22:/mnt/tspi-linux-sdk# ./build.sh init
Log saved at /mnt/tspi-linux-sdk/output/log/2024-09-25_22-56-57

Pick a defconfig:

1. tspi-rk3566-ext39-ubuntu-distroboot_defconfig
2. tspi-rk3566-ext39-ubuntu_defconfig
6. tspi-rk3566-ubuntu-distroboot_defconfig
7. tspi-rk3566-ubuntu_defconfig
Which would you like? [1]: 2
Switching to defconfig: /mnt/tspi-linux-sdk/device/rockchip/.chip/tspi-rk3566-ext39-ubuntu_defconfig
make: Entering directory '/mnt/tspi-linux-sdk/device/rockchip/common'
#
# configuration written to /mnt/tspi-linux-sdk/output/.config
#
make: Leaving directory '/mnt/tspi-linux-sdk/device/rockchip/common'
root@Ubuntu22:/mnt/tspi-linux-sdk# ./build.sh 
Log saved at /mnt/tspi-linux-sdk/output/log/2024-09-25_22-57-15

Prebuilt toolchain (for kernel & loader):
/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_ARM64=y
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=/mnt/tspi-linux-sdk/device/rockchip/.chips/rk3566_rk3568/tspi-rk3566-ext39-ubuntu_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_ARCH=arm64
RK_KERNEL_ARM64=y
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_CFG_FRAGMENTS=rockchip_linux_docker.config
RK_KERNEL_DISTROBOOT_CMD=earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rw rootwait
RK_KERNEL_DTB=kernel/arch/arm64/boot/dts/rockchip/tspi-rk3566-user-v10-ext39-linux.dtb
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/tspi-rk3566-user-v10-ext39-linux.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_REAL=5.10
RK_MISC_IMG=blank-misc.img
RK_PARAMETER=parameter-buildroot-fit.txt
RK_PCBA_CFG=rockchip_rk3566_pcba
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_FIT_ITS=boot4recovery.its
RK_ROOTFS_SYSTEM=ubuntu
RK_ROOTFS_SYSTEM_UBUNTU=y
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-09-25_22-57-15
RK_TOOLCHAIN=/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
RK_UBOOT_CFG=rk3566
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_WIFIBT_TTY=ttyS1
RK_YOCTO_CFG=rockchip-rk3568-evb
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_DISPLAY_PLATFORM_WAYLAND=y

==========================================
          Start building allsave
==========================================
==========================================
          Start building all images
==========================================
==========================================
          Start building uboot
==========================================
+ cd u-boot
+ ./make.sh CROSS_COMPILE=/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- rk3566
## make  rk3568_defconfig rk3566.config -j16
#
# configuration written to .config
#
Using .config as base
Merging ./arch/../configs/rk3566.config
Value of CONFIG_BASE_DEFCONFIG is redefined by fragment ./arch/../configs/rk3566.config:
Previous value: CONFIG_BASE_DEFCONFIG=""
New value: CONFIG_BASE_DEFCONFIG="rk3568_defconfig"

Value of CONFIG_LOADER_INI is redefined by fragment ./arch/../configs/rk3566.config:
Previous value: CONFIG_LOADER_INI=""
New value: CONFIG_LOADER_INI="RK3566MINIALL.ini"

#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     tpl/u-boot.cfg
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  GEN     include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/rockchip/boot_merger.o
  HOSTCC  tools/rockchip/loaderimage.o
  CHK     include/config.h
  HOSTLD  tools/mkenvimage
  CFG     u-boot.cfg
  HOSTLD  tools/loaderimage
tools/rockchip/boot_merger.c: In function 'mergeBoot':
tools/rockchip/boot_merger.c:700:36: warning: '%s' directive output may be truncated writing up to 813 bytes into a region of size 5 [-Wformat-truncation=]
  700 |  snprintf(buffer, sizeof(buffer), "%s", chip);
      |                                    ^~
......
  742 |   chipType = convertChipType(chip + 2);
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:894,
                 from ././include/compiler.h:25,
                 from <command-line>:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin_snprintf' output between 1 and 814 bytes into a destination of size 5
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |        __glibc_objsize (__s), __fmt,
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |        __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
tools/rockchip/boot_merger.c: In function 'main':
tools/rockchip/boot_merger.c:895:11: warning: array subscript 20 is outside array bounds of 'char[20]' [-Warray-bounds]
  895 |  str[len] = 0;
      |  ~~~~~~~~~^~~
tools/rockchip/boot_merger.c:933:7: note: while referencing 'name'
  933 |  char name[MAX_NAME_LEN];
      |       ^~~~
  HOSTLD  tools/boot_merger
  CC      arch/arm/cpu/armv8/fwcall.o
  LD      arch/arm/cpu/armv8/built-in.o
  CC      cmd/version.o
  CC      common/main.o
  LD      cmd/built-in.o
  LD      common/built-in.o
  CC      drivers/usb/gadget/f_fastboot.o
  CC      lib/display_options.o
  LD      drivers/usb/gadget/built-in.o
  LD      lib/built-in.o
  LD      u-boot
/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ld.bfd: arch/arm/cpu/armv8/start.o: file not recognized: file format not recognized
make: *** [Makefile:1284: u-boot] Error 1
ERROR: Running /mnt/tspi-linux-sdk/device/rockchip/common/scripts/mk-loader.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    mk-loader.sh: do_build_uboot(56)
    mk-loader.sh: build_uboot(67)
    mk-loader.sh: build_hook(150)
    mk-loader.sh: main(163)
ERROR: Running /mnt/tspi-linux-sdk/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 2 from line 20:
    "$SCRIPTS_DIR/mk-loader.sh" loader
ERROR: call stack:
    99-all.sh: build_all(20)
    99-all.sh: build_allsave(107)
    99-all.sh: build_hook(132)
    build-helper: try_func(63)
    build-helper: try_hook(95)
    build-helper: source(158)
    99-all.sh: main(142)
ERROR: Running /mnt/tspi-linux-sdk/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook allsave failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(95)
    build-helper: source(158)
    99-all.sh: main(142)
ERROR: Running ./build.sh - run_hooks build allsave failed!
ERROR: exit code 2 from line 152:
    /mnt/tspi-linux-sdk/device/rockchip/common/build-hooks/99-all.sh build allsave
ERROR: call stack:
    build.sh: run_hooks(152)
    build.sh: run_build_hooks(171)
    build.sh: main(437)
    build.sh: main(452)
ERROR: Running ./build.sh - run_build_hooks build allsave failed!
ERROR: exit code 2 from line 174:
    build
ERROR: call stack:
    build.sh: run_build_hooks(174)
    build.sh: main(437)
    build.sh: main(452)
@JusticeShi
Copy link
Author

  1. 虚拟机:VirtualBox
  2. 系统:Linux Ubuntu22 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
  3. python版本:Python 2.7.18
  4. gcc版本:
root@Ubuntu22:/mnt/tspi-linux-sdk# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --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-bootstrap --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 --enable-libphobos-checking=release --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=hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.5.0 (Ubuntu 10.5.0-1ubuntu1~22.04)

选择扩展板配置后,执行编译报错,报错日志如下:

root@Ubuntu22:/mnt/tspi-linux-sdk# git pull
Already up to date.
root@Ubuntu22:/mnt/tspi-linux-sdk# ./build.sh init
Log saved at /mnt/tspi-linux-sdk/output/log/2024-09-25_22-56-57

Pick a defconfig:

1. tspi-rk3566-ext39-ubuntu-distroboot_defconfig
2. tspi-rk3566-ext39-ubuntu_defconfig
6. tspi-rk3566-ubuntu-distroboot_defconfig
7. tspi-rk3566-ubuntu_defconfig
Which would you like? [1]: 2
Switching to defconfig: /mnt/tspi-linux-sdk/device/rockchip/.chip/tspi-rk3566-ext39-ubuntu_defconfig
make: Entering directory '/mnt/tspi-linux-sdk/device/rockchip/common'
#
# configuration written to /mnt/tspi-linux-sdk/output/.config
#
make: Leaving directory '/mnt/tspi-linux-sdk/device/rockchip/common'
root@Ubuntu22:/mnt/tspi-linux-sdk# ./build.sh 
Log saved at /mnt/tspi-linux-sdk/output/log/2024-09-25_22-57-15

Prebuilt toolchain (for kernel & loader):
/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_ARM64=y
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=/mnt/tspi-linux-sdk/device/rockchip/.chips/rk3566_rk3568/tspi-rk3566-ext39-ubuntu_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_ARCH=arm64
RK_KERNEL_ARM64=y
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_CFG_FRAGMENTS=rockchip_linux_docker.config
RK_KERNEL_DISTROBOOT_CMD=earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rw rootwait
RK_KERNEL_DTB=kernel/arch/arm64/boot/dts/rockchip/tspi-rk3566-user-v10-ext39-linux.dtb
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/tspi-rk3566-user-v10-ext39-linux.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_REAL=5.10
RK_MISC_IMG=blank-misc.img
RK_PARAMETER=parameter-buildroot-fit.txt
RK_PCBA_CFG=rockchip_rk3566_pcba
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_FIT_ITS=boot4recovery.its
RK_ROOTFS_SYSTEM=ubuntu
RK_ROOTFS_SYSTEM_UBUNTU=y
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-09-25_22-57-15
RK_TOOLCHAIN=/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
RK_UBOOT_CFG=rk3566
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_WIFIBT_TTY=ttyS1
RK_YOCTO_CFG=rockchip-rk3568-evb
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_DISPLAY_PLATFORM_WAYLAND=y

==========================================
          Start building allsave
==========================================
==========================================
          Start building all images
==========================================
==========================================
          Start building uboot
==========================================
+ cd u-boot
+ ./make.sh CROSS_COMPILE=/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- rk3566
## make  rk3568_defconfig rk3566.config -j16
#
# configuration written to .config
#
Using .config as base
Merging ./arch/../configs/rk3566.config
Value of CONFIG_BASE_DEFCONFIG is redefined by fragment ./arch/../configs/rk3566.config:
Previous value: CONFIG_BASE_DEFCONFIG=""
New value: CONFIG_BASE_DEFCONFIG="rk3568_defconfig"

Value of CONFIG_LOADER_INI is redefined by fragment ./arch/../configs/rk3566.config:
Previous value: CONFIG_LOADER_INI=""
New value: CONFIG_LOADER_INI="RK3566MINIALL.ini"

#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     tpl/u-boot.cfg
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  GEN     include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/rockchip/boot_merger.o
  HOSTCC  tools/rockchip/loaderimage.o
  CHK     include/config.h
  HOSTLD  tools/mkenvimage
  CFG     u-boot.cfg
  HOSTLD  tools/loaderimage
tools/rockchip/boot_merger.c: In function 'mergeBoot':
tools/rockchip/boot_merger.c:700:36: warning: '%s' directive output may be truncated writing up to 813 bytes into a region of size 5 [-Wformat-truncation=]
  700 |  snprintf(buffer, sizeof(buffer), "%s", chip);
      |                                    ^~
......
  742 |   chipType = convertChipType(chip + 2);
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:894,
                 from ././include/compiler.h:25,
                 from <command-line>:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin_snprintf' output between 1 and 814 bytes into a destination of size 5
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |        __glibc_objsize (__s), __fmt,
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |        __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
tools/rockchip/boot_merger.c: In function 'main':
tools/rockchip/boot_merger.c:895:11: warning: array subscript 20 is outside array bounds of 'char[20]' [-Warray-bounds]
  895 |  str[len] = 0;
      |  ~~~~~~~~~^~~
tools/rockchip/boot_merger.c:933:7: note: while referencing 'name'
  933 |  char name[MAX_NAME_LEN];
      |       ^~~~
  HOSTLD  tools/boot_merger
  CC      arch/arm/cpu/armv8/fwcall.o
  LD      arch/arm/cpu/armv8/built-in.o
  CC      cmd/version.o
  CC      common/main.o
  LD      cmd/built-in.o
  LD      common/built-in.o
  CC      drivers/usb/gadget/f_fastboot.o
  CC      lib/display_options.o
  LD      drivers/usb/gadget/built-in.o
  LD      lib/built-in.o
  LD      u-boot
/mnt/tspi-linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ld.bfd: arch/arm/cpu/armv8/start.o: file not recognized: file format not recognized
make: *** [Makefile:1284: u-boot] Error 1
ERROR: Running /mnt/tspi-linux-sdk/device/rockchip/common/scripts/mk-loader.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    mk-loader.sh: do_build_uboot(56)
    mk-loader.sh: build_uboot(67)
    mk-loader.sh: build_hook(150)
    mk-loader.sh: main(163)
ERROR: Running /mnt/tspi-linux-sdk/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 2 from line 20:
    "$SCRIPTS_DIR/mk-loader.sh" loader
ERROR: call stack:
    99-all.sh: build_all(20)
    99-all.sh: build_allsave(107)
    99-all.sh: build_hook(132)
    build-helper: try_func(63)
    build-helper: try_hook(95)
    build-helper: source(158)
    99-all.sh: main(142)
ERROR: Running /mnt/tspi-linux-sdk/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook allsave failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(95)
    build-helper: source(158)
    99-all.sh: main(142)
ERROR: Running ./build.sh - run_hooks build allsave failed!
ERROR: exit code 2 from line 152:
    /mnt/tspi-linux-sdk/device/rockchip/common/build-hooks/99-all.sh build allsave
ERROR: call stack:
    build.sh: run_hooks(152)
    build.sh: run_build_hooks(171)
    build.sh: main(437)
    build.sh: main(452)
ERROR: Running ./build.sh - run_build_hooks build allsave failed!
ERROR: exit code 2 from line 174:
    build
ERROR: call stack:
    build.sh: run_build_hooks(174)
    build.sh: main(437)
    build.sh: main(452)

奇怪,我现在选非扩展版的配置全编译也是报这个错,但是只编译kernel是正常的,区别应该是我更新了一下仓库代码,我之前可能是直接用网盘下载的初始源码包编译的

@CmST0us
Copy link
Owner

CmST0us commented Sep 26, 2024

git lfs pull

应该是没有拉取lfs文件导致的

@CmST0us
Copy link
Owner

CmST0us commented Sep 26, 2024

image
我的仓库带宽超了, 15天内应该是拉不了

@CmST0us
Copy link
Owner

CmST0us commented Sep 26, 2024

回去重新传一个源码包

@CmST0us CmST0us added the enhancement New feature or request label Sep 26, 2024
@JusticeShi
Copy link
Author

回去重新传一个源码包

Thks

@bruce-the-terrible
Copy link

ubuntu24.04,python2直接就不能装了。悬着的心终于死了

@CmST0us
Copy link
Owner

CmST0us commented Sep 28, 2024

24.02现在兼容性还不好

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants