win10的WSL2下编译licheepi zero根文件系统buildroot-2017.08编译出错:
:/mnt/d/sipeed/v3s/buildroot-2017.08$ make
>>> Finalizing target directory
/usr/bin/sed -i -e '/# GENERIC_SERIAL$/s~^.*#~console::respawn:/sbin/getty -L console 0 vt100 #~' /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/inittab
/usr/bin/sed -i -e '/^#.*-o remount,rw \/$/s~^#\+~~' /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/inittab
mkdir -p /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc
echo "licheepi" > /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/hostname
/usr/bin/sed -i -e '$a \127.0.1.1\tlicheepi' -e '/^127.0.1.1/d' /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/hosts
mkdir -p /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc
echo "Welcome to Buildroot" > /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/issue
/usr/bin/sed -i -e s,^root:[^:]*:,root:"`/mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin/mkpasswd -m "md5" "123456"`":, /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/shadow
rm -f /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/locales.nopurge
for i in C en_US locale-archive; do echo $i >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/locales.nopurge; done
for dir in ; do for langdir in $dir/*; do if [ -e "${langdir}" ]; then grep -qx "${langdir##*/}" /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/locales.nopurge || rm -rf $langdir; fi done; done
if [ -d /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/X11/locale ]; then for lang in C en_US; do if [ -f /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/X11/locale/$lang/XLC_LOCALE ]; then echo "$lang/XLC_LOCALE: $lang"; fi done > /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/X11/locale/locale.dir; fi
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/include /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/aclocal \
/mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/lib/pkgconfig /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/pkgconfig \
/mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/lib/cmake /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/cmake
find /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
find /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/lib/ /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/lib/ /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/libexec/ \
\( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
find: ‘/mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/libexec/’: No such file or directory
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/gdb
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/bash-completion
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/zsh
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/man /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/man
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/info /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/info
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/doc /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/doc
rm -rf /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share/gtk-doc
rmdir /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/usr/share 2>/dev/null || true
find /mnt/d/sipeed/v3s/buildroot-2017.08/output/target -type f \( -perm /111 -o -name '*.so*' \) -not \( -name 'libpthread*.so*' -o -name 'ld-*.so*' -o -name '*.ko' \) -print0 | xargs -0 /mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin/arm-linux-gnueabihf-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true
find /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/lib/ -type f -name 'libpthread*.so*' | \
xargs -r /mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin/arm-linux-gnueabihf-strip --remove-section=.comment --remove-section=.note --strip-debug
find /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/lib/ -type f -name 'ld-*.so*' | \
xargs -r /mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin/arm-linux-gnueabihf-strip --remove-section=.comment --remove-section=.note --strip-debug
test -f /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/ld.so.conf && \
{ echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true
test -d /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/ld.so.conf.d && \
{ echo "ERROR: we shouldn't have a /etc/ld.so.conf.d directory"; exit 1; } || true
mkdir -p /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc
( \
echo "NAME=Buildroot"; \
echo "VERSION=2017.08"; \
echo "ID=buildroot"; \
echo "VERSION_ID=2017.08"; \
echo "PRETTY_NAME=\"Buildroot 2017.08\"" \
) > /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/etc/os-release
>>> Sanitizing RPATH in target tree
/mnt/d/sipeed/v3s/buildroot-2017.08/support/scripts/fix-rpath target
>>> Generating root filesystem image rootfs.tar
rm -f /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
rm -f /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
rm -f /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_users_table.txt
echo '#!/bin/sh' > /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
echo "set -e" >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
echo "chown -h -R 0:0 /mnt/d/sipeed/v3s/buildroot-2017.08/output/target" >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
printf ' \n' >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_users_table.txt
PATH="/mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin:/mnt/d/sipeed/v3s/buildroot-2017.08/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.Ubuntu_2204.2.33.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin/:/mnt/c/MentorGraphics/9.5PADS/SDD_HOME/common/win32/bin:/mnt/c/MentorGraphics/9.5PADS/SDD_HOME/common/win32/lib:/mnt/c/MentorGraphics/9.5PADS/MGC_HOME.ixn/bin:/mnt/c/MentorGraphics/9.5PADS/MGC_HOME.ixn/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Program Files (x86)/NetSarang/Xshell 7/:/mnt/c/Users/lumin/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/lumin/AppData/Local/Programs/Microsoft VS Code/bin:/opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin:/snap/bin:/usr/local/arm-linux-gcc/bin" /mnt/d/sipeed/v3s/buildroot-2017.08/support/scripts/mkusers /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_users_table.txt /mnt/d/sipeed/v3s/buildroot-2017.08/output/target >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
cat system/device_table.txt > /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_device_table.txt
printf ' /bin/busybox f 4755 0 0 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n\n' >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_device_table.txt
echo "/mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin/makedevs -d /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_device_table.txt /mnt/d/sipeed/v3s/buildroot-2017.08/output/target" >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
printf ' (cd /mnt/d/sipeed/v3s/buildroot-2017.08/output/target; find -print0 | LC_ALL=C sort -z | tar -cf /mnt/d/sipeed/v3s/buildroot-2017.08/output/images/rootfs.tar --null --no-recursion -T - --numeric-owner)\n' >> /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
chmod a+x /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
PATH="/mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin:/mnt/d/sipeed/v3s/buildroot-2017.08/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.Ubuntu_2204.2.33.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin/:/mnt/c/MentorGraphics/9.5PADS/SDD_HOME/common/win32/bin:/mnt/c/MentorGraphics/9.5PADS/SDD_HOME/common/win32/lib:/mnt/c/MentorGraphics/9.5PADS/MGC_HOME.ixn/bin:/mnt/c/MentorGraphics/9.5PADS/MGC_HOME.ixn/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Program Files (x86)/NetSarang/Xshell 7/:/mnt/c/Users/lumin/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/lumin/AppData/Local/Programs/Microsoft VS Code/bin:/opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin:/snap/bin:/usr/local/arm-linux-gcc/bin" /mnt/d/sipeed/v3s/buildroot-2017.08/output/host/bin/fakeroot -- /mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_fakeroot.fs
rootdir=/mnt/d/sipeed/v3s/buildroot-2017.08/output/target
table='/mnt/d/sipeed/v3s/buildroot-2017.08/output/build/_device_table.txt'
makedevs: line 23: can't create node /mnt/d/sipeed/v3s/buildroot-2017.08/output/target/dev/console: Operation not permitted
make: *** [fs/tar/tar.mk:32: /mnt/d/sipeed/v3s/buildroot-2017.08/output/images/rootfs.tar] Error 1
离线