Re: Pythia6 problem on Mac OS X Tiger

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 21 Dec 2005 17:34:30 +0100 (MET)


Mario,

Look at http://root.cern.ch/root/Install.html and section "Pythia generator:
Take the tar file pythia6.tar.gz. It contains all the necessary files to compile on all machines.

Rene Brun

On
Wed, 21 Dec 2005, Mario
Kadastik wrote:

> Hello,
>
> I compiled root and pythia6 on my Mac. All seemed to work fine until I tried
> compiling my pythia code which contains references to pythia6. This is what I
> see:
>
> The pythia6 library preparation goes nicely:
> maku:~/Downloads/pythia6 toruonu$ sh makePythia6.macosx
> pythia6319.f: In block-data unit `pydata':
> pythia6319.f:315: warning:
> COMMON/PYDAT3/MDCY(500,3),MDME(8000,2),BRAT(8000),KFDP(8000,5)
> ^
> Initialization of large (294000-unit) aggregate area `pydat3' at (^) slow and
> takes lots of memory during g77 compile
> pythia6319.f:322: warning:
> COMMON/PYINT2/ISET(500),KFPR(500,2),COEF(500,20),ICOL(40,4,2)
> ^
> Initialization of large (87280-unit) aggregate area `pyint2' at (^) slow and
> takes lots of memory during g77 compile
> pythia6319.f:334: warning:
> COMMON/PYBINS/IHIST(4),INDX(1000),BIN(20000)
> ^
> Initialization of large (164016-unit) aggregate area `pybins' at (^) slow and
> takes lots of memory during g77 compile
> Driving: g77 -v -Zbundle -Zflat_namespace -o libPythia6.so main.o
> tpythia6_called_from_cc.o pythia6319.o pythia6_common_address.o -lfrtbegin
> -lg2c -shared-libgcc
> Reading specs from /usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4/specs
> Configured with: ../gcc/configure --enable-threads=posix
> --enable-languages=f77
> Thread model: posix
> gcc version 3.4.4
> /usr/local/libexec/gcc/powerpc-apple-darwin7.9.0/3.4.4/collect2 -arch ppc
> -dynamic -bundle -flat_namespace -o libPythia6.so -lbundle1.o
> -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4
> -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4/../../.. main.o
> tpythia6_called_from_cc.o pythia6319.o pythia6_common_address.o -lfrtbegin
> -lg2c -lgcc_s -lgcc -lSystem |
> c++filt
> ar: creating archive libPythia6.a
> a - main.o
> a - tpythia6_called_from_cc.o
> a - pythia6319.o
> a - pythia6_common_address.o
>
> so the libraries are created. However if I now try to compile my program:
> g++ `root-config --cflags --libs --glibs` -lPythia6 -lEG -lEGPythia6 -o
> higgsanal higgsanal.C
> /usr/bin/ld: Undefined symbols:
> _tpythia6_close_fortran_file
> _tpythia6_open_fortran_file
> collect2: ld returned 1 exit status
>
> what could be the problem??? I'm not that fluent in MacOS so if it's just
> some stupid thing I have to do with the library or is there something more?
> The libPythia* files are in ROOTSYS/lib directory.
>
> And when I run the code interactively:
> maku:~/pythia toruonu$ root -l
> root [0] .x higgsanal.C
> Error: Function higgsanal() is not defined in current scope :0:
> Possible candidates are...
> filename line:size busy function type and name
> *** Interpreter error recovered ***
> root [1] .L higgsanal.C
> root [2] loadLibraries()
> Note: File "/Applications/root/lib/libPhysics.so" already loaded
> root [3] GenPlots("data/h200_20k_2mu2tau.root","test.root",50,2.5,2)
> Event #0
> Event #10000
> Total number of events: 20000
> Total number of H++/H-- candidates found: 17918
> root [4]
>
> then it works...
>
> Mario Kadastik
Received on Wed Dec 21 2005 - 17:34:40 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:14 MET