Re: compiling brat/brop/brag in RH7.1 pii computers

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Wed Oct 17 2001 - 07:51:06 EDT

  • Next message: Jens Ivar Jordre: "Temporary script for TPM2 instrumented row change"

    Hi Hiro, 
    
    On Wed, 17 Oct 2001 05:58:59 -0500 (CDT)
    Hironori Ito <hito@students.phsx.ukans.edu> wrote
    concerning "compiling brat/brop/brag in RH7.1 pii computers":
    > 	Hello.  I finally checked if I can compile brat/brop/brag on
    > RH7.1 pii machines.  And, the answer is "yes".  Here is what it can be
    > done.
    > 
    > 1.  BRAT/BROP
    >   CC=egcs CXX=egcs++ ./configure
    > 
    > This should creates the binary programs which runs on RH6.2 or RH7.1
    > 
    > 2.  BRAG
    >   CC=egcs  ./configure --with-cern-libdir=/home/cern/2000/lib
    > --with-cern-bindir=/home/cern/2000/bin
    
    Just like above, but since Red Hat (sigh) does not ship a egcs77, you
    need to use /usr/bin/i386-glibc21-linux-g77.  That is 
    
      F77=/usr/bin/i386-glibc21-linux-g77 ./configure ... 
    
    > This will create the binary program which sadly only runs on RH7.1 . (Any
    > suggestions???)  But, this should not be a big problem since BRAG can be 
    > compiled within a couple minutes unlike BRAT, which takes forever.  
    > Therefore, just compile brag if it does not work. 
    
    One of the reasons why BRAT takes a long time (ca. 1/2 hour) is that
    we use optimisation now, which wasn't done in BRAT 1.  This can be
    turned off with configure option --disable-optimization. 
    
    Another reason is the automatic dependency generation done by
    automake.  This is so that make can figure out which files to
    recompile in case of changes to BRAT/ROOT/system headers - i.e., a
    Good Thing.  This can be disables with by putting no-dependencies in
    the AUTOMAKE_OPTIONS variable of the toplevel Makefile.am - NOTE: this
    is not recommended! 
    
    Thirdly, there are a number of redundant and/or unused classes in BRAT
    that prolongs the build time considerably, not least because of the
    two above points. 
    > 
    > 	Now, I do not know the situations for the other programs out there
    > (brahvo, badtrip, tpc3d, etc...), but since all programs are based on
    > root (and brat), I assume that they should work.
    
    They should be configured like done above, that is, with 
    
      CC=egcs CXX=egcs++ F77=/usr/bin/i386-glibc21-linux-g77 ./configure ...
    
    > 	Hiro
    > 
    > NOTE:  I was not able to compile brat without using the above method
    > on the RH7.1 pii machines.  Probably, I am using wrong root for
    > RH7.1 since I have no trouble compiling at home using RH7.1. 
    
    If you have a ROOT that's compiled with 'Red Hat GCC 2.96', and you
    try to link BRAT build with GCC 2.91 against these libraries, you may
    find some trouble.  In general one should try to compile all stuff
    (especially C++ code) with the same compiler.   That said, it's
    usually not a problem, but since ROOT uses many features (streches
    into almost every corner of 'phase-space') you may see some problems. 
    
    BTW, do you know if there are RPMs of GCC 2.95.3 out there?  If so, it
    may be a good idea to install those too, since 2.95.3 is rather stable
    compiler - and in fact never than 'GCC 2.96'. 
    
    Just out of intrest, are you using the RPMs I made some time ago? 
    
    BTW, I jsut remembered we have some old ROOT installs lying around on
    /afs/rhic/opt/brahms.  I'll remove these, since ROOT 3.02 is now in
    the production tree, and these old ROOTs should not be used (see one
    of my answers to Hiro some weeks ago). If you object to this, SCREAM
    now, and tell me your reasons - they better be good, REALLY GOOD,
    otherwise I'm going to delete the stuff tomorrow (CET). 
    
    Yours, 
    
    Christian Holm Christensen -------------------------------------------
    Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
             DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
             Denmark                             Office: (+45) 353  25 305 
    Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm
    



    This archive was generated by hypermail 2b30 : Wed Oct 17 2001 - 07:51:35 EDT