You are not logged in.

#1 2012-04-21 10:00:47

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,417
Website

PKGBUILD for celtx from source/error compiling

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 packagesZsh and other configs

Offline

#2 2012-04-23 05:50:14

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PKGBUILD for celtx from source/error compiling

make[5]: *** Waiting for unfinished jobs....

Maybe you need to disable SMP: options=(!makeflags)

Offline

#3 2012-04-23 09:13:56

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,417
Website

Re: PKGBUILD for celtx from source/error compiling

Thanks for the suggestion.  Added it but I still get the same stop point and errors sad


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-04-24 08:28:13

sipik
Member
Registered: 2011-05-16
Posts: 23

Re: PKGBUILD for celtx from source/error compiling

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

#5 2012-04-24 20:28:14

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,417
Website

Re: PKGBUILD for celtx from source/error compiling

@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 packagesZsh and other configs

Offline

Board footer

Powered by FluxBB