在Amazon Linux 2上建造GCC 11.2
在尝试为Linux-X86_64(启用了Multilib和Multiarch支持)构建GCC版本11.3时,我会遇到以下错误:
In file included from /usr/include/features.h:447,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/../gcc/tsystem.h:87,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/generic-morestack.c:32:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
我可以告诉这意味着我没有安装Glibc-Devel(32位版本) ;但是,在尝试通过yum安装它时,我会得到以下输出:
$ sudo yum install glibc-devel.i686
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
No package glibc-devel.i686 available.
我正在使用Amazon Linux工作区,任何帮助都会有所帮助。
While attempting to build GCC version 11.3 for Linux-x86_64 (with multilib and multiarch support enabled), I am getting the following error:
In file included from /usr/include/features.h:447,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/../gcc/tsystem.h:87,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/generic-morestack.c:32:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
From what I can tell this means that I don't have glibc-devel (32-bit version) installed; however when attempting to install it via YUM I get the following output:
$ sudo yum install glibc-devel.i686
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
No package glibc-devel.i686 available.
I am using an Amazon Linux Workspace, any assistance would be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,不幸的是,AWS似乎过分决心消除32位。在Linux 2上,他们提供了32位共享库,但没有编译您自己的32位程序的能力。在Linux 2023上,完全删除了32位。
我看到的唯一选择是通过手动下载所有CentOS 7 rpms将整个GLIBC生态系统从2.26降低至2.17。
好吧,还有另一种选择...选择仍然完全支持32位的Linux发行版。
我们被迫面对同样的困境,以支持我们的32位传统应用程序。
Yes, it is unfortunate that AWS seems overzealously determined to eradicate 32-bit. On Linux 2, they offer the 32-bit shared libraries, but not the ability to compile your own 32-bit programs. On Linux 2023, 32-bit is removed entirely.
The only option I can see is to downgrade the entire glibc ecosystem from 2.26 to 2.17 by manually downloading all the CentOS 7 rpms.
Well, there is another option... Choose a linux distro that still fully supports 32-bit.
We're forced to confront this same predicament ourselves in trying to support our 32-bit legacy app.
也许您正在使用CentOS,因此您需要去Chrome并搜索“如何安装glibc-devel.i686 for centos”。
Maybe you are using centos so you need to go to chrome and search for "How to install glibc-devel.i686 for centos".