error compiling celtx

Developer tutorials and discussion forum

Moderators: Sharkey, David Shute, ntay

error compiling celtx

Postby graysky » Tue Feb 21, 2012 9:32 pm

I have the following dependencies installed per this page: gcc autoconf2.13 zip unzip yasm libidl2 python2. I am however getting compilation errors seemingly related to "bad jar rule head at: %LOCALE%.jar: at /scratch/celtx/celtx-2-9-1-src/mozilla/config/make-jars.pl line 613, <STDIN> line 4."

Any troubleshooting help is appreciated.

Code: Select all
$ cd src/mozilla
$ install mozconfig-nodebug-linux.in .mozconfig
$ PYTHON=python2 make -f client.mk build
...
/scratch/celtx/celtx-2-9-1-src/objdir/config/nsinstall -R -m 644 libnecko.a ../../staticlib/components
make[5]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir/netwerk/build'
make[5]: Entering directory `/scratch/celtx/celtx-2-9-1-src/objdir/netwerk/resources'
make[5]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir/netwerk/resources'
make[5]: Entering directory `/scratch/celtx/celtx-2-9-1-src/objdir/netwerk/locales'
bad jar rule head at: %LOCALE%.jar: at /scratch/celtx/celtx-2-9-1-src/mozilla/config/make-jars.pl line 613, <STDIN> line 4.
make[5]: *** [libs] Error 255
make[5]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir/netwerk/locales'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir/netwerk'
make[3]: *** [libs_tier_necko] Error 2
make[3]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir'
make[2]: *** [tier_necko] Error 2
make[2]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/scratch/celtx/celtx-2-9-1-src/objdir'
make: *** [build] Error 2


Complete build log is here.
Last edited by graysky on Sat Apr 21, 2012 10:02 am, edited 1 time in total.
graysky
 
Posts: 7
Joined: Tue Feb 21, 2012 9:23 pm

Re: error compiling celtx 2.9.1 on Arch linux

Postby Daniel » Mon Mar 19, 2012 9:26 pm

Not sure it's related, but it looks odd with the old version 2.9.1 in the path, while it should be v2.9.6 at this point?
Daniel
 
Posts: 316
Joined: Sat Jul 02, 2011 10:40 am

Re: error compiling celtx 2.9.1 on Arch linux

Postby graysky » Sun Apr 01, 2012 12:42 pm

