[Clas_offline] testing svn/scons

Eugene Pasyuk pasyuk at jlab.org
Wed Sep 16 10:29:31 EDT 2009


Hi all,

I tried new software tools today on ifarm. Here are some first
impressions about this experience.

I followed prescription given on the Wiki:
http://clasweb.jlab.org/wiki/index.php/Building_CLAS_libraries_with_SCons_on_ifarm
It took 20 minutes get the entire source tree source from svn.
Then I tried to build. The very first attempt failed. I figured out that
the problem was in suggested environment setup file. I modified a couple
of lines in it (2 minutes to figure out and fix). After that I made a
second attempt to run scons. This time it worked. It took about 3
minutes to build all clas libraries and a just few executables by
default:

a1c      countbos  g12Anal  gsim_bat  tagraw    view-kaon  view-tag
bosdump  g12skim  skim      user_ana  view-st    view-tracks

Out of these only few (a1c, gsim_bat, countbos, bosdump, user_ana and
tagraw) are of interest to general CLAS user. The rest seem to be g12
specific.
After doing some archeology in sconstruct files for about a half an hour
and making some modifications to them here and there (I have zero
knowledge of scons or python at the moment) I managed to build a few
more utilities, particularly DC calibration tools trk_mon, trk_mon_lite
and dc3. I failed to build start counter calibration code. I was able to
build fdump. gflux would not build because of the compiler errors. I
wonder how g12 managed to build it in new build scheme from the source
in svn. ced would not build because of the compiler errors too.
TOF calibration source code is in svn, but it was not modified for scons
at all. It was imported as is from cvs with all Makefiles which will not
work because of the different tree structure. sc_mon is missing. As was
mentioned at the meeting ec timing calibration utilities are not
included as several other general purpose utilities. For some reason
gsim_int and gpp are not included. 

To summarize, I succeeded in building most of the libraries and a few
executables. Quite a few tools are missing (gsim_int, gpp, some
calibration tools). Some programs which  build fine with make would not
build with scons (gflux, ced ...?) I don't know if those executables I
built are working, I had not had a chance to test them yet. I have not
tried to build any of the event generators with scons.
By the way, there are only three of them in svn, while we have more in
cvs.

All in all, svn works just fine, apart from having different directory
structure. scons works for some pieces of the software and does not for
some
others. 
Perhaps it is not quite ready for the prime time yet. Some essential
utilities are not working yet in new build. 
  
 
-Eugene

 






More information about the Clas_offline mailing list