龙芯开源社区

 找回密码
 注册新用户(newuser)
查看: 5914|回复: 10

Firefox-4.0 龙芯支持补丁。

  [复制链接]
发表于 2011-5-7 16:33:07 | 显示全部楼层 |阅读模式
  由于Firefox 4.0使用了新的JS引擎,所以4.0的firefox默认是无法在包括龙芯在内的MIPS指令系统上进行编译的,为此提供附件中的补丁,该补丁小范围发布试用了一段时间未发现问题,特发布出来与大家共享,欢迎有兴趣的朋友们进行尝试。

  补丁使用方法:
    1、下载后解压补丁:
    gunzip firefox-4.0-loongson-1.patch.gz
    2、进入firefox-4.0的源代码目录中应用该补丁即可:
    patch -Np1 -i <patch>/firefox-4.0-loongson-1.patch
    (<patch>代表补丁存放目录)
    3、进行编译Firefox 4.0。

  有什么问题可以和我联系,感谢支持。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册新用户(newuser)

x
发表于 2011-5-7 20:31:36 | 显示全部楼层
o32?n32?n64?
还是都支持?
发表于 2011-5-7 22:42:06 | 显示全部楼层
又见到版主发贴了,上来就是好东西,赞!!
发表于 2011-5-8 13:56:14 | 显示全部楼层
Gentoo O32 编译不行啊。包名是 xulrunner 2.0.1 。
打补丁是 portage 解压缩完毕源代码手动 ^Z 后打上,之后 fg 继续。貌似 Gentoo 自己的补丁没有报错,是不是 Gentoo 的某个配置的问题?
我用了 Distcc ,所以请忽略 distcc 的远程编译错误提示。
  1. mipsel-unknown-linux-gnu-g++ -o ExecutableAllocatorPosix.o -c  -fvisibility=hidden -DOSTYPE=\"Linux2.6.38\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -DJS_HAS_CTYPES -DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -Ictypes/libffi/include -I.  -I. -I. -I./../../dist/include -I./../../dist/include/nsprpub  -I/usr/include/nspr   -I. -I./assembler -I./yarr  -fPIC  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -march=loongson2f -mabi=32 -pipe -mplt -Wa,-mfix-loongson2f-nop -Wno-return-type -w -fno-strict-aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1   -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/ExecutableAllocatorPosix.pp ./assembler/jit/ExecutableAllocatorPosix.cpp
  2. distcc[26240] ERROR: compile ./assembler/jit/ExecutableAllocatorPosix.cpp on 192.168.0.102,cpp,lzo failed
  3. distcc[26240] (dcc_build_somewhere) Warning: remote compilation of './assembler/jit/ExecutableAllocatorPosix.cpp' failed, retrying locally
  4. distcc[26240] Warning: failed to distribute ./assembler/jit/ExecutableAllocatorPosix.cpp to 192.168.0.102,cpp,lzo, running locally instead
  5. In file included from ./assembler/jit/ExecutableAllocatorPosix.cpp:26:0:
  6. ./assembler/jit/ExecutableAllocator.h:395:6: error: #error "The cacheFlush support is missing on this platform."
  7. distcc[26240] ERROR: compile ./assembler/jit/ExecutableAllocatorPosix.cpp on localhost failed
  8. make[3]: *** [ExecutableAllocatorPosix.o] Error 1
  9. make[3]: *** Waiting for unfinished jobs....
  10. make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0.1/work/mozilla-2.0/js/src'
  11. make[2]: *** [libs_tier_js] Error 2
  12. make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0.1/work/mozilla-2.0'
  13. make[1]: *** [tier_js] Error 2
  14. make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0.1/work/mozilla-2.0'
  15. make: *** [default] Error 2
  16. emake failed
  17. * ERROR: net-libs/xulrunner-2.0.1 failed (compile phase):
  18. *   emake failed
  19. *
  20. * Call stack:
  21. *     ebuild.sh, line   56:  Called src_compile
  22. *   environment, line 5958:  Called _eapi2_src_compile
  23. *     ebuild.sh, line  665:  Called die
  24. * The specific snippet of code:
  25. *              emake || die "emake failed"
  26. *
  27. * If you need support, post the output of 'emerge --info =net-libs/xulrunner-2.0.1',
  28. * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-2.0.1'.
  29. * The complete build log is located at '/var/tmp/portage/net-libs/xulrunner-2.0.1/temp/build.log'.
  30. * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-2.0.1/temp/environment'.
  31. * S: '/var/tmp/portage/net-libs/xulrunner-2.0.1/work/mozilla-2.0'

  32. >>> Failed to emerge net-libs/xulrunner-2.0.1, Log file:

  33. >>>  '/var/tmp/portage/net-libs/xulrunner-2.0.1/temp/build.log'

  34. * Messages for package net-libs/xulrunner-2.0.1:

  35. * ERROR: net-libs/xulrunner-2.0.1 failed (compile phase):
  36. *   emake failed
  37. *
  38. * Call stack:
  39. *     ebuild.sh, line   56:  Called src_compile
  40. *   environment, line 5958:  Called _eapi2_src_compile
  41. *     ebuild.sh, line  665:  Called die
  42. * The specific snippet of code:
  43. *              emake || die "emake failed"
  44. *
  45. * If you need support, post the output of 'emerge --info =net-libs/xulrunner-2.0.1',
  46. * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-2.0.1'.
  47. * The complete build log is located at '/var/tmp/portage/net-libs/xulrunner-2.0.1/temp/build.log'.
  48. * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-2.0.1/temp/environment'.
  49. * S: '/var/tmp/portage/net-libs/xulrunner-2.0.1/work/mozilla-2.0'
  50. __________Shutting down distcc-pump include server
  51. Loongson2F ~ #
复制代码
发表于 2011-5-8 13:59:37 | 显示全部楼层
忘了说了,gcc 4.6.0
发表于 2011-5-8 14:50:34 | 显示全部楼层
难道是 Gentoo 盖掉了 CFLAGS ?
发表于 2011-5-8 14:53:04 | 显示全部楼层
LZ真牛
发表于 2011-5-8 15:06:58 | 显示全部楼层
加了 CFLAGS 的 -DWTF_CPU_MIPS 还是不行……
发表于 2011-5-11 13:34:28 | 显示全部楼层
支持,
能提交到firefox官方吗?
发表于 2011-5-13 16:24:50 | 显示全部楼层
支持

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-3-22 06:29 , Processed in 0.208553 second(s), 19 queries .

快速回复 返回顶部 返回列表