您尚未登录。

楼主 #1 2019-02-19 08:45:31

jimmy
会员
注册时间: 2017-10-29
已发帖子: 316
积分: 315

Ubuntu 16.04编译通过的 buildroot-2018.08.2 拷贝到 Ubuntu 14.04 会出现一个stdc++的问题

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)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn