被窝睡大觉

被窝睡大觉

0个粉丝

1

问答

0

专栏

0

资料

被窝睡大觉  发布于  2023-09-19 11:50:03
采纳率 0%
1个问答
838

Hi3519DV500编译失败报错: [Makefile:505:gslboot_build] 错误

   

1.修改了Makefile的“ LIB_TYPE ?= glibc”
2.使用的是gnu编译器
3.aarch64-linux-gnu-gcc -v
使用内建 specs。
COLLECT_GCC=aarch64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/opt/linux/x86-arm/aarch64-v01c01-linux-gnu-gcc/bin/../libexec/gcc/aarch64-linux-gnu/10.3.0/lto-wrapper
目标:aarch64-linux-gnu
配置为:/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/../../open_source/aarch64-linux-glibc_src/gcc-10.3.0/configure —build=x86_64-pc-linux-gnu —host=x86_64-pc-linux-gnu —target=aarch64-linux-gnu —with-arch=armv8-a —prefix=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/aarch64-linux-glibc —enable-symvers=gnu —enable-threads —disable-libmudflap —enable-__cxa_atexit —disable-libssp —enable-gold=yes —disable-libstdcxx-pch —disable-multilib —enable-multiarch —with-gnu-as —with-gnu-ld —enable-libgomp —enable-libatomic —enable-gnu-indirect-function —enable-checking=yes —enable-lto —enable-c99 —enable-long-long —enable-nls —enable-fix-cortex-a53-835769 —enable-fix-cortex-a53-843419 —enable-shared —enable-poison-system-directories —disable-libitm —with-pkgversion=’GCC-10.3.0 glibc-2.34 ver100.110 2023-06-09 09:00:00’ —enable-languages=c,c++ —with-headers=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/aarch64-linux-glibc/target/usr/include —with-sysroot=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/aarch64-linux-glibc/target —with-build-sysroot=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/aarch64-linux-glibc/target —with-gmp=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/obj/host-libs/usr —with-isl=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/obj/host-libs/usr —with-mpfr=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/obj/host-libs/usr —with-mpc=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/obj/host-libs/usr —with-build-time-tools=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/aarch64-linux-glibc/aarch64-linux-gnu/bin —libdir=/devcloud/workspace/gcc_source/build/aarch64-linux-glibc/aarch64_linux_glibc_build_dir/aarch64-linux-glibc/lib —disable-bootstrap —with-system-zlib
线程模型:posix
Supported LTO compression algorithms: zlib
gcc 版本 10.3.0 (GCC-10.3.0 glibc-2.34 ver100.110 2023-06-09 09:00:00)
4.报错提示如下所示:
————-task [11] build boot_image.bin
pushd /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl; make clean; make CHIP=hi3519dv500 LLVM= ;popd
~/Desktop/EMA/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl ~/Desktop/EMA/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp
make[1]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl”
make[2]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers”
make[2]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers”
make[2]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/boot”
make[2]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/boot”
make[2]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/common”
make[2]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/common”
make[1]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl”
make[1]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl”
make[2]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers”
AR libdrv.a
aarch64-v01c01-linux-gnu-ar: creating libdrv.a
RL libdrv.a
make[2]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers”
make[2]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/boot”
CC backup.c lpds.c cipher.c checkup.c board_type.c flash.c main.c
aarch64-v01c01-linux-gnu-gcc -fno-builtin -fno-common -Wall -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/include/ -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers/share_drivers/ -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers/share_drivers/include/ -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers/uart/ -DCFG_RAM_BASE_ADDR=0x04020000 -march=armv8-a -c -Os -mstrict-align -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -fstack-protector-strong -nostdinc backup.c lpds.c cipher.c checkup.c board_type.c flash.c main.c
CC start.S
make[2]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/boot”
make[2]: 进入目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/common”
CC lib.c crc.c malloc.c timer.c
aarch64-v01c01-linux-gnu-gcc -fno-builtin -fno-common -Wall -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/include/ -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers/share_drivers/ -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers/share_drivers/include/ -I/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/drivers/uart/ -DCFG_RAM_BASE_ADDR=0x04020000 -march=armv8-a -c -Os -mstrict-align -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -fstack-protector-strong -nostdinc lib.c crc.c malloc.c timer.c
make[2]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/common”
aarch64-v01c01-linux-gnu-ld boot/backup.o boot/lpds.o boot/cipher.o boot/checkup.o boot/board_type.o boot/flash.o boot/main.o common/lib.o common/crc.o common/malloc.o common/timer.o boot/start.o -Bstatic -T linker.lds -Ttext 0x4022e00 drivers/libdrv.a -Map gsl.map -o gsl aarch64-v01c01-linux-gnu-objcopy -O binary gsl gsl.bin
make[1]: 离开目录“/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl”
~/Desktop/EMA/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp
cp /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/boot_tools/hi3519dv500_reg_info.bin /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/input/reg_info.bin;
cp /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/../../../../open_source/u-boot/u-boot-2022.07/u-boot-hi3519dv500.bin /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/input/u-boot-original.bin;
cp /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/components/gsl/pub/gsl.bin /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/input;
pushd /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool; python /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/oem/oem_quick_build.py;popd
~/Desktop/EMA/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool ~/Desktop/EMA/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp
/bin/sh: python:未找到命令
~/Desktop/EMA/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp
cp /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/image/oem/boot_image.bin /home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/pub/hi3519dv500_emmc_image_glibc/boot_image.bin;
cp: 无法获取’/home/Desktop/Hi3519DV500/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/image/oem/boot_image.bin’ 的文件状态(stat): 没有那个文件或目录
make: * [Makefile:505:gslboot_build] 错误 1

