Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emergeing planeshift: emerge jam fails.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu May 01, 2003 12:55 pm    Post subject: emergeing planeshift: emerge jam fails. Reply with quote

subject sais it all. error message:

Code:


>>> Source unpacked.
/usr/sbin/ebuild.sh: line 639: ./compile.c: Permission denied
cp: cannot create regular file `/var/tmp/portage/jam-2.4/temp/edos2unix': Permission denied
/usr/sbin/ebuild.sh: line 639: ./filent.c: Permission denied
cp: cannot create regular file `/var/tmp/portage/jam-2.4/temp/edos2unix': Permission denied
/usr/sbin/ebuild.sh: line 639: ./mkjambase.c: Permission denied
cp: cannot create regular file `/var/tmp/portage/jam-2.4/temp/edos2unix': Permission denied


that goes on for about two or three pages, always permission denied errors. I _am_ root, and I _do_ have enough disk space in /var.

Then the compile starts, and I get this:

Code:

cc -o jam0 -w -march=athlon-mp -O3 -pipe -fomit-frame-pointer -ffast-math -msse -mfpmath=sse -falign-loops -falign-functions=4 -falign-jumps=4 -frerun-cse-after-loop -frerun-loop-opt builtins.c command.c compile.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c timestamp.c variable.c
in file included from jamgram.h:7,
                 from scan.c:11:
jam.h:475: redefinition of `struct globs'
In file included from jamgram.h:9,
                 from scan.c:11:
lists.h:43: redefinition of `LIST'
lists.h:43: `LIST' previously declared here
lists.h:45: redefinition of `struct _list'
lists.h:55: redefinition of `LOL'
lists.h:55: `LOL' previously declared here
lists.h:59: redefinition of `struct _lol'
In file included from jamgram.h:10,
                 from scan.c:11:
parse.h:15: redefinition of `PARSE'
parse.h:15: `PARSE' previously declared here
parse.h:17: redefinition of `struct _PARSE'
In file included from jamgramtab.h:7,
                 from scan.c:32:
jam.h:475: parse error before "struct"
In file included from jamgramtab.h:9,
                 from scan.c:32:
lists.h:43: redefinition of `LIST'
lists.h:43: `LIST' previously declared here
lists.h:45: redefinition of `struct _list'
lists.h:55: redefinition of `LOL'
lists.h:55: `LOL' previously declared here
lists.h:59: redefinition of `struct _lol'
In file included from jamgramtab.h:10,
                 from scan.c:32:
parse.h:15: redefinition of `PARSE'
parse.h:15: `PARSE' previously declared here
parse.h:17: redefinition of `struct _PARSE'
In file included from jamgramtab.h:14,
                 from scan.c:32:
