Firefly开源社区

打印 上一主题 下一主题

[技术讨论] 请帮忙解决RK3308B-CC编译rootfs报错的问题

14

积分

0

威望

0

贡献

技术小白

积分
14

请帮忙解决RK3308B-CC编译rootfs报错的问题

发表于 2020-9-1 19:50:46      浏览:3429 | 回复:3        打印      只看该作者   [复制链接] 楼主
请帮忙解决RK3308B-CC编译rootfs报错的问题
我以为是我改了配置导致编译不过,但不做任何修改、完全照着编译手册做,编rootfs还是失败。
命令:
git reset --hard HEAD
git remote -v
remote set-url gitlab https://gitlab.com/TeeFirefly/rk3308-linux.git
git pull gitlab firefly:firefly
  ./build.sh roc-rk3308b-cc_release_BoardConfig.mk
./build.sh uboot
./build.sh roc-rk3308b-cc_release_BoardConfig.mk
./build.sh kernel
source buildroot/build/envsetup.sh
make

报错的log:
[0901_19:25:42.143] # Now that we have built all the objects, we need to copy
[0901_19:25:42.148] # them back to the GCC directory.  Too many things (other
[0901_19:25:42.155] # in-tree libraries, and DejaGNU) know about the layout
[0901_19:25:42.160] # of the build tree, for now.
[0901_19:25:42.167] /usr/bin/make install-leaf DESTDIR=../.././gcc \
[0901_19:25:42.173]   slibdir= libsubdir= MULTIOSDIR=.
[0901_19:25:42.178] /bin/bash ../../../libgcc/../mkinstalldirs ../.././gcc
[0901_19:25:42.186] /usr/bin/install -c -m 644 libgcc_eh.a ../.././gcc/
[0901_19:25:42.191] chmod 644 ../.././gcc/libgcc_eh.a
[0901_19:25:42.196] /home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/host/aarch64-rockchip-linux-gnu/bin/ranlib ../.././gcc/libgcc_eh.a
[0901_19:25:42.208] /bin/bash ../../../libgcc/../mkinstalldirs ../.././gcc; /usr/bin/install -c -m 644 ./libgcc_s.so.1 ../.././gcc/libgcc_s.so.1; rm -f ../.././gcc/libgcc_s.so; ln -s libgcc_s.so.1 ../.././gcc/libgcc_s.so
[0901_19:25:42.221] /bin/bash ../../../libgcc/../mkinstalldirs ../.././gcc
[0901_19:25:42.226] /usr/bin/install -c -m 644 libgcc.a ../.././gcc/
[0901_19:25:42.230] chmod 644 ../.././gcc/libgcc.a
[0901_19:25:42.239] /home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/host/aarch64-rockchip-linux-gnu/bin/ranlib ../.././gcc/libgcc.a
[0901_19:25:42.249] /usr/bin/install -c -m 644 libgcov.a ../.././gcc/
[0901_19:25:42.255] chmod 644 ../.././gcc/libgcov.a
[0901_19:25:42.260] /home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/host/aarch64-rockchip-linux-gnu/bin/ranlib ../.././gcc/libgcov.a
[0901_19:25:42.273] parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtfastmath.o";                         \
[0901_19:25:42.277] for file in $parts; do                                  \
[0901_19:25:42.284]   rm -f ../.././gcc/$file;              \
[0901_19:25:42.289]   /usr/bin/install -c -m 644 $file ../.././gcc/;        \
[0901_19:25:42.294]   case $file in                                         \
[0901_19:25:42.302]     *.a)                                                \
[0901_19:25:42.307]       /home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/host/aarch64-rockchip-linux-gnu/bin/ranlib ../.././gcc/$file ;;     \
[0901_19:25:42.319]   esac;                                                 \
[0901_19:25:42.324] done
[0901_19:25:42.330] make[4]: write error: stdout
[0901_19:25:42.338] Makefile:12099: recipe for target 'all-target-libgcc' failed
[0901_19:25:42.343] make[3]: *** [all-target-libgcc] Error 1
[0901_19:25:42.348] Makefile:878: recipe for target 'all' failed
[0901_19:25:42.355] make[2]: *** [all] Error 2
[0901_19:25:42.360] package/pkg-generic.mk:247: recipe for target '/home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/build/host-gcc-final-6.4.0/.stamp_built' failed
[0901_19:25:42.371] make[1]: *** [/home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/build/host-gcc-final-6.4.0/.stamp_built] Error 2
[0901_19:25:42.371] /home/sw/hwz/rk3308/buildroot/output/firefly_rk3308_release/Makefile:16: recipe for target '_all' failed
[0901_19:25:42.384] make: *** [_all] Error 2
回复

使用道具 举报

14

积分

0

威望

0

贡献

技术小白

积分
14
发表于 2020-9-1 20:00:00        只看该作者  沙发
log比较大,我放到微云上,log文件,有错误信息的来龙去脉
下载链接:https://share.weiyun.com/C2SytLeE
回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10850

突出贡献

发表于 2020-9-2 08:49:45        只看该作者  板凳
电脑配置怎样,什么环境,检查一下相应的工具和软件依赖包的安装是否正常
回复

使用道具 举报

14

积分

0

威望

0

贡献

技术小白

积分
14
发表于 2020-9-3 13:46:54        只看该作者  地板
后来算是解决了。用SSH登陆编译会这样的错,直接在虚拟机里开终端执行就OK。
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表