Same error compiling the latest :(
graysky
 
Posts: 7
Joined: Tue Feb 21, 2012 9:23 pm

Re: error compiling celtx 2.9.1 on Arch linux

Postby graysky » Sat Apr 21, 2012 9:20 am

Actually the build error is different for 2.9.6:

Code: Select all
$ cd src/mozilla
$ install mozconfig-nodebug-linux.in .mozconfig
$ PYTHON=python2 make -f client.mk build
...

/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsBaseHashtable.h: In instantiation of ‘void nsBaseHashtable<KeyClass, DataType, UserDataType>::Remove(nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType) [with KeyClass = nsCStringHashKey; DataType = nsCString_external; UserDataType = nsCString_external; nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType = const nsACString&]’:
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCategoryCache.cpp:159:23:   required from here
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsBaseHashtable.h:159:31: error: ‘RemoveEntry’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsBaseHashtable.h:159:31: note: declarations in dependent base ‘nsTHashtable<nsBaseHashtableET<nsCStringHashKey, nsCString_external> >’ are not found by unqualified lookup
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsBaseHashtable.h:159:31: note: use ‘this->RemoveEntry’ instead
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCRTGlue.cpp: In function ‘PRUint32 NS_strlen(const PRUnichar*)’:
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCRTGlue.cpp:106:16: warning: conversion to ‘PRUint32 {aka unsigned int}’ from ‘long int’ may alter its value [-Wconversion]
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCRTGlue.cpp: In function ‘char* NS_strdup(const char*)’:
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCRTGlue.cpp:145:32: warning: conversion to ‘PRUint32 {aka unsigned int}’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
nsComponentManagerUtils.cpp
c++ -o nsComponentManagerUtils.o -c -I../../dist/include/system_wrappers -include /scratch/celtx/src/celtx-2-9-6-src/mozilla/config/gcc_hidden.h -DOSTYPE=\"Linux3.3\" -DOSARCH=Linux -DTARGET_XPCOM_ABI=\"x86_64-gcc3\" -I/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/../build  -I/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue -I. -I../../dist/include/string -I../../dist/include   -I../../dist/include/xpcom -I../../dist/include/nspr     -I../../dist/sdk/include    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions    -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsComponentManagerUtils.pp /scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsComponentManagerUtils.cpp
make[5]: *** [nsCategoryCache.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from /scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsStringGlue.h:52:0,
                 from /scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsVoidArray.h:43,
                 from /scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCOMArray.h:42,
                 from /scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsCOMArray.cpp:39:
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsStringAPI.h: In function ‘const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)’:
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsStringAPI.h:1272:49: warning: conversion to ‘PRUint32 {aka unsigned int}’ from ‘long int’ may alter its value [-Wconversion]
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsStringAPI.h: In function ‘const nsDependentCSubstring_external Substring(const char*, const char*)’:
/scratch/celtx/src/celtx-2-9-6-src/mozilla/xpcom/glue/nsStringAPI.h:1310:50: warning: conversion to ‘PRUint32 {aka unsigned int}’ from ‘long int’ may alter its value [-Wconversion]
make[5]: Leaving directory `/scratch/celtx/src/celtx-2-9-6-src/objdir/xpcom/glue'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/scratch/celtx/src/celtx-2-9-6-src/objdir/xpcom'
make[3]: *** [libs_tier_xpcom] Error 2
make[3]: Leaving directory `/scratch/celtx/src/celtx-2-9-6-src/objdir'
make[2]: *** [tier_xpcom] Error 2
make[2]: Leaving directory `/scratch/celtx/src/celtx-2-9-6-src/objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/scratch/celtx/src/celtx-2-9-6-src/objdir'
make: *** [build] Error 2


Any advice?

EDIT: I can confirm that this happens under Ubuntu 11.10 as well:
Code: Select all
$ sudo apt-get build-dep firefox
...
$ sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm uuid
...
$ cd src/mozilla
$ install mozconfig-nodebug-linux.in .mozconfig
$ PYTHON=python2 make -f client.mk build
...
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsStringAPI.h:1310:50: warning: conversion to ‘PRUint32 {aka unsigned int}’ from ‘long int’ may alter its value [-Wconversion]
nsEnumeratorUtils.cpp
c++ -o nsEnumeratorUtils.o -c -I../../dist/include/system_wrappers -include /tmp/m/celtx-2-9-6-src/mozilla/config/gcc_hidden.h -DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -DTARGET_XPCOM_ABI=\"x86_64-gcc3\" -I/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/../build  -I/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue -I. -I../../dist/include/string -I../../dist/include   -I../../dist/include/xpcom -I../../dist/include/nspr     -I../../dist/sdk/include    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions    -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsEnumeratorUtils.pp /tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsEnumeratorUtils.cpp
nsID.cpp
c++ -o nsID.o -c -I../../dist/include/system_wrappers -include /tmp/m/celtx-2-9-6-src/mozilla/config/gcc_hidden.h -DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -DTARGET_XPCOM_ABI=\"x86_64-gcc3\" -I/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/../build  -I/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue -I. -I../../dist/include/string -I../../dist/include   -I../../dist/include/xpcom -I../../dist/include/nspr     -I../../dist/sdk/include    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions    -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsID.pp /tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsEnumeratorUtils.cpp:114:27: error: uninitialized const ‘EmptyEnumeratorImpl::kInstance’ [-fpermissive]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsEnumeratorUtils.cpp:50:7: note: ‘const class EmptyEnumeratorImpl’ has no user-provided default constructor
make[5]: *** [nsEnumeratorUtils.o] Error 1
nsIInterfaceRequestorUtils.cpp
make[5]: *** Waiting for unfinished jobs....
c++ -o nsIInterfaceRequestorUtils.o -c -I../../dist/include/system_wrappers -include /tmp/m/celtx-2-9-6-src/mozilla/config/gcc_hidden.h -DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -DTARGET_XPCOM_ABI=\"x86_64-gcc3\" -I/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/../build  -I/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue -I. -I../../dist/include/string -I../../dist/include   -I../../dist/include/xpcom -I../../dist/include/nspr     -I../../dist/sdk/include    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions    -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsIInterfaceRequestorUtils.pp /tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsIInterfaceRequestorUtils.cpp
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp: In member function ‘PRBool nsID::Parse(const char*)’:
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:105:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:105:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:105:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:105:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:107:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:107:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:107:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:107:3: warning: conversion to ‘PRUint16 {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:111:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:111:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:111:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:111:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:114:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:114:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:114:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
/tmp/m/celtx-2-9-6-src/mozilla/xpcom/glue/nsID.cpp:114:5: warning: conversion to ‘PRUint8 {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
make[5]: Leaving directory `/tmp/m/celtx-2-9-6-src/objdir/xpcom/glue'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/tmp/m/celtx-2-9-6-src/objdir/xpcom'
make[3]: *** [libs_tier_xpcom] Error 2
make[3]: Leaving directory `/tmp/m/celtx-2-9-6-src/objdir'
make[2]: *** [tier_xpcom] Error 2
make[2]: Leaving directory `/tmp/m/celtx-2-9-6-src/objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/m/celtx-2-9-6-src/objdir'
make: *** [build] Error 2
graysky
 
Posts: 7
Joined: Tue Feb 21, 2012 9:23 pm

Re: error compiling celtx 2.9.1 on Arch linux

Postby Daniel » Sat Apr 21, 2012 9:40 am

v2.9.7 is out but I doubt that is the issue.

Googling the error hinted that the version of gcc/g++ might have an impact? If you have 4.7 you could try 4.6.
Daniel
 
Posts: 316
Joined: Sat Jul 02, 2011 10:40 am

Re: error compiling celtx 2.9.1 on Arch linux

Postby graysky » Sat Apr 21, 2012 9:45 am

Daniel wrote:v2.9.7 is out but I doubt that is the issue.

Googling the error hinted that the version of gcc/g++ might have an impact? If you have 4.7 you could try 4.6.


Ubuntu does not use 4.7 and gives the same error :(
graysky
 
Posts: 7
Joined: Tue Feb 21, 2012 9:23 pm

Re: error compiling celtx 2.9.1 on Arch linux

Postby Daniel » Sat Apr 21, 2012 9:46 am

4.4 then? :wink: (grasping for the needle in the haystack)

Sorry I can't help you out, I haven't build Celtx from source.
Daniel
 
Posts: 316
Joined: Sat Jul 02, 2011 10:40 am

Re: error compiling celtx

Postby graysky » Sat Apr 21, 2012 10:05 am

After carefully reading through the output, I saw:

Code: Select all
...
creating celtx/components/build/Makefile
can't read /scratch/celtx/celtx-2-9-7-src/mozilla/celtx/components/build/Makefile.in: No such file or directory
creating celtx/components/public/Makefile
...


Is this a harmless error or the cause of my problem?
graysky
 
Posts: 7
Joined: Tue Feb 21, 2012 9:23 pm


Return to Modifying Celtx

Who is online

Users browsing this forum: No registered users and 1 guest