fatal error: 'gnu/stubs-soft.h' file not found
2018-04-04 15:38
701 查看
转载地址:https://blog.csdn.net/yellow_hill/article/details/51525821这个编译宏的意思是, __VFP_FP__ which merely indicates presence of VFP unit 表示当前硬件能否支持。VFP是ARM某些芯片的浮点运算模块,不是所有的都有。报错往往是找不到硬件定义,[plain] view plain copyclang -mfpu=vfp -mfloat-abi=hard test.c
In file included from test.c:1:
In file included from /usr/include/stdio.h:27:
In file included from /usr/include/features.h:399:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found
# include <gnu/stubs-soft.h>
^
1 error generated.
或者[plain] view plain copy: No such file or directory
# include <gnu/stubs-hard.h>
cc has a builtin define to denote hard abi when in use, e.g. when using -mfloat-abi=hard it will define __ARM_PCS_VFP to 1 and therefore we should check that to determine which calling convention is in use and not __VFP_FP__ which merely indicates presence of VFP unit
这些其实是在编译选项里面设定的,如果你傻傻的去找 __ARM_PCS_VFP那就很惨了,你会完全没有头绪。其实只需要修改编译参数,-mfloat-abi=hard 或者 -mfloat-abi=soft
In file included from test.c:1:
In file included from /usr/include/stdio.h:27:
In file included from /usr/include/features.h:399:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found
# include <gnu/stubs-soft.h>
^
1 error generated.
或者[plain] view plain copy: No such file or directory
# include <gnu/stubs-hard.h>
cc has a builtin define to denote hard abi when in use, e.g. when using -mfloat-abi=hard it will define __ARM_PCS_VFP to 1 and therefore we should check that to determine which calling convention is in use and not __VFP_FP__ which merely indicates presence of VFP unit
这些其实是在编译选项里面设定的,如果你傻傻的去找 __ARM_PCS_VFP那就很惨了,你会完全没有头绪。其实只需要修改编译参数,-mfloat-abi=hard 或者 -mfloat-abi=soft
2 -mfpu=neon
ARM cotext9 这个模块是可选的,那么如果编译的时候使能了这个选项,会造成运行的时候指令错误的提示。相关文章推荐
- fatal error: gnu/stubs-soft.h: No such file or directory
- fatal error: 'openssl/err.h' file not found
- fatal error: 'libxml/xmlversion.h' file not found
- fatal error: 'HIToolbox/HIToolbox.h' file not found #import <HIToolbox/HIToolbox.h>
- gcc编译报错,fatal error: gnu/stubs-soft.h: No such file or directory问题解决!!
- Delphi7 [Fatal Error] ClassPas.pas(8): File not found: 'DesignIntf.dcu'
- fatal error: 'TargetConditionals.h' file not found
- eclipse编译出现fatal error: gnu/stubs.h: No such file or directory解决方法
- Mac OS X 10.10 编译代码出错 fatal error: '__debug' file not found #include <__debug>
- Linux 编译应用程序报错:fatal error: gnu/stubs-soft.h: No such file or directory
- 解决fatal error: 'ffi.h' file not found
- 安装PIL 点滴 fatal error: 'freetype/fterrors.h' file not found
- CentOS中配置LNMP环境打开提示File not found
- linux学习笔记5 解决eclipse 之“launch failed. Binary file not found.”
- SPSite site = new SPSite(url); 连接site的时候遇到"FileNotFoundException" 异常的解决方法
- C# wcf 注册window服务 报System.IO.FileNotFoundException: 未能加载文件或程序集“file:///C:\Windows\system32\***
- 64位linux下编译32位程序的错误“error: gnu/stubs-32.h: No such file or directory”
- keytool错误: java.io.FileNotFoundException:
- ReactNative--坑--'React/RCTBridgeModule.h' file not found
- 解决 MySQL manager or server PID file could not be found! 的方法