Toybrick

求解救——自动化脚本编译到recovery报错

zbc

注册会员

积分
52
发表于 2020-10-28 15:08:50    查看: 8596|回复: 3 | [复制链接]    打印 | 显示全部楼层
  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

注册会员

积分
52
 楼主| 发表于 2020-10-28 15:09:42 | 显示全部楼层
突然sdk就编译不了了
回复

使用道具 举报

zbc

注册会员

积分
52
 楼主| 发表于 2020-10-28 15:10:04 | 显示全部楼层
顶!!!!!!!!!!!!!!!!
回复

使用道具 举报

laotongxiao

新手上路

积分
14
发表于 2023-10-15 16:41:33 | 显示全部楼层
楼主你好 我也遇到和你一样的错误,请问怎么解决,你解决了吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表