Firefly开源社区

打印 上一主题 下一主题

[Linux] sdk编译buildroot出错

20

积分

0

威望

0

贡献

技术小白

积分
20

sdk编译buildroot出错

发表于 2022-10-9 09:48:19      浏览:5392 | 回复:2        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
从官方百度云盘下载固件,按如下步骤操作
#本压缩包内包含一个.repo目录,解压之后,在当前目录下执行以下操作.repo/repo/repo sync -l.repo/repo/repo sync -c --no-tags.repo/repo/repo start firefly --all

编译uboot和kernel可以通过,编译buildroot出现错误 错误如下:

rent@rent-virtual-machine:~/work/rv1126_rv1109_linux_release_20211022$ sudo ./build.sh rootfs
processing board option: rootfs
processing option: rootfs
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=firefly_rv1126_rv1109
=========================================
Top of tree: /home/rent/work/rv1126_rv1109_linux_release_20211022
===========================================

#TARGET_BOARD=rv1126
#OUTPUT_DIR=output/firefly_rv1126_rv1109
#CONFIG=firefly_rv1126_rv1109_defconfig

===========================================
make: Entering directory '/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot'
  GEN     /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/build/defconfig_hook.py -m /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/configs/firefly_rv1126_rv1109_defconfig /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/buildroot-config/tristate.config BR2_CONFIG=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.config HOST_GCC_VERSION="5" BUILD_DIR=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build SKIP_LEGACY= BR2_DEFCONFIG=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/configs/firefly_rv1126_rv1109_defconfig /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/buildroot-config/conf --defconfig=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig Config.in
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:142:warning: override: reassigning to symbol BR2_PACKAGE_RKWIFIBT
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:179:warning: override: reassigning to symbol BR2_PACKAGE_UPDATE
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:185:warning: override: reassigning to symbol BR2_PACKAGE_RKSCRIPT
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:324:warning: override: reassigning to symbol BR2_PACKAGE_NTP
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:325:warning: override: reassigning to symbol BR2_PACKAGE_RK_OEM_RESOURCE_DIR
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:326:warning: override: reassigning to symbol BR2_PACKAGE_CAMERA_ENGINE_RKAIQ_IQFILE
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:328:warning: override: BR2_PACKAGE_RKWIFIBT_AP6236 changes choice state
/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.rockchipconfig:344:warning: override: reassigning to symbol BR2_TARGET_GENERIC_ROOT_PASSWD
#
# configuration written to /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/.config
#
make: Leaving directory '/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot'
2022-10-09T09:07:48 >>> bluez5_utils 5.50 Building
Done in 10s  (error code: 2)
log saved on /home/rent/work/rv1126_rv1109_linux_release_20211022/br.log
2022-10-08T17:02:38 CC       attrib/bluetoothd-att.o
2022-10-08T17:02:38 CC       attrib/bluetoothd-gatt.o
2022-10-08T17:02:38 CC       attrib/bluetoothd-gattrib.o
2022-10-08T17:02:38 CC       attrib/bluetoothd-gatt-service.o
2022-10-08T17:02:38 CC       btio/bluetoothd-btio.o
2022-10-08T17:02:39 CC       gobex/obexd-gobex.o
2022-10-08T17:02:39 CC       gobex/obexd-gobex-defs.o
2022-10-08T17:02:39 CC       gobex/obexd-gobex-packet.o
2022-10-08T17:02:39 CC       gobex/obexd-gobex-header.o
2022-10-08T17:02:39 CC       gobex/obexd-gobex-transfer.o
2022-10-08T17:02:39 CC       gobex/obexd-gobex-apparam.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-filesystem.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-bluetooth.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-pcsuite.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-opp.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-ftp.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-irmc.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-pbap.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-vcard.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-phonebook-dummy.o
2022-10-08T17:02:40 CC       obexd/plugins/obexd-mas.o
2022-10-08T17:02:41 CC       obexd/plugins/obexd-messages-dummy.o
2022-10-08T17:02:41 CC       obexd/client/obexd-mns.o
2022-10-08T17:02:41 CC       obexd/src/obexd-main.o
2022-10-08T17:02:41 CC       obexd/src/obexd-plugin.o
2022-10-08T17:02:41 CC       obexd/src/obexd-log.o
2022-10-08T17:02:41 CC       obexd/src/obexd-manager.o
2022-10-08T17:02:41 CC       obexd/src/obexd-obex.o
2022-10-08T17:02:41 CC       obexd/src/obexd-mimetype.o
2022-10-08T17:02:41 CC       obexd/src/obexd-service.o
2022-10-08T17:02:41 CC       obexd/src/obexd-transport.o
2022-10-08T17:02:42 CC       obexd/src/obexd-server.o
2022-10-08T17:02:42 CCLD     tools/hcisecfilter
2022-10-08T17:02:42 CC       profiles/health/mcap.o
2022-10-08T17:02:42 CCLD     tools/seq2bseq
2022-10-08T17:02:42 CCLD     tools/nokfw
2022-10-08T17:02:42 CCLD     tools/rtlfw
2022-10-08T17:02:42 CCLD     tools/create-image
2022-10-08T17:02:42 CCLD     tools/test-runner
2022-10-08T17:02:42 CCLD     tools/check-selftest
2022-10-08T17:02:42 CC       profiles/iap/main.o
2022-10-08T17:02:42 CCLD     lib/libbluetooth.la
2022-10-08T17:02:42 CCLD     tools/hid2hci
2022-10-08T17:02:43 CCLD     lib/libbluetooth-internal.la
2022-10-08T17:02:43 CCLD     gdbus/libgdbus-internal.la
2022-10-08T17:02:43 CCLD     src/libshared-glib.la
2022-10-08T17:02:43 CCLD     src/libshared-mainloop.la
2022-10-08T17:02:43 CCLD     plugins/sixaxis.la
2022-10-08T17:02:43 CCLD     tools/rctest
2022-10-08T17:02:43 CCLD     tools/l2test
2022-10-08T17:02:43 CCLD     tools/l2ping
2022-10-08T17:02:43 CCLD     tools/bccmd
2022-10-08T17:02:43 CCLD     tools/bluemoon
2022-10-08T17:02:43 CCLD     tools/hex2hcd
2022-10-08T17:02:43 CCLD     tools/mpris-proxy
2022-10-08T17:02:43 CCLD     tools/btattach
2022-10-08T17:02:43 CCLD     tools/hciattach
2022-10-08T17:02:43 CCLD     tools/hciconfig
2022-10-08T17:02:44 CCLD     tools/hcitool
2022-10-08T17:02:44 CCLD     tools/hcidump
2022-10-08T17:02:44 CCLD     tools/rfcomm
2022-10-08T17:02:44 CCLD     tools/sdptool
2022-10-08T17:02:44 CCLD     tools/ciptool
2022-10-08T17:02:44 CCLD     src/bluetoothd
2022-10-08T17:02:44 CCLD     obexd/src/obexd
2022-10-08T17:02:44 CCLD     tools/bdaddr
2022-10-08T17:02:44 CCLD     tools/avinfo
2022-10-08T17:02:44 CCLD     tools/avtest
2022-10-08T17:02:44 arm-linux-gnueabihf-gcc: error: pthread: No such file or directory
2022-10-08T17:02:44 CCLD     tools/scotest
2022-10-08T17:02:44 Makefile:4372: recipe for target 'obexd/src/obexd' failed
2022-10-08T17:02:44 make[3]: *** [obexd/src/obexd] Error 1
2022-10-08T17:02:44 make[3]: *** Waiting for unfinished jobs....
2022-10-08T17:02:44 Makefile:3278: recipe for target 'all' failed
2022-10-08T17:02:44 make[2]: *** [all] Error 2
2022-10-08T17:02:44 package/pkg-generic.mk:228: recipe for target '/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/bluez5_utils-5.50/.stamp_built' failed
2022-10-08T17:02:44 make[1]: *** [/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/bluez5_utils-5.50/.stamp_built] Error 2
2022-10-08T17:02:44 /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile:16: recipe for target '_all' failed
2022-10-08T17:02:44 make: *** [_all] Error 2
2022-10-09T09:07:38 umask 0022 && make -C /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot O=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109
2022-10-09T09:07:47 /usr/bin/make -j1 O=/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
2022-10-09T09:07:47 GEN     /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile
2022-10-09T09:07:48 >>> bluez5_utils 5.50 Building
2022-10-09T09:07:48 PATH="/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/host/bin:/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" RecoveryNoUi=true  /usr/bin/make -j5  -C /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/bluez5_utils-5.50/
2022-10-09T09:07:48 /usr/bin/make --no-print-directory all-am
2022-10-09T09:07:48 CCLD     client/bluetoothctl
2022-10-09T09:07:48 CCLD     monitor/btmon
2022-10-09T09:07:48 CCLD     obexd/src/obexd
2022-10-09T09:07:48 CCLD     tools/amptest
2022-10-09T09:07:48 CCLD     tools/hwdb
2022-10-09T09:07:48 arm-linux-gnueabihf-gcc: error: pthread: No such file or directory
2022-10-09T09:07:48 Makefile:4372: recipe for target 'obexd/src/obexd' failed
2022-10-09T09:07:48 make[3]: *** [obexd/src/obexd] Error 1
2022-10-09T09:07:48 make[3]: *** Waiting for unfinished jobs....
2022-10-09T09:07:48 Makefile:3278: recipe for target 'all' failed
2022-10-09T09:07:48 make[2]: *** [all] Error 2
2022-10-09T09:07:48 package/pkg-generic.mk:228: recipe for target '/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/bluez5_utils-5.50/.stamp_built' failed
2022-10-09T09:07:48 make[1]: *** [/home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/bluez5_utils-5.50/.stamp_built] Error 2
2022-10-09T09:07:48 /home/rent/work/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile:16: recipe for target '_all' failed
2022-10-09T09:07:48 make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:12.97 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 742:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG




error_log.zip

2.03 KB, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

26

积分

0

威望

0

贡献

技术小白

积分
26
发表于 2022-10-12 08:06:17        只看该作者  沙发
我也遇到同样的问题,请问有解决吗?
回复

使用道具 举报

20

积分

0

威望

0

贡献

技术小白

积分
20
发表于 2022-10-12 18:52:42        只看该作者  板凳
qqqqqq 发表于 2022-10-12 08:06
我也遇到同样的问题,请问有解决吗?

把bluez5_utils-5.50关掉了
回复

使用道具 举报

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

本版积分规则

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