问题在Docker容器中创建RPM gcc-toolset-11-libelf.so.dts.1

发布于 2025-01-29 03:51:37 字数 1282 浏览 6 评论 0原文

我有一台带有Oracle Linux 8 Docker容器的CentOS 7机器,带有GCC-Toolset-11。当我尝试在容器中构建项目时,我会收到以下错误:

extracting debug info from /cm/build/rpmbuild/BUILDROOT/MyPackage-9.1.0-497.ol8.x86_64/usr/local/bin/mariadb
gdb-add-index: No index was created for /cm//build/rpmbuild/BUILDROOT/MyPackage-9.1.0-497.ol8.x86_64/usr/local/bin/mariadb
gdb-add-index: [Was there no debuginfo? Was there already an index?]
gdb-add-index: No index was created for /cm/build/rpmbuild/BUILDROOT/MyPackage-9.1.0-497.ol8.x86_64/usr/local/bin/mariadb-binlog
gdb-add-index: [Was there no debuginfo? Was there already an index?]
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
/usr/lib/rpm/find-debuginfo.sh: line 501: /tmp/find-debuginfo.NCirqm/res.*: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.tHJ5xo (%install)

有帮助吗?

I have a CentOS 7 machine with an Oracle Linux 8 docker container with gcc-toolset-11. When I try to build the project in the container I get the following errors:

extracting debug info from /cm/build/rpmbuild/BUILDROOT/MyPackage-9.1.0-497.ol8.x86_64/usr/local/bin/mariadb
gdb-add-index: No index was created for /cm//build/rpmbuild/BUILDROOT/MyPackage-9.1.0-497.ol8.x86_64/usr/local/bin/mariadb
gdb-add-index: [Was there no debuginfo? Was there already an index?]
gdb-add-index: No index was created for /cm/build/rpmbuild/BUILDROOT/MyPackage-9.1.0-497.ol8.x86_64/usr/local/bin/mariadb-binlog
gdb-add-index: [Was there no debuginfo? Was there already an index?]
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
eu-strip: error while loading shared libraries: libelf.so.dts.1: cannot open shared object file: No such file or directory
/usr/lib/rpm/find-debuginfo.sh: line 501: /tmp/find-debuginfo.NCirqm/res.*: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.tHJ5xo (%install)

Any help?

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

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

发布评论

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

评论(1

忘年祭陌 2025-02-05 03:51:37

我发现了。我很难获得source/opt/opt/rh/gcc-toolset-11/enable可以工作,因此我将文档中的所有路径都放在envif命令中。但是我显然做错了。修复了不良的env命令,现在它正确构建。

I figured it out. I was having trouble getting source /opt/rh/gcc-toolset-11/enable to work, so I put all the paths in the Docerfile as ENV commands. But I apparently did it wrong. Fixed the bad ENV commands, and now it builds correctly.

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