在尝试为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.
我正在使用亚马逊Linux工作空间,任何帮助将是有帮助的。
也许你正在使用centos,所以你需要去chrome浏览器搜索"如何安装glibc-devel。