rules.h:32: redefinition of `RULE'
rules.h:32: `RULE' previously declared here
rules.h:33: redefinition of `TARGET'
rules.h:33: `TARGET' previously declared here
rules.h:34: redefinition of `TARGETS'
rules.h:34: `TARGETS' previously declared here
rules.h:35: redefinition of `ACTION'
rules.h:35: `ACTION' previously declared here
rules.h:36: redefinition of `ACTIONS'
rules.h:36: `ACTIONS' previously declared here
rules.h:37: redefinition of `SETTINGS'
rules.h:37: `SETTINGS' previously declared here
rules.h:41: redefinition of `struct _rule'
rules.h:59: redefinition of `struct _actions'
rules.h:67: redefinition of `struct _action'
rules.h:77: redefinition of `struct _settings'
rules.h:85: redefinition of `struct _targets'
rules.h:93: redefinition of `struct _target'
In file included from scan.c:32:
jamgramtab.h:82: redefinition of `compile_append'
jamgram.h:82: `compile_append' previously defined here
jamgramtab.h:100: redefinition of `lcmp'
jamgram.h:100: `lcmp' previously defined here
jamgramtab.h:121: redefinition of `compile_eval'
jamgram.h:121: `compile_eval' previously defined here
jamgramtab.h:220: redefinition of `compile_foreach'
jamgram.h:220: `compile_foreach' previously defined here
jamgramtab.h:252: redefinition of `compile_if'
jamgram.h:252: `compile_if' previously defined here
jamgramtab.h:276: redefinition of `compile_include'
jamgram.h:276: `compile_include' previously defined here
jamgramtab.h:316: redefinition of `compile_list'
jamgram.h:316: `compile_list' previously defined here
jamgramtab.h:334: redefinition of `compile_local'
jamgram.h:334: `compile_local' previously defined here
jamgramtab.h:378: redefinition of `compile_null'
jamgram.h:378: `compile_null' previously defined here
jamgramtab.h:395: redefinition of `compile_on'
jamgram.h:395: `compile_on' previously defined here
jamgramtab.h:436: redefinition of `compile_rule'
jamgram.h:436: `compile_rule' previously defined here
jamgramtab.h:473: redefinition of `evaluate_rule'
jamgram.h:473: `evaluate_rule' previously defined here
jamgramtab.h:539: redefinition of `compile_rules'
jamgram.h:539: `compile_rules' previously defined here
jamgramtab.h:561: redefinition of `compile_set'
jamgram.h:561: `compile_set' previously defined here
jamgramtab.h:607: redefinition of `compile_setcomp'
jamgram.h:607: `compile_setcomp' previously defined here
jamgramtab.h:647: redefinition of `compile_setexec'
jamgram.h:647: `compile_setexec' previously defined here
jamgramtab.h:679: redefinition of `compile_settings'
jamgram.h:679: `compile_settings' previously defined here
jamgramtab.h:734: redefinition of `compile_switch'
jamgram.h:734: `compile_switch' previously defined here
jamgramtab.h:774: redefinition of `compile_while'
jamgram.h:774: `compile_while' previously defined here
jamgramtab.h:796: redefinition of `debug_compile'
jamgram.h:796: `debug_compile' previously defined here
scan.c:33: parse error before '{' token
scan.c: In function `yylex':
scan.c:245: `STRING' undeclared (first use in this function)
scan.c:245: (Each undeclared identifier is reported only once
scan.c:245: for each function it appears in.)
scan.c:342: `ARG' undeclared (first use in this function)
scan.c: In function `symdump':
scan.c:382: `ARG' undeclared (first use in this function)
scan.c:385: `STRING' undeclared (first use in this function)
make: *** [jam0] Error 1

!!! ERROR: dev-util/jam-2.4 failed.
!!! Function src_compile, Line 21, Exitcode 2
!!! (no error message)


hints&help greatly appreciated.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
mo-ca
Guru
Guru


Joined: 17 Feb 2003
Posts: 313
Location: Near Dresden, Germany

PostPosted: Thu May 01, 2003 2:51 pm    Post subject: Reply with quote

Quote:

hints&help greatly appreciated.


same for me, because im having exactly the same problem
Back to top
View user's profile Send private message
JC
n00b
n00b


Joined: 01 May 2003
Posts: 2

PostPosted: Thu May 01, 2003 7:36 pm    Post subject: Reply with quote

I had exactly the same problem.
I solved when a I deactivate distcc

Hope it help.
--
JC
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu May 01, 2003 11:58 pm    Post subject: Reply with quote

JC wrote:
I had exactly the same problem.
I solved when a I deactivate distcc

Hope it help.
--
JC


actually, removing "distcc" did not help, but removing "userpriv usersandbox" and just leaving "sandbox" in did help.

Is that enough for a bug report? I suspect the probe'lem lies somewhere between the ZIP file format and thae obscure "edos2unix" command.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Fri May 02, 2003 12:54 am    Post subject: Reply with quote

going on...

next, cel emerge fails because configure cannot find crystal space dir.

again, reducing FEATURES in make.conf to "sandbox" helps.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Fri May 02, 2003 2:18 am    Post subject: Reply with quote

just download the binaries for playing.
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Fri May 02, 2003 9:27 am    Post subject: Reply with quote

