test -f /opt/buildroot-2018.08.2/output/target/etc/ld.so.conf && \
{ echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true
test -d /opt/buildroot-2018.08.2/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 /opt/buildroot-2018.08.2/output/target/etc
( \
echo "NAME=Buildroot"; \
echo "VERSION=2018.08.2"; \
echo "ID=buildroot"; \
echo "VERSION_ID=2018.08.2"; \
echo "PRETTY_NAME=\"Buildroot 2018.08.2\"" \
) > /opt/buildroot-2018.08.2/output/target/usr/lib/os-release
ln -sf ../usr/lib/os-release /opt/buildroot-2018.08.2/output/target/etc
>>> Sanitizing RPATH in target tree
/opt/buildroot-2018.08.2/support/scripts/fix-rpath target
Error: can't execute patchelf utility '/opt/buildroot-2018.08.2/output/host/bin/patchelf'
make: *** [target-finalize] Error 1
单独执行:
root@ubuntu:/opt/buildroot-2018.08.2# /opt/buildroot-2018.08.2/output/host/bin/patchelf
/opt/buildroot-2018.08.2/output/host/bin/patchelf: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/buildroot-2018.08.2/output/host/bin/patchelf)
/opt/buildroot-2018.08.2/output/host/bin/patchelf: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /opt/buildroot-2018.08.2/output/host/bin/patchelf)
离线