免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2201 | 回复: 4
打印 上一主题 下一主题

急:编译程序出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-27 09:52 |只看该作者 |倒序浏览
系统是suse10

使用suse自带的gcc(版本4.0.2),编译某个程序时,出现下面的错误

//tmp/ccn3Dvh7.s: Assembler messages:
/tmp/ccn3Dvh7.s:122: Error: no such instruction: `membar '
/tmp/ccn3Dvh7.s:123: Error: no such instruction: `ld [%fp],%g0'
/tmp/ccn3Dvh7.s:124: Error: no such instruction: `unimp 0x21'
/tmp/ccn3Dvh7.s:522: Error: no such instruction: `membar '
/tmp/ccn3Dvh7.s:523: Error: no such instruction: `ld [%fp],%g0'
/tmp/ccn3Dvh7.s:524: Error: no such instruction: `unimp 0x22'
/tmp/ccn3Dvh7.s:618: Error: no such instruction: `membar '
/tmp/ccn3Dvh7.s:619: Error: no such instruction: `ld [%fp],%g0'
/tmp/ccn3Dvh7.s:620: Error: no such instruction: `unimp 0x21'
/tmp/ccn3Dvh7.s:1138: Error: no such instruction: `unimp 0x100b'
/tmp/ccn3Dvh7.s:1146: Error: no such instruction: `unimp 0x1000'
/tmp/ccn3Dvh7.s:1147: Error: no such instruction: `membar '

请问各位朋友,这是什么原因啊?怎么解决?谢谢

[ 本帖最后由 killcih 于 2006-9-27 11:56 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-09-27 10:01 |只看该作者
完整的出错过程:
>make img_pro

Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
/usr/lib/gcc/i586-suse-linux/4.0.2/cc1 -quiet -v -I/home/psht/apps/utils/lib/include -DAUG src/img_pro.c -quiet -dumpbase img_pro.c -mtune=pentium -auxbase-strip obj/img_pr.o -version -o /tmp/ccn3Dvh7.s
#include "..." search starts here:
#include <...> search starts here:
/home/psht/apps/utils/lib/include
/usr/local/include
/usr/lib/gcc/i586-suse-linux/4.0.2/include
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/include
/usr/include
End of search list.
GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux) (i586-suse-linux)
        compiled by GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux).
GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=96979
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/as -V -Qy -o obj/quicksort.o /tmp/ccn3Dvh7.s
GNU assembler version 2.16.91.0.2 (i586-suse-linux) using BFD version 2.16.91.0.2 20050720 (SuSE Linux)
/tmp/ccn3Dvh7.s: Assembler messages:
/tmp/ccn3Dvh7.s:122: Error: no such instruction: `membar '
/tmp/ccn3Dvh7.s:123: Error: no such instruction: `ld [%fp],%g0'
/tmp/ccn3Dvh7.s:124: Error: no such instruction: `unimp 0x21'
/tmp/ccn3Dvh7.s:522: Error: no such instruction: `membar '
/tmp/ccn3Dvh7.s:523: Error: no such instruction: `ld [%fp],%g0'
/tmp/ccn3Dvh7.s:524: Error: no such instruction: `unimp 0x22'
/tmp/ccn3Dvh7.s:618: Error: no such instruction: `membar '
/tmp/ccn3Dvh7.s:619: Error: no such instruction: `ld [%fp],%g0'
/tmp/ccn3Dvh7.s:620: Error: no such instruction: `unimp 0x21'
/tmp/ccn3Dvh7.s:1138: Error: no such instruction: `unimp 0x100b'
/tmp/ccn3Dvh7.s:1146: Error: no such instruction: `unimp 0x1000'
/tmp/ccn3Dvh7.s:1147: Error: no such instruction: `membar '

论坛徽章:
0
3 [报告]
发表于 2006-09-27 13:29 |只看该作者
顶。。。

论坛徽章:
0
4 [报告]
发表于 2006-09-27 13:35 |只看该作者
.s是什么文件啊?

论坛徽章:
0
5 [报告]
发表于 2006-09-27 13:42 |只看该作者
汇编吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP