Toybrick

标题: 求解救——自动化脚本编译到recovery报错 [打印本页]

作者: zbc    时间: 2020-10-28 15:08
标题: 求解救——自动化脚本编译到recovery报错
  1. ===Start build rockchip_rk3399pro_recovery====
  2. umask 0022 && make -C /mnt/rk3399pro_linux_update/buildroot O=/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery
  3. /usr/bin/make -j1 O=/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery HOSTCC="/usr/local/bin/gcc" HOSTCXX="/usr/local/bin/g++" silentoldconfig
  4. >>> glibc glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98 Configuring
  5. mkdir -p /mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/build/glibc-glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98/build
  6. # Do the configuration
  7. (cd /mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/build/glibc-glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98/build; PATH="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin:/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" AR="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-ar" AS="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-as" LD="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-ld" NM="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-nm" CC="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-gcc" GCC="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-gcc" CPP="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-cpp" CXX="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-g++" FC="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-gfortran" F77="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-gfortran" RANLIB="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-ranlib" READELF="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-readelf" STRIP="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-strip" OBJCOPY="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-objcopy" OBJDUMP="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/local/bin/gcc" GCC_FOR_BUILD="/usr/local/bin/gcc" CXX_FOR_BUILD="/usr/local/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/include" CFLAGS_FOR_BUILD="-O2 -I/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/include" LDFLAGS_FOR_BUILD="-L/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/lib -Wl,-rpath,/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-as" DEFAULT_LINKER="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/pkg-config" STAGING_DIR="/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/aarch64-buildroot-linux-gnu/sysroot" INTLTOOL_PERL=/usr/bin/perl CFLAGS="-O2 " CPPFLAGS="" CXXFLAGS="-O2 " /bin/bash /mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/build/glibc-glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98/./configure ac_cv_path_BASH_SHELL=/bin/bash libc_cv_forced_unwind=yes libc_cv_ssp=no --target=aarch64-buildroot-linux-gnu --host=aarch64-buildroot-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --enable-shared --with-fp  --with-pkgversion="Buildroot" --without-cvs --disable-profile --without-gd --enable-obsolete-rpc --enable-kernel=4.4 --disable-experimental-malloc --with-headers=/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/include)
  8. checking build system type... x86_64-pc-linux-gnu
  9. checking host system type... aarch64-buildroot-linux-gnu
  10. checking for aarch64-buildroot-linux-gnu-gcc... /mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/host/bin/aarch64-buildroot-linux-gnu-gcc
  11. checking for suffix of object files... configure: error: in `/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/build/glibc-glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98/build':
  12. configure: error: cannot compute suffix of object files: cannot compile
  13. See `config.log' for more details
  14. package/pkg-generic.mk:244: recipe for target '/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/build/glibc-glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98/.stamp_configured' failed
  15. make[1]: *** [/mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/build/glibc-glibc-2.26-146-gd300041c533a3d837c9f37a099bcc95466860e98/.stamp_configured] Error 1
  16. /mnt/rk3399pro_linux_update/buildroot/output/rockchip_rk3399pro_recovery/Makefile:16: recipe for target '_all' failed
  17. make: *** [_all] Error 2
  18. ====Build rockchip_rk3399pro_recovery failed!====
  19. Command exited with non-zero status 1
  20. you take 0:06.20 to build recovery
  21. ====Build recovery failed!====
复制代码
根据报错信息 configure: error: cannot compute suffix of object files: cannot compile;我更新了gcc链接的库,但是还是不行,其他的比如kernel都可以编译成功

作者: zbc    时间: 2020-10-28 15:09
突然sdk就编译不了了

作者: zbc    时间: 2020-10-28 15:10
顶!!!!!!!!!!!!!!!!
作者: laotongxiao    时间: 2023-10-15 16:41
楼主你好 我也遇到和你一样的错误,请问怎么解决,你解决了吗




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3