[Clas_offline] clas x64 builds

Johann Goetz jgoetz at ucla.edu
Thu Jul 30 15:31:45 EDT 2009


Hi Professor Eugenio,
I fixed this in the build_system. debug=yes works fine but it might be
better to do:

scons build=debug

This will build everything with the debug flag set and put it into a
directory "build_debug". Then you will not overwrite the build=standard
build you had already done.

The idea here is that you have your path set to the install (prefix/bin)
location ($HOME/local/bin/clas6 say) Then you can do:

> scons build=debug install
> a1c    <-- debug version
> scons build=standard install
> a1c    <-- standard version

because install will place a1c in the same location. And scons is smart
enough to know that all that has to be done is to copy over the
executables (and associated libraries) since they are already built. One
can also do build=opt for the optimization flag to be set.
-Johann.

On Thu, 2009-07-30 at 11:31 -0400, Paul Eugenio wrote:
> Hi Johann,
> 
> 
> I found that "scons debug=yes" would set the debug flag for the gcc
> and g++ but not for gfortran.   My quick fix was to modify clas.py to
> add the "-g" with other fortran flags.   I am not committing this as
> it would make debug permanent for gfortran.    I guess that you can
> easily fix the debug=yes for fortran too.
> 
> 
> 
> 
> 
> 
> Paul
> 
> 
> 
> 
> 
> On Jul 30, 2009, at 10:23 AM, Dennis Weygand wrote:
> 
> > 
> > Can someone tell Paul how to build with debug flags,
> > Paul: then run the code without and fault handlers, and let's see
> > where it's crashing...
> > Dennis
> > 
> > 
> > Begin forwarded message:
> > 
> > > From: Paul Eugenio <eugenio at fsu.edu>
> > > Date: July 30, 2009 10:18:20 AM EDT
> > > To: clas_offline at jlab.org
> > > Subject: [Clas_offline] clas  x64 builds
> > > 
> > > 
> > > Dear Folks,
> > > 
> > > 
> > > Has anyone been successful in building clas software in native
> > > x64  
> > > mode?   I have successfully built clas programs on a x64 system
> > > in  
> > > 32bit compatible mode, and from my discussion with a few other
> > > folks,  
> > > this has been the only work around.   I have heard that the
> > > problem  
> > > lies in cernlibs.   My hep colleagues are successful in building
> > > x64  
> > > legacy cernlib-type code, and they are surprised by the claim that
> > > we  
> > > cannot.
> > > 
> > > Please let me know if you have any insight into this.
> > > 
> > > 
> > > BTW, I have built a native x64 version of a1c, but it seems to
> > > fail in  
> > > the initialization sage just after TAGM and before STGeom_W.
> > > 
> > > **********************
> > > submit 150% build/bin/a1c -D0xd101c -T4 -sa -ct1930 -cm0 -cp0 -X2
> > > -d1 - 
> > > F -P0x3ffff -Aprlink_g12_1930.bos -oxxx.bos ~/clas_056516.A33
> > > ....
> > > Target Z -90.000000
> > > WARNING, no beam position available in the database, take  
> > > value=0.0000000.000000-90.000000 for run 56000 instead
> > > Beam offset (x,y) 0.000000  0.000000
> > > TAGM: Initializing with run number 56516
> > > TAGM: Reading file
> > > "/panfs/storage.local/genacc/home/eugenio/parms/ 
> > > tagE-boundaries_ALL.dat":tableE=4.60 GeV
> > > TAGM: Reading file
> > > "/panfs/storage.local/genacc/home/eugenio/parms/ 
> > > tagT-boundaries_ALL.dat":tableE=5.56 GeV
> > > TAGM: Reading file
> > > "/panfs/storage.local/genacc/home/eugenio/parms/ 
> > > tagETcoinc_ALL.dat":tableE=5.56 GeV
> > > TAGM: Initialization complete.
> > > signalSEGV: Caught signal 11 count: 0
> > > Run: 56516 Event 16021857
> > > signalSEGV: Caught signal 11 count: 1
> > > Run: 56516 Event 16021857
> > > signalSEGV: Caught signal 11 count: 2
> > > Run: 56516 Event 16021857
> > > Exit on:56516 16021857
> > > # of events: 1
> > > # of events written: 0
> > > total current 0.000000 microcoulombs
> > > submit 151%
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Paul Eugenio
> > > 
> > > 
> > > 
> > > --
> > > Prof. Paul Eugenio
> > > Florida State University
> > > Department of Physics
> > > Tallahassee, Florida,  USA 32306
> > > 
> > > (850) 644-2585
> > > eugenio at fsu.edu
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Clas_offline mailing list
> > > Clas_offline at jlab.org
> > > https://mailman.jlab.org/mailman/listinfo/clas_offline
> > > 
> > 
> > --
> > Dennis Weygand
> > weygand at jlab.org
> > (757) 269-5926
> > 
> > 
> > 
> > 
> > 
> > 
> 
> --
> Prof. Paul Eugenio
> Florida State University
> Department of Physics
> Tallahassee, Florida,  USA 32306
> 
> 
> (850) 644-2585
> eugenio at fsu.edu
> 
> 
> 
> 
> 
> 



More information about the Clas_offline mailing list