{"id":70,"date":"2007-08-25T12:12:00","date_gmt":"2007-08-25T19:12:00","guid":{"rendered":"http:\/\/sp2hari.com\/?p=70"},"modified":"2020-06-20T08:56:47","modified_gmt":"2020-06-20T08:56:47","slug":"my-tinderbox-is-working","status":"publish","type":"post","link":"https:\/\/sp2hari.com\/index.php\/2007\/08\/25\/my-tinderbox-is-working\/","title":{"rendered":"My Tinderbox is working&#8230;"},"content":{"rendered":"<div style=\"text-align: justify;\">Yes, you heard it right. My tinderbox is working. Even now i don&#8217;t know why i was trying to setup a tinderbox after both Emily and Nags asked me to concentrate on Firefox automation. I felt it was almost done and just few more steps, i will be able to set it up. And that&#8217;s what finally happened \ud83d\ude42<\/div>\n<p>So in this post, i am going to mention about all issues i faced in setting up a tinderbox and steps to fix them.<\/p>\n<div style=\"text-align: justify;\">Note :: If you are ever setting up a tinderbox, be prepared to see huge log files. Like once my compilation ran for few hours and produced a log file of size 15MB. And if you are stuck up, DON&#8217;T send the entire file. A tail of that file should do. In fact, you should be in a position to  find out from while line the exact error starts.<\/div>\n<p>Yeah before you start reading this<br \/>\n<a href=\"http:\/\/sp2hari.blogspot.com\/2007\/06\/conquered-solaris.html\">http:\/\/sp2hari.blogspot.com\/2007\/06\/conquered-solaris.html<\/a> and<br \/>\n<a href=\"http:\/\/sp2hari.blogspot.com\/2007\/06\/tinderbox.html\">http:\/\/sp2hari.blogspot.com\/2007\/06\/tinderbox.html<\/a>  has instructions about how to setup Tinderbox in Solaris environment.<\/p>\n<p>Ok the first error i got was<\/p>\n<div style=\"text-align: left;\"><span style=\"font-family:courier new;\">Building deps for jsinterp.c<\/span><br \/>\n<span style=\"font-family:courier new;\">cc -o jsinterp.o -c  -DOSTYPE=\\&#8221;SunOS5\\&#8221; -DOSARCH=SunOS -DEXPORT_JS_API  -DJS_USE_SAFE_ARENA   -I..\/..\/dist\/include   -I..\/..\/dist\/include\/js -I..\/..\/dist\/include\/nspr  -DMOZ_PNG_READ -DMOZ_PNG_WRITE  -I..\/..\/dist\/sdk\/include -I.    -KPIC  -xlibmil -xstrconst -xbuiltin=%all -mt  -DNDEBUG -DTRIMMED -xO4   -DMOZILLA_VERSION=\\&#8221;1.9a7pre\\&#8221; -DMOZILLA_VERSION_U=1.9a7pre -DSOLARIS=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UINT_T=1 -DHAVE_UINT16_T=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_BYTEORDER_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LIBSOCKET=1 -DFUNCPROTO=15 -DHAVE_XSHM=1 -D_REENTRANT=1 -DHAVE_RANDOM=1 -DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_FCHMOD=1 -DHAVE_SNPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_STAT64=1 -DHAVE_LSTAT64=1 -DHAVE_FLOCKFILE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_STRTOK_R=1 -DHAVE_LANGINFO_CODESET=1 -DVA_COPY=va_copy -DHAVE_VA_COPY=1 -DHAVE_I18N_LC_MESSAGES=1 -DMOZ_EMBEDDING_LEVEL_DEFAULT=1 -DMOZ_EMBEDDING_LEVEL_BASIC=1 -DMOZ_EMBEDDING_LEVEL_MINIMAL=1 -DMOZ_PHOENIX=1 -DMOZ_BUILD_APP=browser -DMOZ_XUL_APP=1 -DMOZ_DEFAULT_TOOLKIT=\\&#8221;cairo-gtk2\\&#8221; -DMOZ_WIDGET_GTK2=1 -DMOZ_ENABLE_XREMOTE=1 -DMOZ_THEBES=1 -DMOZ_CAIRO_GFX=1 -DMOZ_X11=1 -DMOZ_DISTRIBUTION_ID=\\&#8221;org.mozilla\\&#8221; -DMOZ_ENABLE_XFT=1 -DMOZ_ENABLE_PANGO=1 -DMOZ_ENABLE_COREXFONTS=1 -DMOZ_ENABLE_GNOMEUI=1 -DMOZ_EXTRA_X11CONVERTERS=1 -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1 -DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DMOZ_NO_XPCOM_OBSOLETE=1 -DMOZ_XTF=1 -DMOZ_MATHML=1 -DMOZ_ENABLE_CANVAS=1 -DMOZ_SVG=1 -DMOZ_SVG_FOREIGNOBJECT=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_PLACES=1 -DMOZ_PLACES_BOOKMARKS=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1 -DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\\&#8221;.mozilla\\&#8221; -DMOZ_ENABLE_LIBXUL=1 -DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_INT_TYPES_H=1 -DHAVE_UINT64_T=1 -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\\&#8221;.so\\&#8221; -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DMOZ_ACCESSIBILITY_ATK=1 -DATK_MAJOR_VERSION=1 -DATK_MINOR_VERSION=12 -DATK_REV_VERSION=3 -DMOZILLA_LOCALE_VERSION=\\&#8221;1.9a1\\&#8221; -DMOZILLA_REGION_VERSION=\\&#8221;1.9a1\\&#8221; -DMOZILLA_SKIN_VERSION=\\&#8221;1.8\\&#8221;  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT jsinterp.c<\/span><br \/>\n<span style=\"font-family:courier new;\">ube: error: Assert has been violated at &#8216;\/set\/venus\/builds.intel-S2\/nightly.Thu\/intel-S2\/lang\/ube\/graphs\/src\/scregion.c 305&#8217;.<\/span><br \/>\n<span style=\"font-family:courier new;\">cc: ube failed for jsinterp.c<\/span><br \/>\n<span style=\"font-family:courier new;\">gmake[4]: *** [jsinterp.o] Error 2<\/span><\/div>\n<div style=\"text-align: left;\">\n<div style=\"text-align: justify;\">Dave from Sun china asked me use a patch for Sun Studio 11 Compiler C. I don&#8217;t have the link to the patch now but the patch id is 121016-05. I remember getting it from the sun website. So searching there should give you the link. The above patch was dependent on patch 120759-06. So installed  patch 120759-06 first and then install the patch 121016-05.<\/div>\n<p>Steps to add a patch in Solaris are given below. The commands are for patch 121016-05. Change the id according to the patch you are installing.<\/p>\n<p>1. Download 121016-05.zip and extract the contents in your current directory<br \/>\n2. Login as root<br \/>\n3. <span style=\"font-family:courier new;\">root@home# patchadd 121016-05 <\/span><br \/>\nNote :: If the above command doesn&#8217;t work, then try <span style=\"font-family:courier new;\"><br \/>\nroot@home# patchadd . 121016-05<\/span><\/p>\n<div style=\"text-align: justify;\">The above steps should install the patch in your system. To check whether the patch is installed properly, check the folder \/var\/sadm\/patch\/. You should see seperate directories for each patch you have installed. In my system here, the \/var\/sdm\/patch is like<\/div>\n<div style=\"text-align: left; font-family: courier new;\"># cd \/var\/sadm\/patch\/<br \/>\n# ls<br \/>\n120759-06  121016-05<\/p>\n<\/div>\n<p>That fixed the above problem :).<\/p>\n<p>The next error i got was<\/p>\n<p><span style=\"font-family:courier new;\">jsinterp.c<\/span><br \/>\n<span style=\"font-family:courier new;\">ir2hf: error: Ran out of memory<\/span><br \/>\n<span style=\"font-family:courier new;\">cc: ir2hf failed for jsinterp.c<\/span><\/p>\n<\/div>\n<div style=\"text-align: justify;\">Now this is a strange problem and which can be fixed without much issue. You need more RAM. My system had 768MB (512+256) RAM, but you need 1GB RAM to fix this issue. So next day i got 1GB RAM and never got this error back.<\/div>\n<div style=\"text-align: justify;\">After that, i got many compilation errors. This happened because of some issue in the mozilla code. This generally never happens. I got errors in lines having inline. Anyway now i am not getting the error anymore. So i think the mozilla code is fixed now. \ud83d\ude42<\/div>\n<p>Finally i got an error saying,<\/p>\n<p><span style=\"font-family:courier new;\">gmake[3]: Leaving directory `\/export\/home\/hari\/tinderbox<\/span><\/p>\n<div style=\"font-family: courier new;\" id=\"mb_0\"><wbr>\/SunOS_5.11_Depend\/mozilla&#8217;<br \/>\ngmake[2]: Leaving directory `\/export\/home\/hari\/tinderbox<wbr>\/SunOS_5.11_Depend\/mozilla&#8217;<br \/>\nmake[1]: Leaving directory `\/export\/home\/hari\/tinderbox<wbr>\/SunOS_5.11_Depend\/mozilla&#8217;<br \/>\nfirefox-bin built successfully.<br \/>\nfirefox-bin built successfully.<br \/>\nfirefox-bin binary exists, build successful.<br \/>\nUnable to find path to Talkback client. Proceeding as if Talkback was not installed.<\/p>\n<p>Running regxpcom test &#8230;<br \/>\nTimeout = 120 seconds.<br \/>\nBegin: Fri Aug 24 08:08:37 2007<br \/>\ncmd = \/export\/home\/hari\/tinderbox<wbr>\/SunOS_5.11_Depend\/mozilla\/<wbr>\/dist\/bin\/firefox-bin -register<br \/>\nEnd:   Fri Aug 24 08:08:38 2007<br \/>\n&#8212;&#8212;&#8212;&#8211; Output from regxpcom &#8212;&#8212;&#8212;&#8212;-<br \/>\n&#8212;&#8212;&#8212;&#8211; End Output from regxpcom &#8212;&#8212;&#8212;<br \/>\nregxpcom: test failed<br \/>\nNo profile found, creating profile.<br \/>\nBegin: Fri Aug 24 08:08:38 2007<br \/>\ncmd = \/export\/home\/hari\/tinderbox<wbr>\/SunOS_5.11_Depend\/mozilla\/<wbr>\/dist\/bin\/firefox-bin -CreateProfile default<br \/>\nEnd:   Fri Aug 24 08:08:39 2007<br \/>\n&#8212;&#8212;&#8212;&#8211; Output from Profile Creation &#8212;&#8212;&#8212;&#8212;-<br \/>\nXlib: connection to &#8220;:0.0&#8221; refused by server<br \/>\nXlib: No protocol specified<\/p>\n<p>(firefox-bin:6432): Gtk-WARNING **: cannot open display:<br \/>\n&#8212;&#8212;&#8212;&#8211; End Output from Profile Creation &#8212;&#8212;&#8212;<br \/>\nERROR: profile \/export\/home\/hari\/tinderbox<wbr>\/SunOS_5.11_Depend\/.mozilla<wbr>\/firefox\/ does not exist<br \/>\nno pref file found<\/p>\n<\/div>\n<div style=\"text-align: justify;\">The solution for the above bug was to allow connections to X server. This is done by executing the following command before starting a tinderbox compilation. Remember the user who is running the tinderbox should execute the command.<\/div>\n<p><span style=\"font-family:courier new;\">hari@home:~$\/usr\/openwin\/bin\/xhost +<br \/>\naccess control disabled, clients can connect from any host<br \/>\n<\/span><br \/>\nFew other things to note while trying to compile firefox under tinderbox are<br \/>\n1. Never ever run two instances of tinderbox at the same time. Make sure the first one is killed before starting a new one.<br \/>\n2. Delete the <span style=\"font-family:courier new;\">SunOS_5.11_Depend <span style=\"font-family:georgia;\">folder when you are facing any compilation errors.<br \/>\n3. Use -XO3 for CFLAGS and CXXFLAGS<br \/>\n4. Make sure your mozconfig file has these lines<br \/>\n<span style=\"font-family:courier new;\">ac_add_options &#8211;disable-freetype2<\/span><br \/>\n<span style=\"font-family:courier new;\">ac_add_options &#8211;disable-debug<\/span><br \/>\n<span style=\"font-family:courier new;\">ac_add_options &#8211;disable-tests<\/span><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes, you heard it right. My tinderbox is working. Even now i don&#8217;t know why i was trying to setup a tinderbox after both Emily and Nags asked me to concentrate on Firefox automation. I felt it was almost done and just few more steps, i will be able to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-code"],"_links":{"self":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":2,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":1442,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/70\/revisions\/1442"}],"wp:attachment":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}