GCC交叉编译为Raspberry pi/lib/arm-linux-gnueabihf/libc.so.6:版本`glibc_2.34'未找到

发布于 2025-01-27 15:22:06 字数 305 浏览 4 评论 0 原文

在Ubuntu 22.04 LTS上,我正在跨编译Raspberry Pi。当我在PI上运行任何构建可执行文件时,我会收到此链接错误:

/lib/arm-linux-gnueabihf/libc.so.6:version“ glibc_2.34'找不到

我得到此错误与GCC-9,GCC-10,GCC-11和GCC-12进行交叉编译。

PI正在运行“ Raspbian GNU/Linux 11(Bullseye)”。最好解决这个问题是什么? Raspbian的不同版本是否可以解决此问题,还是需要安装较新版本的GliBC?

On Ubuntu 22.04 LTS, I'm cross-compiling for raspberry pi. When I run any built executable on the pi, I get this linking error:

/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found

I get this error cross-compiling with gcc-9, gcc-10, gcc-11, and gcc-12.

The pi is running 'Raspbian GNU/Linux 11 (bullseye)'. What's the best was to resolve this issue? Will a different version of Raspbian resolve this issue, or do I need to install a newer version of glibc?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鸠魁 2025-02-03 15:22:06

我通过找到Raspberry Pi Bullseye 在这里

I've resolved this issue by finding the right pre-built cross-compiler for raspberry pi bullseye here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文