You are not logged in.
Adopted the celtx package and am trying to get it to build but am running into build errors are that frankly over my head. Suggestions are welcomed.
$ cd celtx-2-9-7-src/mozilla
$ cp mozconfig-nodebug-linux.in .mozconfig
$ PYTHON=python2 make -f client.mk build
...
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
...
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsStringAPI.h: In function ‘const nsDependentCSubstring_external Substring(const char*, const char*)’:
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsStringAPI.h:1310:50: warning: conversion to ‘PRUint32 {aka unsigned int}’ from ‘long int’ may alter its value [-Wconversion]
nsCOMArray.cpp
c++ -o nsCOMArray.o -c -I../../dist/include/system_wrappers -include /scratch/celtx/celtx-2-9-7-src/mozilla/config/gcc_hidden.h -DOSTYPE=\"Linux3.3\" -DOSARCH=Linux -DTARGET_XPCOM_ABI=\"x86_64-gcc3\" -I/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/../build -I/scratch/celtx/celtx-2-9-7-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/nsCOMArray.pp /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCOMArray.cpp
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.cpp: In member function ‘virtual nsrefcnt nsCategoryObserver::Release()’:
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.cpp:104:1: warning: deleting object of polymorphic class type ‘nsCategoryObserver’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
In file included from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsDataHashtable.h:42:0,
from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.h:49,
from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.cpp:43:
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h: In instantiation of ‘PRBool nsBaseHashtable<KeyClass, DataType, UserDataType>::Put(nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType, UserDataType) [with KeyClass = nsCStringHashKey; DataType = nsCString_external; UserDataType = nsCString_external; PRBool = int; nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType = const nsACString&]’:
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.cpp:82:44: required from here
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:145:35: error: ‘PutEntry’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:145:35: note: declarations in dependent base ‘nsTHashtable<nsBaseHashtableET<nsCStringHashKey, nsCString_external> >’ are not found by unqualified lookup
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:145:35: note: use ‘this->PutEntry’ instead
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h: In instantiation of ‘PRBool nsBaseHashtable<KeyClass, DataType, UserDataType>::Get(nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType, UserDataType*) const [with KeyClass = nsCStringHashKey; DataType = nsCString_external; UserDataType = nsCString_external; PRBool = int; nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType = const nsACString&]’:
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.cpp:158:28: required from here
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:126:35: error: ‘GetEntry’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:126:35: note: declarations in dependent base ‘nsTHashtable<nsBaseHashtableET<nsCStringHashKey, nsCString_external> >’ are not found by unqualified lookup
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:126:35: note: use ‘this->GetEntry’ instead
/scratch/celtx/celtx-2-9-7-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/celtx-2-9-7-src/mozilla/xpcom/glue/nsCategoryCache.cpp:159:23: required from here
/scratch/celtx/celtx-2-9-7-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/celtx-2-9-7-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/celtx-2-9-7-src/mozilla/xpcom/glue/nsBaseHashtable.h:159:31: note: use ‘this->RemoveEntry’ instead
make[5]: *** [nsCategoryCache.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsStringGlue.h:52:0,
from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsVoidArray.h:43,
from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCOMArray.h:42,
from /scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsCOMArray.cpp:39:
/scratch/celtx/celtx-2-9-7-src/mozilla/xpcom/glue/nsStringAPI.h: In function ‘const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)’:
/scratch/celtx/celtx-2-9-7-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/celtx-2-9-7-src/mozilla/xpcom/glue/nsStringAPI.h: In function ‘const nsDependentCSubstring_external Substring(const char*, const char*)’:
/scratch/celtx/celtx-2-9-7-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/celtx-2-9-7-src/objdir/xpcom/glue'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/scratch/celtx/celtx-2-9-7-src/objdir/xpcom'
make[3]: *** [libs_tier_xpcom] Error 2
make[3]: Leaving directory `/scratch/celtx/celtx-2-9-7-src/objdir'
make[2]: *** [tier_xpcom] Error 2
make[2]: Leaving directory `/scratch/celtx/celtx-2-9-7-src/objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/scratch/celtx/celtx-2-9-7-src/objdir'
make: *** [build] Error 2
Is that can't read /scratch/celtx/celtx-2-9-7-src/mozilla/celtx/components/build/Makefile.in: No such file or directory line to blame for this or is that just a harmless error? I will say that makepkg will not attempt the build; I have to execute these steps manually presumably due to this error.
Here is the complete build log.
Last edited by graysky (2012-04-21 10:07:25)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
make[5]: *** Waiting for unfinished jobs....
Maybe you need to disable SMP: options=(!makeflags)
Offline
Thanks for the suggestion. Added it but I still get the same stop point and errors
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
maybe this helps:
http://gcc.gnu.org/gcc-4.7/porting_to.html
(in case you are using g++ 4.7)
temporary workaround would be using the -fpermissive compiler flag
Offline
@sipik - thanks for that link! I added the following to the PKGBUILD and got much further in the make step.
Now it errors out like so:
$ makepkg -s
...
creating celtx/components/build/Makefile
can't read /scratch/celtx/src/celtx-2-9-7-src/mozilla/celtx/components/build/Makefile.in: No such file or directory
creating celtx/components/public/Makefile
...
creating pr/src/pthreads/Makefile
configure: warning: Recreating autoconf.mk with updated nspr-config output
make[1]: Leaving directory `/scratch/celtx/src/celtx-2-9-7-src/mozilla'
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline