gnu stubs arch linux,Linux 编译应用程序报错:fatal error: gnu/stubs-soft.h: No such file or directory...
自己编写Makefile编译应用程序报错如下:
wys@ubuntu:/mnt/hgfs/projects/bd3/zlg/lcd驱动$ make
make: Warning: File `Makefile' has modification time 6.5 s in the future
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -o spidev_test spidev_test.c -lpthread -static -mfloat-abi=soft
In file included from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:389:0,
from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdint.h:25,
from /opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/include/stdint.h:9,
from spidev_test.c:14:
/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
# include
^
compilation terminated.
make: *** [modules] Error 1
解决办法:
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
gnu stubs arch linux,Linux 编译应用程序报错:fatal error: gnu/stubs-soft.h: No such file or directory...相关推荐
- GDAL编译报错ogr_sfcgal.h:34:34:fatal error:SFCGAL/capi/sfcgal_c/h:No such file or directory
在Linux上编译GDAL,make时出现如下错误: ogr_sfcgal.h:34:34:致命错误:SFCGAL/capi/sfcgal_c/h:没有那个文件或目录 #include< ...
- dpdk编译安装igb_uio报错 insmod: ERROR: could not insert module igb_uio.ko: File exists 问题
前言 出错问题:insmod: ERROR: could not insert module igb_uio.ko: File exists 什么时候出现 insmod build/kmod/igb_ ...
- 问题记录:编译失败,报错Fatal error compiling
项目场景: 使用idea+maven编译项目失败. 问题描述 执行maven的compile,报错如下: Failed to execute goal org.apache.maven.plugins ...
- linux下编译make文件报错“/bin/bash^M: 坏的解释器,使用grep快速定位代码位置
一.linux下编译make文件报错"/bin/bash^M: 坏的解释器 参考文章:http://blog.csdn.net/liuqiyao_01/article/details/415 ...
- linux系统运行MapReduce程序报错:exitCode 127
linux系统运行MapReduce程序报错:exitCode 127 hadoop mapreduce 出现 /bin/bash: /bin/java: No such file or direct ...
- Linux执行tar解压报错tar: Error is not recoverable: exiting now
Linux操作系统下,下载完成xx.tar.gz文件然后执行tar -zxvf xx.tar.gz,执行出现如下错误: 3.4.10/src/java/test/org/apache/zookeepe ...
- linux下unzip解压报错“symlink error: File name too long”怎么办?提供解决方案。
点击上方↑↑↑蓝字[协议分析与还原]关注我们 " 分享unzip工具的一个bug." 最近在研究菠菜站,中间用到了Spidermonkey,碰到一些小波折,在这里分享出来,以便大家 ...
- 【Rust】Ubuntu编译Rust程序报错 failed to run custom build command for openssl-sys v0.9.39 的解决方法
Ubuntu环境下编译Rust程序报错: failed to run custom build command for openssl-sys v0.9.39 Ubuntu版本:20.04 参考Git ...
- Visual C++ 6.0安装后首次编译运行程序报错如何解决
Visual C++ 6.0安装后首次编译运行程序报错,出现下图情况: 出现这样的情况是因为头文件的路径与实际路径不符. 解决方案: 点击"Tools"--"Option ...
- 【错误记录】PyCharm 运行 Python 程序报错 ( PEP 8: W292 no newline at end of file )
文章目录 一.报错信息 二.解决方案 一.报错信息 PyCharm 运行 Python 程序报错 : PEP 8: W292 no newline at end of file 二.解决方案 在每个 ...
最新文章
- 关于seo优化的核心思想
- 利用服务器修改服务器数据,用Jquery实现可编辑表格并用AJAX提交到服务器修改数据...
- Apache Kylin权威指南1.3 Apache Kylin的工作原理
- Spring循环依赖的三种方式
- 新浪网产品设计指南(含UI规范)
- BZOJ2002[HNOI2010] 弹飞绵羊(分块)
- 【ICEPAK】手把手教你热仿真
- 如何安装python_如何安装Python?(第一节)
- 记一次固态硬盘数据恢复
- webform母版页
- Flink从入门到真香(12、Flink一大利器-时间窗口)
- itchat4j -- 用Java扩展个人微信号的能力
- NVIDIA GPU的浮点计算能力
- 2020年最好的机器人学仿真工具软件汇总
- python3-输入摄氏度转化为华氏度
- ASP.NET---八大子句
- 可解释的AI:深入深度学习黑匣子
- 单身不难,难的是对付千方百计让你摆脱单身的人
- CSS——此css非彼css
- libmodbus官方手册中文翻译