• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >嵌入式开发 > OSX编译bochs报错[configure:error:Ccompilercannotcreateexecutables]

OSX编译bochs报错[configure:error:Ccompilercannotcreateexecutables]

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-05

佚名通过本文主要向大家介绍了OSX编译bochs报错[configure:error:Ccompilercannotcreateexecutables]等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:OS X编译bochs报错 [configure: error: C compiler cannot create executables]
描述:

根据这个链接做安装前的配置

sh .conf.macosx后出现以下信息
根据google到的信息,缺少command line tools,已经执行xcode-select --install并完成安装。

gcc版本不对? 缺乏库?

checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking target system type... x86_64-apple-darwin13.1.0
checking if you are configuring for another platform... no
checking for standard CFLAGS on this platform... -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/myName/Desktop/bochs-2.6':
configure: error: C compiler cannot create executables
See `config.log' for more details

不知如何提取config.log的有效信息,直接将文件挂在这里了


解决方案1:

brew安装gcc,设置环境变量CC为gcc试试。brew有多个gcc的版本可以选择,4.8,4.7,选择一个好了,如果还出错,继续贴log吧

解决方案2:

configure:3691: checking whether the C compiler works
configure:3713: gcc -arch i386 -m32 -pipe -O3 -I/sw/include -fomit-frame-pointer -finline-functions -falign-loops=16 -falign-jumps=16 -falign-functi -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -fprefetch-loop-arrays  -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh  -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -arch i386 -m32 -L/sw/lib conftest.c  >&5
clang: error: unknown argument: '-falign-loops=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-jumps=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-labels=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-loops-max-skip=15' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-jumps-max-skip=15' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
configure:3717: $? = 1
configure:3755: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3760: error: in `/Users/rahn/Desktop/bochs-2.6':
configure:3762: error: C compiler cannot create executables

你的 gcc 实际上是 clang。configure 脚本给了一个它不支持的参数过去。可能是版本的问题。你可以试试 CFLAGS='-Wunused-command-line-argument-hard-error-in-future' ./configure。

或者把 CC 设置成 clang 试试?

解决方案3:

我觉得是缺少一些以来库,但我无法给出具体是哪些东西。
根据检索,你可以先尝试安装:
brew install sdl
然后记得在你的编译目录里运行:
make distclean
再重新编译安装。

解决方案4:

试试这个:
CFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" ./configure ...
如果还是不行就试试:
CC='clang -Wno-error=unused-command-line-argument-hard-error-in-future' ./configure ...

不过话说回来,如果你要装bochs,最好用Homebrew,装好这个之后用brew install bochs就行了。


分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

相关文章

  • 2017-06-05 STM32接收字符串,数据中有00,应该如何处理?
  • 2017-06-05 老板给我一个s3c2416的板子,之后我该怎么进行下一步。
  • 2017-06-05 S5PV210在WINCE60下能不能做开机快速倒车?像Prima那样!
  • 2017-06-05 安装Xilinxise133ISO时,打开镜像文件中的xsetupexe时停止工作怎么回事?
  • 2017-06-05 wince可以用DeviceIoControl调oid吗?
  • 2017-06-05 quartusII怎样知道破解成功
  • 2017-06-17ARM存储系统机制
  • 2017-06-05 RC531调试CPU卡出现问题。
  • 2017-06-05 那里有DDKforwinxp下载??
  • 2017-06-05 获取windows操作系统的版本号--RTL_OSVERSIONINFOW在哪定义的

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • 无线打印服务器的设计?
    • 关于ARM单片机SPI_DMA传输的疑问
    • iperf205-S[TOS]报错
    • 哪位大神来帮我看看这个51单片机实现数字电压表的代码
    • 使ARM板上linux内核支持ppp,我应该如何做啊?
    • 关于IPMItool的编译问题
    • ads1292采集信号的单位转换问题
    • E203 SOC系统
    • !!!!开发嵌入式电子地图?????
    • 求助keil51无法读取到我的flash

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有