自己编写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...相关推荐

  1. 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< ...

  2. 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_ ...

  3. 问题记录:编译失败,报错Fatal error compiling

    项目场景: 使用idea+maven编译项目失败. 问题描述 执行maven的compile,报错如下: Failed to execute goal org.apache.maven.plugins ...

  4. linux下编译make文件报错“/bin/bash^M: 坏的解释器,使用grep快速定位代码位置

    一.linux下编译make文件报错"/bin/bash^M: 坏的解释器 参考文章:http://blog.csdn.net/liuqiyao_01/article/details/415 ...

  5. linux系统运行MapReduce程序报错:exitCode 127

    linux系统运行MapReduce程序报错:exitCode 127 hadoop mapreduce 出现 /bin/bash: /bin/java: No such file or direct ...

  6. 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 ...

  7. linux下unzip解压报错“symlink error: File name too long”怎么办?提供解决方案。

    点击上方↑↑↑蓝字[协议分析与还原]关注我们 " 分享unzip工具的一个bug." 最近在研究菠菜站,中间用到了Spidermonkey,碰到一些小波折,在这里分享出来,以便大家 ...

  8. 【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 ...

  9. Visual C++ 6.0安装后首次编译运行程序报错如何解决

    Visual C++ 6.0安装后首次编译运行程序报错,出现下图情况: 出现这样的情况是因为头文件的路径与实际路径不符. 解决方案: 点击"Tools"--"Option ...

  10. 【错误记录】PyCharm 运行 Python 程序报错 ( PEP 8: W292 no newline at end of file )

    文章目录 一.报错信息 二.解决方案 一.报错信息 PyCharm 运行 Python 程序报错 : PEP 8: W292 no newline at end of file 二.解决方案 在每个 ...

最新文章

  1. 关于seo优化的核心思想
  2. 利用服务器修改服务器数据,用Jquery实现可编辑表格并用AJAX提交到服务器修改数据...
  3. Apache Kylin权威指南1.3 Apache Kylin的工作原理
  4. Spring循环依赖的三种方式
  5. 新浪网产品设计指南(含UI规范)
  6. BZOJ2002[HNOI2010] 弹飞绵羊(分块)
  7. 【ICEPAK】手把手教你热仿真
  8. 如何安装python_如何安装Python?(第一节)
  9. 记一次固态硬盘数据恢复
  10. webform母版页
  11. Flink从入门到真香(12、Flink一大利器-时间窗口)
  12. itchat4j -- 用Java扩展个人微信号的能力
  13. NVIDIA GPU的浮点计算能力
  14. 2020年最好的机器人学仿真工具软件汇总
  15. python3-输入摄氏度转化为华氏度
  16. ASP.NET---八大子句
  17. 可解释的AI:深入深度学习黑匣子
  18. 单身不难,难的是对付千方百计让你摆脱单身的人
  19. CSS——此css非彼css
  20. libmodbus官方手册中文翻译

热门文章

  1. 服务器03系统 关wmi,win10系统WMI服务器怎么关闭
  2. 考研数学常见的不等式及其证明
  3. 天然产物数据库综述:2020年从哪里找天然产物数据
  4. Chrome 小恐龙
  5. CTFshow crypto wp
  6. win10系统VirtualBox虚拟机安装
  7. 小程序的转发分享功能
  8. PDM中BOM管理技术的研究及其应用
  9. 最小割集stoer_wagner算法
  10. 如何将虚拟机上的文件复制到主机上