@
amrnxcdt 宿主机器:
Docker version 20.10.17, build 100c701
Description: Ubuntu 22.04.1 LTS
docker 镜像
sudo docker exec -it df01ded745cd /bin/bash
git version 2.7.4
Ubuntu 16.04.7 LTS
另外设置时间问题我已经解决了,参考
https://blog.csdn.net/ju_362204801/article/details/114383191不过现在在 docker 里面编译出现报错, 我怀疑是挂载命令出错,因为我用-v 挂载是可以正常编译没有问题的
//原来的命令
sudo docker run --privileged -it -d -v /datastore1/x9r:/host --name sd_build sd_build_3 /bin/bash
//报错 log
make[2]: Entering directory '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware'
/bin/sh: 1: /tool/gcc_linaro/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: not found
Including services/spd/trusty/
trusty.mkBuilding x9
CC lib/libc/abort.c
CC lib/libc/assert.c
make[2]: /tool/gcc_linaro/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: Command not found
CC lib/libc/exit.c
make[2]: /tool/gcc_linaro/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: Command not found
Makefile:802: recipe for target '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/abort.o' failed
make[2]: *** [/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/abort.o] Error 127
CC lib/libc/memchr.c
make[2]: *** Waiting for unfinished jobs....
Makefile:802: recipe for target '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/assert.o' failed
make[2]: *** [/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/assert.o] Error 127
make[2]: /tool/gcc_linaro/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: Command not found
Makefile:802: recipe for target '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/exit.o' failed
make[2]: *** [/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/exit.o] Error 127
make[2]: /tool/gcc_linaro/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: Command not found
Makefile:802: recipe for target '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/memchr.o' failed
make[2]: *** [/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware/sml/x9/release/libc/memchr.o] Error 127
make[2]: Leaving directory '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware'
sml_setup.mk:53: recipe for target 'atf_build' failed
make[1]: *** [atf_build] Error 2
make[1]: Leaving directory '/host/x9/ptg4.1/buildsystem/atf/atf/arm-trusted-firmware'
Makefile:1429: recipe for target 'build_ap2atf' failed
make: *** [build_ap2atf] Error 1