我有一个有效的buildroot版本(2017.02.1)。我需要添加mDNS。 使用配置菜单,我设法添加并构建第一个avahi auto ip选项。 当我添加mDNS和libdns_sd子选项时,构建失败(下面)。 我删除了' dbus'来自' fs_skeleton / etc / passwd'但构建仍然失败。 我是buildroot&的新手。所以任何指针都会有所帮助!
mkdir -p /home/user/buildroot-mywork/buildroot/output/target/etc
( \
echo "NAME=Buildroot"; \
echo "VERSION=2017.02.1-00039-g464795e"; \
echo "ID=buildroot"; \
echo "VERSION_ID=2017.02.1"; \
echo "PRETTY_NAME=\"Buildroot 2017.02.1\"" \
) > /home/user/buildroot-mywork/buildroot/output/target/etc/os-release
>>> Copying overlay /home/user/buildroot-mywork/buildroot/../target/device/myproduct_mx6/production/rootfs_overlay
>>> Executing post-build script /home/user/buildroot-mywork/buildroot/../target/device/myproduct_mx6/production/postbuild.sh
!*!*!*[ POST BUILD ]*!*!*!
>>> Generating root filesystem image rootfs.tar
rm -f /home/user/buildroot-mywork/buildroot/output/build/_fakeroot.fs
rm -f /home/user/buildroot-mywork/buildroot/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
rm -f /home/user/buildroot-mywork/buildroot/output/build/_users_table.txt
echo '#!/bin/sh' > /home/user/buildroot-mywork/buildroot/output/build/_fakeroot.fs
echo "set -e" >> /home/user/buildroot-mywork/buildroot/output/build/_fakeroot.fs
echo "chown -h -R 0:0 /home/user/buildroot-mywork/buildroot/output/target" >> /home/user/buildroot-mywork/buildroot/output/build/_fakeroot.fs
printf ' avahi -1 avahi -1 * - - -\n dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user\n mosquitto -1 nogroup -1 * - - - Mosquitto user\n sshd -1 sshd -1 * - - - SSH drop priv user\n\n' >> /home/user/buildroot-mywork/buildroot/output/build/_users_table.txt
PATH="/opt/buildroot-2017.02.1/bin:/opt/buildroot-2017.02.1/sbin:/opt/buildroot-2017.02.1/usr/bin:/opt/buildroot-2017.02.1/usr/sbin:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/user/buildroot-mywork/buildroot/support/scripts/mkusers /home/user/buildroot-mywork/buildroot/output/build/_users_table.txt /home/user/buildroot-mywork/buildroot/output/target >> /home/user/buildroot-mywork/buildroot/output/build/_fakeroot.fs
mkusers: user 'dbus' already exists with group 'avahi' (wants 'dbus')
fs/tar/tar.mk:14: recipe for target '/home/user/buildroot-mywork/buildroot/output/images/rootfs.tar' failed
make[2]: *** [/home/user/buildroot-mywork/buildroot/output/images/rootfs.tar] Error 1
Makefile:79: recipe for target '_all' failed
make[1]: *** [_all] Error 2
make[1]: Leaving directory '/home/user/buildroot-mywork/buildroot'
Makefile:120: recipe for target 'all' failed
make: *** [all] Error 2
user@SDKQ:~/buildroot-mywork$
_user_table.txt:
avahi -1 avahi -1 * - - -
dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
mosquitto -1 nogroup -1 * - - - Mosquitto user
sshd -1 sshd -1 * - - - SSH drop priv user
答案 0 :(得分:0)
这看起来很奇怪。在确定后,请将此错误报告给Buildroot错误跟踪器:
1 /您可以在完全干净的构建后重现(make clean all
)
2 /您包含一个允许重现问题的Buildroot .config文件。