[root@localhost test]# gcc -m32 -S test.c -o test32.s
In file included from /usr/include/features.h:399:0,
from /usr/include/stdio.h:27,
from test.c:1:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
# include <gnu/stubs-32.h>
^
compilation terminated.
###缺少头文件, yum provides命令查询哪个组件可以提供头文件
[root@localhost test]# yum provides */stubs-32.h
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
glibc-devel-2.17-292.el7.i686 : Object files for development using standard C
: libraries.
Repo : base
Matched from:
Filename : /usr/include/gnu/stubs-32.h
[root@localhost test]# yum install -y glibc-devel-2.17-292.el7.i686