编译iceweasel(firefox) 17.0.1 完成

直接拉debian的sid的源码包, 发现里面已经包含mips 龙芯加速补丁,  应该是mozilla接收了这个补丁,  因为在debian的patch里面没有找到.

不幸的是编译过程出现这个错误:

  adding: hyphenation/hyph_ca.dic (deflated 61%)
  adding: hyphenation/hyph_it.dic (deflated 55%)
  adding: update.locale (stored 0%)
<jemalloc>Compile-time page size does not divide the runtime one.
Redirecting call to abort() to mozalloc_abort

Segmentation fault
make[2]: *** [install] 错误 139

参考https://bugzilla.redhat.com/show_bug.cgi?id=852698 做了2个补丁, 见附件.

编译正在进行, 希望能过.

2012-11-09 编译没有通过。

关闭jemalloc也不能通过, 用gdb 看 core文件现场如下:

Core was generated by `/home/src/iceweasel/iceweasel-16.0.2/build-xulrunner/dist/bin/xpcshell -g /home'.
Program terminated with signal 11, Segmentation fault.
#0  0x2c781080 in js::gc::InitMemorySubsystem () at /home/src/iceweasel/iceweasel-16.0.2/js/src/gc/Memory.cpp:306
306            MOZ_CRASH();
(gdb) list
301   
302    void
303    InitMemorySubsystem()
304    {
305        if (size_t(sysconf(_SC_PAGESIZE)) != PageSize)
306            MOZ_CRASH();
307    }
308   
309    void *
310    MapAlignedPages(size_t size, size_t alignment)
(gdb) bt
#0  0x2c781080 in js::gc::InitMemorySubsystem () at /home/src/iceweasel/iceweasel-16.0.2/js/src/gc/Memory.cpp:306
#1  0x2c57ab50 in JS_Init (maxbytes=33554432) at /home/src/iceweasel/iceweasel-16.0.2/js/src/jsapi.cpp:1004
#2  0x2ba27e70 in XPCJSRuntime::XPCJSRuntime (this=0x2ee06810, aXPConnect=<optimized out>) at /home/src/iceweasel/iceweasel-16.0.2/js/xpconnect/src/XPCJSRuntime.cpp:2060
#3  0x2ba29c00 in XPCJSRuntime::newXPCJSRuntime (aXPConnect=<optimized out>) at /home/src/iceweasel/iceweasel-16.0.2/js/xpconnect/src/XPCJSRuntime.cpp:2140
#4  0x2ba02b88 in nsXPConnect::nsXPConnect (this=<optimized out>) at /home/src/iceweasel/iceweasel-16.0.2/js/xpconnect/src/nsXPConnect.cpp:84
#5  0x2ba02c68 in nsXPConnect::GetXPConnect () at /home/src/iceweasel/iceweasel-16.0.2/js/xpconnect/src/nsXPConnect.cpp:144
#6  0x2b370018 in nsContentUtils::Init () at /home/src/iceweasel/iceweasel-16.0.2/content/base/src/nsContentUtils.cpp:342
#7  0x2b12d5fc in nsLayoutStatics::Initialize () at /home/src/iceweasel/iceweasel-16.0.2/layout/build/nsLayoutStatics.cpp:137
#8  0x2b12b828 in Initialize () at /home/src/iceweasel/iceweasel-16.0.2/layout/build/nsLayoutModule.cpp:340
#9  0x2bf52cc4 in nsComponentManagerImpl::KnownModule::Load (this=0x4679d0) at /home/src/iceweasel/iceweasel-16.0.2/xpcom/components/nsComponentManager.cpp:699
#10 0x2bf52e88 in nsFactoryEntry::GetFactory (this=0x467a10) at /home/src/iceweasel/iceweasel-16.0.2/xpcom/components/nsComponentManager.cpp:1701
#11 0x2bf54c78 in CreateInstanceByContractID (aResult=0x7fd052a4, aIID=..., aDelegate=0x0, aContractID=<optimized out>, this=0x443118)
    at /home/src/iceweasel/iceweasel-16.0.2/xpcom/components/nsComponentManager.cpp:1027
#12 nsComponentManagerImpl::CreateInstanceByContractID (this=0x443118, aContractID=<optimized out>, aDelegate=0x0, aIID=..., aResult=0x7fd052a4)
    at /home/src/iceweasel/iceweasel-16.0.2/xpcom/components/nsComponentManager.cpp:980
#13 0x2bf55cc8 in GetServiceByContractID (result=0x7fd05358, aIID=..., aContractID=0x416628 "@mozilla.org/js/xpc/RuntimeService;1", this=0x443118)
    at /home/src/iceweasel/iceweasel-16.0.2/xpcom/components/nsComponentManager.cpp:1433
#14 nsComponentManagerImpl::GetServiceByContractID (this=0x443118, aContractID=0x416628 "@mozilla.org/js/xpc/RuntimeService;1", aIID=..., result=0x7fd05358)
    at /home/src/iceweasel/iceweasel-16.0.2/xpcom/components/nsComponentManager.cpp:1345
#15 0x00408adc in CallGetService (aContractID=0x416628 "@mozilla.org/js/xpc/RuntimeService;1", aIID=..., aResult=<optimized out>)
    at /home/src/iceweasel/iceweasel-16.0.2/xpcom/glue/nsComponentManagerUtils.cpp:37
#16 0x00408ffc in nsGetServiceByContractID::operator() (this=<optimized out>, aIID=..., aInstancePtr=0x7fd05358) at /home/src/iceweasel/iceweasel-16.0.2/xpcom/glue/nsComponentManagerUtils.cpp:246
#17 0x00408034 in nsCOMPtr_base::assign_from_gs_contractid (this=0x7fd053b8, gs=..., iid=...) at /home/src/iceweasel/iceweasel-16.0.2/xpcom/glue/nsCOMPtr.cpp:92
#18 0x00403b34 in nsCOMPtr (gs=..., this=0x7fd053b8) at ../../../dist/include/nsCOMPtr.h:586
#19 main (argc=5, argv=0x7fd055a4, envp=0x7fd055bc) at /home/src/iceweasel/iceweasel-16.0.2/js/xpconnect/shell/xpcshell.cpp:1766

 

2012-12-07 对上面的错误进行研究, 做了一个补丁, 经过几天的编译反复测试, 最终iceweasel17.0.1版本编译成功。

需要下面附件2个补丁。

IMG_20121209_002104-204128846.jpg
附件大小
1.patch517 字节
fix_loongson_PageSize.patch451 字节