我来回答
回答4个
时间排序
认可量排序

UncleRoderick

32个粉丝

14

问答

1

专栏

14

资料

UncleRoderick 2023-09-19 13:20:08
认可0

apt install python-pip
apt install python3-pip
pip install setuptools==44.1.1
pip install kconfiglib
pip install pycryptodome
pip3 install pycryptodome
pip3 install pyelftools
pip3 install setuptools
试试这些命令把python的相关库安装下

被窝睡大觉
被窝睡大觉   回复   UncleRoderick  2023-09-20 09:38:02
0

安装了,依旧报错
/bin/sh: python: command not found
~/Desktop/Hisi/Hisi3519/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp
cp /home/Desktop/Hisi/Hisi3519/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/image/oem/boot_image.bin /home/Desktop/Hisi/Hisi3519/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/pub/hi3519dv500_emmc_image_glibc/boot_image.bin;
cp: cannot stat ‘/home/Desktop/Hisi/Hisi3519/Hi3519DV500_SDK_V2.0.0.3/smp/a55_linux/source/bsp/tools/pc/image_tool/image/oem/boot_image.bin’: No such file or directory
make: * [Makefile:505: gslboot_build] Error 1

UncleRoderick
UncleRoderick   回复   被窝睡大觉  2023-09-20 16:56:04
0

python: command not found
你的python都没安装
sudo apt-get install python
顺便把其他环境都装了吧
sudo apt-get install make
sudo apt-get install libc6-i386
sudo apt-get install lib32z1
sudo apt-get install lib32stdc++6
sudo apt-get install zlib1g-dev
sudo apt-get install libncurses5-dev
sudo apt-get install ncurses-term
sudo apt-get install libncursesw5-dev
sudo apt-get install g++
sudo apt-get install u-boot-tools
sudo apt-get install texinfo
sudo apt-get install texlive
sudo apt-get install gawk
sudo apt-get install libssl-dev
sudo apt-get install openssl
sudo apt-get install bc
sudo apt-get install p7zip-full
sudo apt-get install gperf
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install diffutils
sudo apt-get install git
sudo apt-get install unzip
sudo apt-get install zlib1g-dev
sudo apt-get install liblzo2-dev
sudo apt-get install uuid-dev
sudo apt-get install pkg-config
sudo apt-get install automake
sudo apt-get install texlive

被窝睡大觉
被窝睡大觉   回复   UncleRoderick  2023-09-21 16:29:30
0

python及后面的软件包都安装了;后面改了映射
ln -s /usr/local/bin/python3 /usr/local/bin/python
之后就可以了

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区