eNTi wrote:
just download the binaries for playing.


true, but as it's in portage, we want it to be buildable.
I hope this thread can help in finding bugs in the portage system, and a detailed report can be filed afterwards.

So if anyone has problems building , please report them here.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
mo-ca
Guru
Guru


Joined: 17 Feb 2003
Posts: 313
Location: Near Dresden, Germany

PostPosted: Fri May 02, 2003 11:31 am    Post subject: Reply with quote

thx for the hint with the flags

now its emerging rightly
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Fri May 02, 2003 12:10 pm    Post subject: Reply with quote

oh damnit. i've tried it too.

sources won't compile... some freaking cs-config problem (yes i've set CRYSTAL="/opt/crystal/bin") and binaries will give me a segfault, next to the fact, that the version number in the binaries is either wrong or 0.2.008 is the latest version avaliable in binary.
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Fri May 02, 2003 12:45 pm    Post subject: Reply with quote

next step:

edit the planeshift ebuild to include this:
Code:

./configure --prefix=${PLANESHIFT_PREFIX} --with-cs-prefix=${CRYSTAL_PREFIX} || die

instead of:
Code:
 ./configure --prefix=${PLANESHIFT_PREFIX} || die

compile starts, and fails.
It cannot find some include files, this is the output of the first target it wants to compile:

Code:

C++ src/common/engine/celbase.o
In file included from src/common/engine/celbase.cpp:28:
src/common/engine/celbase.h:26:19: pl/pl.h: No such file or directory
src/common/engine/celbase.h:27:19: bl/bl.h: No such file or directory
src/common/engine/celbase.h:28:23: pl/entity.h: No such file or directory
src/common/engine/celbase.h:29:25: pl/propfact.h: No such file or directory
src/common/engine/celbase.h:30:25: pl/propclas.h: No such file or directory
src/common/engine/celbase.h:31:24: pl/persist.h: No such file or directory
src/common/engine/celbase.h:32:21: pf/mesh.h: No such file or directory
src/common/engine/celbase.h:33:21: pf/mesh.h: No such file or directory
src/common/engine/celbase.h:34:24: pf/meshsel.h: No such file or directory
src/common/engine/celbase.h:35:20: pf/inv.h: No such file or directory
src/common/engine/celbase.h:36:22: pf/chars.h: No such file or directory
src/common/engine/celbase.h:37:21: pf/move.h: No such file or directory
src/common/engine/celbase.h:38:24: pf/tooltip.h: No such file or directory
src/common/engine/celbase.h:39:23: pf/camera.h: No such file or directory
src/common/engine/celbase.h:40:24: pf/gravity.h: No such file or directory
src/common/engine/celbase.h:41:22: pf/timer.h: No such file or directory
src/common/engine/celbase.h:42:23: pf/region.h: No such file or directory
src/common/engine/celbase.h:43:22: pf/input.h: No such file or directory



the command which causes this is:
Code:

g++  -c -o src/common/engine/celbase.o  -I/opt/crystal/include -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -fno-exceptions -mcpu=pentiumpro -march=i686 -I/usr/local/include  -O3 -fomit-frame-pointer -ffast-math  -I/opt/crystal/include -fexceptions   -Isrc/common/engine -I. -I./include -I./src/common -I./src/client -I./src/server  src/common/engine/celbase.cpp

Does anyone know which library provides those header files? I could not "locate" them on my system...
Are those probably parts of either CS or cel which don't get built/installed by the respective ebuilds?
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Fri May 02, 2003 1:04 pm    Post subject: FIXED!!! Reply with quote

reply to self:

ok, the files are there, right in /opt/crystal/*.h

I fixed it by going to /opt/crystal/include, creating the dirs pl,bl and pf, and doing a ln -s ../../*.h in each dir.

Code:


for d in {pf,pl,bf}; do cd /opt/crystal/include; mkdir $d; cd $d; ln -s ../../*.h .; done


this is very kludgy and unclean, but it makes planeshift compile, finally.

now for playing:
Code:

cd /opt/planeshift
CRYSTAL=/opt/crystal/ CEL=/opt/crystal/ ./psclient


I have added a reference to this thread in bug #20181
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
GuidoJ
Guru
Guru


Joined: 24 Dec 2002
Posts: 444
Location: Netherlands

PostPosted: Fri May 02, 2003 8:52 pm    Post subject: Re: FIXED!!! Reply with quote

nephros wrote:


ok, the files are there, right in /opt/crystal/*.h

I fixed it by going to /opt/crystal/include, creating the dirs pl,bl and pf, and doing a ln -s ../../*.h in each dir.



Actually it's quite obvious which *.h file should go where.
If it contains __CEL_BL_, move it to include/bl
If it contains __CEL_PF_, move it to include/pf
If it contains __CEL_PL_, move it to include/pl

BTW didn't you had switched to Gentoo as well, Peter. Are you still actively working on Arianne?
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sat May 03, 2003 2:56 am    Post subject: Re: FIXED!!! Reply with quote

GuidoJ wrote:
nephros wrote:


ok, the files are there, right in /opt/crystal/*.h

I fixed it by going to /opt/crystal/include, creating the dirs pl,bl and pf, and doing a ln -s ../../*.h in each dir.



Actually it's quite obvious which *.h file should go where.
If it contains __CEL_BL_, move it to include/bl
If it contains __CEL_PF_, move it to include/pf
If it contains __CEL_PL_, move it to include/pl

BTW didn't you had switched to Gentoo as well, Peter. Are you still actively working on Arianne?


heh. ok, several things to sort out here.

myself, I didnt do it that way, I symlinked (manually) only those .h files to the dirs the "jam" make process did complain about. Now aint I smart? Or stupid?
But as it's only symlinks, I figured some extra wouldn't hurt, and I was to lazy to list the detailed list.

Also, the problem stems (IMO) from a bug in the cel ebuild, and it is not my responsibility (or am I just too lazy?) to fix that here.

On switching to Gentoo: who wouldn't?

And in case someone is wondering, "Arianne" is a MMPORPG GuidoJ and I used to work on. See more of it at http://arianne.info
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
mo-ca
Guru
Guru


Joined: 17 Feb 2003
Posts: 313
Location: Near Dresden, Germany

PostPosted: Sat May 03, 2003 9:36 am    Post subject: Reply with quote

ok nice if its working for you, but for me it isnt at all.

the planeshift ebuild starts compiling and then there comes the error in:

checking for cs-config ... no

and if i look into my /opt/crystal directory, there isnt any file with _CEL_* in the name
Code:

dir
behave.h  data        gravity.h    mesh.h     propchg.h   scripts    vfs.cfg
bin       databhlp.h  include      meshsel.h  propclas.h  solid.h
bl.h      datatype.h  input.h      message.h  propfact.h  test.h
camera.h  docs        install.log  move.h     prop.h      timer.h
celtst    entity.h    inv.h        persist.h  region.h    tooltip.h
chars.h   facttmpl.h  lib          pl.h       scf.cfg     uninst

Back to top
View user's profile Send private message
GuidoJ
Guru
Guru


Joined: 24 Dec 2002
Posts: 444
Location: Netherlands

PostPosted: Sat May 03, 2003 5:00 pm    Post subject: Reply with quote

moca
try executing
Code:
grep _CEL_ *.h

in directory /opt/crystal
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sat May 03, 2003 5:35 pm    Post subject: Reply with quote

mo-ca wrote:
ok nice if its working for you, but for me it isnt at all.

the planeshift ebuild starts compiling and then there comes the error in:

checking for cs-config ... no


did you edit the planeshift ebuild to do this?

./configure --prefix=${PLANESHIFT_PREFIX} --with-cs-prefix=${CRYSTAL_PREFIX} || die

(note that emerge sync will overwrite all edited ebuilds, so better back them up or copy them to $PORTDIR_OVERLAY)
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum