C: 编译错误:fatal error: gnu/stubs-32.h: No such file or directory
程序员文章站
2022-03-08 19:26:57
...
错误
[[email protected]-2003 test]# gcc thread.c -l pthread -m32
In file included from /usr/include/features.h:452,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from thread.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
# include <gnu/stubs-32.h>
^~~~~~~~~~~~~~~~
compilation terminated.
原因
没有安装,32位的glibc、glibc-devel。
dnf install glibc.i686
dnf install glibc-devel.i686
推荐阅读
-
NET下编译C++代码时出现fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or director
-
Linux内核编译时出现fatal error: openssl/opensslv.h: No such file or directory错误的解决办法
-
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
-
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
-
交叉编译BusyBox 构建根文件系统出错fatal error: gnu/stubs-soft.h: No such file or directory
-
fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
-
pi_kernel源码编译出现: fatal error: openssl/opensslv.h: No such file or directory
-
Linux内核编译时出现fatal error: openssl/opensslv.h: No such file or directory错误的解决办法
-
编译内核时报错:scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory
-
Ubuntu 编译出现fatal error: bits/libc-header-start.h: No such file or directory