安装多个版本gcc又卸载一个后,gcc -g选项编译出错:/tmp/cctQ99Ig.s: Assembler messages, ld returned 2 exit status
2016-01-19 13:47
381 查看
TP-X200:~$ gcc -g -o abc abc.c
/tmp/cctQ99Ig.s: Assembler messages:
/tmp/cctQ99Ig.s:155: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:164: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:185: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:194: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:443: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:451: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:454: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:457: Error: junk at end of line, first unrecognized character is `i'
工具键冲突,解决方法:把/usr/local/bin里相关的工具删除或改名,如:
sudo mv /usr/local/bin/as /usr/local/bin/as.bak
sudo mv /usr/local/bin/ld /usr/local/bin/ld.bak
/tmp/cctQ99Ig.s: Assembler messages:
/tmp/cctQ99Ig.s:155: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:164: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:185: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:194: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:443: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:451: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:454: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:457: Error: junk at end of line, first unrecognized character is `i'
工具键冲突,解决方法:把/usr/local/bin里相关的工具删除或改名,如:
sudo mv /usr/local/bin/as /usr/local/bin/as.bak
sudo mv /usr/local/bin/ld /usr/local/bin/ld.bak
相关文章推荐
- Androidx学习笔记(4)-- 事件处理的四种写法(点击事件为例)
- mysql ignore 去重复
- javaEE之------Spring-----》 AspectJ注解
- Selenium - CSS Selector
- ListView使用技巧
- c++日期类的实现级运算符的重载
- JavaScript DOM 三
- 简单随机验证码
- 最适合和最不适合新手使用的几款Linux发行版
- 天津Uber优步司机奖励政策(1月18日~1月24日)
- 【Linux】之shell特殊变量整理
- Eclipse配置PyDev插件
- 一个APK中包含多个dex方法
- 提交表单时,固定jsp页面<select>标签下option的值不刷新
- 用纯C语言实现快速排序,分递归调用法和非递归调用法。
- spark之基础学习篇:load文件 — WordCount
- 数据结构(C语言):链表,约瑟夫问题
- 南京Uber优步司机奖励政策(1月18日~1月24日)
- 5110显示数据时第一个是正常,后面几位都出现乱码的问题
- 自定义android RadioButton View,添加较为灵活的布局处理方式