For building 1.9.2 branch, you need to add CXXFLAGS=-features=tmplrefstatic
These patches are required or recommended:
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/firefox3-09-compiler-workaround.diff
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/firefox3-10-compiler-workaround-2.diff
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/firefox3-11-compiler-workaround-3.diff
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/firefox3-23-nspr_use_zone_allocator.diff
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/firefox3-25-jslock.diff

The last one is to resolve the issue you just met.

You do not need to patch Assembler.cpp for 1.9.2 branch.

Regards,

Ginn

On May 27, 2010, at 2:41 AM, Hillel Lubman wrote:

> The issue happened to be with conflicting /usr/gnu/bin/freetype-config and 
> /usr/bin/freetype-config so giving /usr/bin preference in PATH solved this.
> 
> But now mozilla compilation breaks as follows:
> 
> Building deps for /opt/build/mozilla/js/src/jslock.cpp using Sun Studio CC
> CC -o jslock.o -c -xldscope=hidden -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS 
> -DEXPORT_JS_API  -DJS_USE_SAFE_ARENA  -I/opt/build/mozilla/js/src -I. 
> -I./../../dist/include -I./../../dist/include/nsprpub  
> -I/opt/build/mozilla/mozilla-obj/dist/include/nspr   
> -I/opt/build/mozilla/js/src    -KPIC  -I/usr/include  -xlibmieee 
> -xbuiltin=%all -features=tmplife -norunpath -mt  -DNDEBUG -DTRIMMED -xO4  
> -I/usr/include  -DMOZILLA_CLIENT -D_JS_CONFDEFS_H_ -DSOLARIS=1 
> -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DFEATURE_NANOJIT=1 
> -DJS_TRACER=1 -DAVMPLUS_IA32=1 -DAVMPLUS_UNIX=1 -DSTDC_HEADERS=1 
> -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DJS_HAVE_STDINT_H=1 
> -DJS_BYTES_PER_WORD=4 -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YNTAX=1 
> -DHAVE_CPP_PARTIAL_SPECIALIZATION=1 -DHAVE_CPP_ACCESS_CHANGING_USING=1 
> -DHAVE_CPP_AMBIGUITY_RESOLVING_USING=1 -DHAVE_CPP_NAMESPACE_STD=1 
> -DHAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL=1 -DHAVE_CPP_NEW_CASTS=1 
> -DHAVE_CPP_DYNAMIC_CAST_TO_VOI!
 D_
> PTR=1 -DNEED_CPP_UNUSED_IMPLEMENTATIONS=1 -DHAVE_I18N_LC_MESSAGES=1 
> -DSIZEOF_INT_P=4 -DMOZ_MEMORY_SIZEOF_PTR_2POW=2 -DMOZ_MEMORY=1 
> -DMOZ_MEMORY_SOLARIS=1 -DCPP_THROW_NEW=throw\(\) -DEDITLINE=1 
> -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 
> -DHAVE_SETLOCALE=1  /opt/build/mozilla/js/src/jslock.cpp
> "/opt/build/mozilla/js/src/jsgc.h", line 344: Warning: next hides 
> JSBackgroundTask::next.
> "/opt/build/mozilla/js/src/jsscope.h", line 493: Warning: ops hides 
> JSObjectMap::ops.
> 2 Warning(s) detected.
> 
> assertion failed in function global_register_allocation() @ gra.c:2199
> assert(RegIteration < 200)
> 
> gmake[4]: *** [jslock.o] Error 154
> 
> There are two patches on 
> https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Solaris_Prerequisites
>  but the second patch is for different source revision of 
> src/nanojit/Assembler.cpp (the source is for the current Mozilla 1.9.2 from 
> ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2/source/xulrunner-1.9.2.source.tar.bz2
>  )
> 
> Does anyone have an up to date patch for it?
> 
> Thanks.
> -- 
> This message posted from opensolaris.org
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss@opensolaris.org

_______________________________________________
desktop-discuss mailing list
desktop-discuss@opensolaris.org

Reply via email to