免费注册 查看新帖 |

Chinaunix

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

solaris10 x86下编译JavaScript的问题请教!!谢谢 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-22 09:20 |只看该作者 |倒序浏览
大家好!\r\n    最近要用到libjs*的库,准备在solaris10 x86下编译JS\r\n      结果,在solaris10 x86下编译的时候,运行make -f Makefile.ref 发现它的src/config下面没有针对solaris10 x86的*.mk,因为我的系统下按装的编译器为gcc,所以就cp Linux_all.mk SunOS5.10_i86pc 然后再来编译,结果在as lock_SunOS.o……的时候出现错误\r\n   之后,又把config里面的SunOS5.9 cp 了一份命名为SunOS5.10_i86pc 进行编译 还是在\r\n   as lock_SunOS.o……的时候出现错误\r\n\r\n如果大家有编译JS的经历,请提示我一些解决方法!非常感谢你的阅读和回帖!!\r\n\r\n贴出error提示:\r\nusr/ccs/bin/as -o SunOS5.8_i86pc_DBG.OBJ/lock_SunOS.o -P -L -K PIC -D_ASM -D__STDC__=0 lock_SunOS.s \r\nAssembler: \r\n\"lock_SunOS.s\", line 1 : Syntax error \r\n\"lock_SunOS.s\", line 2 : Syntax error \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 2 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 3 : Syntax error \r\n\"lock_SunOS.s\", line 3 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 3 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 3 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 3 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 3 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 3 : Syntax error \r\n\"lock_SunOS.s\", line 3 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 4 : Syntax error \r\n\"lock_SunOS.s\", line 4 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 5 : Syntax error \r\n\"lock_SunOS.s\", line 5 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 5 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 5 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 6 : Syntax error \r\n\"lock_SunOS.s\", line 7 : Syntax error \r\n\"lock_SunOS.s\", line 7 : Illegal mnemonic \r\n\"lock_SunOS.s\", line 7 : Illegal mnemonic \r\nToo many errors - Goodbye \r\nmake[1]: *** [SunOS5.10_i86pc_DBG.OBJ/lock_SunOS.o] Error 127 \r\nmake[1]: Leaving directory `/export/home/tools/js/src/\' \r\nmake: *** [all] Error 2\n\n[ 本帖最后由 lssapple 于 2006-11-22 13:46 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-11-22 13:27 |只看该作者
这个已经装了的\r\n\r\n同时我在solaris10 sparc上编译的时候 也是把SunOS5.9拷贝了一份命名为SunOS5.10\r\n然后再运行make -f Makefile.ref \r\n结果可以编译成功\r\n\r\n我想可能是x86的一些特性所致吧......\n\n[ 本帖最后由 lssapple 于 2006-11-22 13:29 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2006-11-22 14:21 |只看该作者
重新装一个for 86的再看看如何.

论坛徽章:
0
4 [报告]
发表于 2006-11-24 13:34 |只看该作者
原来装的就是最新的for x86的JDK \r\n\r\n可是我觉得它们之间应该没有关系吧。。。。。。。。。。。

论坛徽章:
0
5 [报告]
发表于 2006-11-27 16:25 |只看该作者
昨天实在找不到答案 就把lock_Sun.s删掉了\r\n结果编译没有问题,但是比起solaris10-sparc和linuxFC3就少生成2个库文件\r\n不过用小代码测试了一下 不影响js库的使用\r\n\r\n所以,如果有朋友遇到类似我的问题,可以如法炮制~~\r\n如果有解决方案更好,大家一起讨论!^_^
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP