[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grid-engine-users
Subject:    Problem: run a clearcase make on SGE
From:       "T.J. Yang" <tj_yang () hotmail ! com>
Date:       2003-03-29 19:20:07
Message-ID: F47BbvOwUupVxzW0zvG00022dd8 () hotmail ! com
[Download RAW message or body]

Thanks for the helps in my previsous beginner Questions. my setup can
now qsub simple.sh worker.sh etc scripts. But the real goal is to
run clearcase build in SGE.

I have a test user and a test case for clearcase make.
I have no problem to run the clearmake as user y17438 by running
following 3 commands manually. The bulid will take 5 hours.

1. /usr/atria/bin/cleartool setview y17438_tt223_1_sol.view
2. cd /vobs/mz.pr/make.su/obj
3. /usr/atria/bin/clearmake -dOVv all

I am tring to follow the instructions about ClearCase howto here at
http://gridengine.sunsource.net/project/gridengine/howto/clearcase.html

it describe two methods for to achieve the goal
Methord 1. Using qrsh
Methord 2. Using qsub

I couldn't get either to work  !

Here are my detail informaton

Methord 1. Using qrsh
============================

y17438@tt2001> cat /cc_wrapper
#!/bin/sh
if [ x_$CLEARCASE_ROOT = x_ ]; then
     /bin/sh -c "$*"
else
# set the path to cleartool to the exact path for your site
     /usr/atria/bin/cleartool setview -exec "cd $SGE_O_WORKDIR;$*" \
         `basename $CLEARCASE_ROOT`
fi
y17438@tt2001> echo $QRSH_WRAPPER
/cc_wrapper
y17438@tt2001> cleartool pwv
Working directory view: y17438_tt223_1_sol.view
Set view: y17438_tt223_1_sol.view
y17438@tt2001> cd /vobs/mz.pr/make.su/obj
y17438@tt2001> ls -l Makefile
lrwxrwxrwx   1 ccase    tterms        16 Jul 24  1995 Makefile -> 
../make/Makefile
y17438@tt2001>
y17438@tt2001> qrsh -v CLEARCASE_ROOT -q tt2001.q date
MANPATH: Undefined variable
Sat Mar 29 13:02:03 CST 2003
y17438@tt2001>

y17438@tt2001> qrsh -v CLEARCASE_ROOT -q tt2001.q /usr/atria/bin/clearmake 
-dOVv all>
MANPATH: Undefined variable
>>>(cleaProcessing build options from:
/home/y17438/.clearmake.options

rmake): Processing description file "/home/y17438/.clearmake.options"
>>>(clearmake): Processing description file "/usr/atria/etc/builtin.mk"
>>>(clearmake): Processing description file "Makefile"
Processing description file "/vobs/mz.pr/make.su/templates/Make.define.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.eht.eh.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.eh.h.inc"
clearmake: Error: File "/vobs/mz.pr/make.su/templates/Make.define.inc", line 
58
Unable to open include file 
"/vobs/mz.pr/make.su/templates/Make..thirdparty.define.inc": No such file or 
directory
clearmake: Error: File "/vobs/mz.pr/make.su/templates/Make.define.inc", line 
59
Unable to open include file 
"/vobs/mz.pr/make.su/templates/Make..define.inc": No such file or directory
Processing description file "/vobs/mz.pr/make.su/templates/Make.t.q.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.C.o.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.cpp.o.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.c.o.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.c.m.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.e.o.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.e.m.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.t.g.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.t.ad.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.tcl.t.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.map.mp.inc"
Processing description file 
"/vobs/mz.pr/make.su/templates/Make.idl.cidl.inc"
Processing description file 
"/vobs/mz.pr/make.su/templates/Make.idl.jidl.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.idl.jdo.inc"
Processing description file 
"/vobs/mz.pr/make.su/templates/Make.java.class.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.edef.mk.inc"
Processing description file "/vobs/mz.pr/make.su/templates/Make.src.bh.inc"
clearmake: Error: Makefile Parser failed
clearmake: Error: Parser failed
y17438@tt2001>


Method 2: Using qsub
=====================

y17438@tt2001> cat submitcc.sh
#!/bin/sh
qsub -v CLEARCASE_ROOT -q tt2001.q -M tjyang@comm.mot.com -m b -m e 
/home/y17438/sgetest/ccc.sh
y17438@tt2001> cat ccc.sh
#! /bin/sh
#$ -S /bin/sh
set -x
if [ x_$CLEARCASE_ROOT = x_ ]; then
     /bin/sh -c "$*"
else
# set the path to cleartool to the exact path for your site
     /usr/atria/bin/cleartool setview -exec "cd $SGE_O_WORKDIR;$*" \
         `basename $CLEARCASE_ROOT`
fi

/usr/atria/bin/cleartool setview y17438_tt223_1_sol.view
cd /vobs/mz.pr/make.su/obj
/usr/atria/bin/clearmake -dOVv all
y17438@tt2001>
y17438@tt2001> sh submitcc.sh
your job 115 ("ccc.sh") has been submitted
y17438@tt2001> cat ~/*115
+ [ x_/view/y17438_tt223_1_sol.view = x_ ]
+ basename /view/y17438_tt223_1_sol.view
+ /usr/atria/bin/cleartool setview -exec cd /home/y17438/sgetest; 
y17438_tt223_1_sol.view
+ /usr/atria/bin/cleartool setview y17438_tt223_1_sol.view
+ cd /vobs/mz.pr/make.su/obj
/opt/sge/default/spool/tt2001/job_scripts/115: /vobs/mz.pr/make.su/obj: does 
not exist
y17438@tt2001>




_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic