Hi,
Thanks a lot for your answer and your corrections.
I tried again with your corrections :
Clean everything :
source make_Tree1_par.csh
Tree1/
Tree1/Tree1.C
Tree1/Tree1.h
Tree1/Makefile
Tree1/Makefile.arch
Tree1/Tree1LinkDef.h
Tree1/PROOF-INF/
Tree1/PROOF-INF/BUILD.sh
Tree1/PROOF-INF/SETUP.C
now I use : chain->Process(“Tree1”);
root [0] .x Send_PROOF_withPAR.C
Starting master: opening connection …
Starting master: OK
Opening connections to workers: OK (9 workers)
Setting up worker servers: OK (9 workers)
PROOF set to parallel mode (9 workers)
Show Package
*** Package cache client:/usatlas/u/tarrade/proof/packages ***
total 0
*** Package cache acas0420.usatlas.bnl.gov:/data/proofbox/tarrade/packages ***
total 32
drwxr-xr-x 3 tarrade usatlas 4096 Sep 19 05:34 Tree1
-rw-r–r-- 1 tarrade usatlas 27030 Sep 19 05:33 Tree1.par
Clean Package
*** Package cache client:/usatlas/u/tarrade/proof/packages ***
total 0
*** Package cache acas0420.usatlas.bnl.gov:/data/proofbox/tarrade/packages ***
total 0
Upload and Enable Package
g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
Generating dictionary Tree1Dict.cxx…
g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
libTree1.so done
master-0: building Tree1 …
master-0: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
master-0: Generating dictionary Tree1Dict.cxx…
master-0: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
master-0: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
master-0: libTree1.so done
worker-0.0: building Tree1 …
worker-0.0: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.0: Generating dictionary Tree1Dict.cxx…
worker-0.0: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.1: building Tree1 …
worker-0.1: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.1: Generating dictionary Tree1Dict.cxx…
worker-0.1: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.7: building Tree1 …
worker-0.7: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.7: Generating dictionary Tree1Dict.cxx…
worker-0.7: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.8: building Tree1 …
worker-0.8: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.8: Generating dictionary Tree1Dict.cxx…
worker-0.8: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.3: building Tree1 …
worker-0.3: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.3: Generating dictionary Tree1Dict.cxx…
worker-0.3: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.2: building Tree1 …
worker-0.2: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.2: Generating dictionary Tree1Dict.cxx…
worker-0.2: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.6: building Tree1 …
worker-0.6: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.6: Generating dictionary Tree1Dict.cxx…
worker-0.6: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.4: building Tree1 …
worker-0.4: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.4: Generating dictionary Tree1Dict.cxx…
worker-0.4: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.5: building Tree1 …
worker-0.5: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
worker-0.5: Generating dictionary Tree1Dict.cxx…
worker-0.5: g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
worker-0.2: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.6: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.2: libTree1.so done
worker-0.6: libTree1.so done
worker-0.4: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.1: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.0: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.4: libTree1.so done
worker-0.8: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.7: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.1: libTree1.so done
worker-0.0: libTree1.so done
worker-0.8: libTree1.so done
worker-0.7: libTree1.so done
worker-0.5: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.3: g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
worker-0.5: libTree1.so done
worker-0.3: libTree1.so done
(int)0
worker-0.2: failure loading Tree1 …
worker-0.1: failure loading Tree1 …
worker-0.3: failure loading Tree1 …
worker-0.0: failure loading Tree1 …
worker-0.4: failure loading Tree1 …
worker-0.5: failure loading Tree1 …
worker-0.6: failure loading Tree1 …
worker-0.7: failure loading Tree1 …
worker-0.8: failure loading Tree1 …
dlopen error: /data/proofbox/tarrade/packages/Tree1/./libTree1.so: undefined symbol: _ZTI4TH1F
Load Error: Failed to load Dynamic link library /data/proofbox/tarrade/packages/Tree1/./libTree1.so
*** Interpreter error recovered ***
dlopen error: /data/proofbox/tarrade/packages/Tree1/./libTree1.so: undefined symbol: _ZTI4TH1F
Load Error: Failed to load Dynamic link library /data/proofbox/tarrade/packages/Tree1/./libTree1.so
*** Interpreter error recovered ***
(int)0
Show Package
*** Package cache client:/usatlas/u/tarrade/proof/packages ***
total 4
drwxr-xr-x 3 tarrade usatlas 4096 Sep 19 07:09 Tree1
lrwxrwxrwx 1 tarrade usatlas 59 Sep 19 07:08 Tree1.par -> /direct/usatlas+u/tarrade/MacroForPROOF/MultiTree/Tree1.par
*** Package cache acas0420.usatlas.bnl.gov:/data/proofbox/tarrade/packages ***
total 32
drwxr-xr-x 3 tarrade usatlas 4096 Sep 19 07:09 Tree1
-rw-r–r-- 1 tarrade usatlas 26986 Sep 19 07:08 Tree1.par
start : chain->Process(Tree)
Starting the main code (Tree1) with process option:
Looking up for exact location of files: OK (3 files)
Validating files: OK (3 files)
master-0: grand total: sent 0 objects, size: 0 bytes
*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib/tls/libthread_db.so.1”.
Attaching to program: /proc/6032/exe, process 6032
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
…
Clean everything :
source make_Tree1_par.csh
Now If I use : chain->Process(“Tree1.C+”);
same error :
dlopen error: /data/proofbox/tarrade/packages/Tree1/./libTree1.so: undefined symbol: _ZTI4TH1F
Load Error: Failed to load Dynamic link library /data/proofbox/tarrade/packages/Tree1/./libTree1.so
but it works and it is what I was doing yesterday and before
If I use my code I can run without problem with PROOF with chain->Process(“Tree1.C+”) :
PROOF set to parallel mode (9 workers)
Starting the main code (Tree1) with process option:
Looking up for exact location of files: OK (3 files)
Validating files: OK (3 files)
master-0: grand total: sent 4 objects, size: 2254 bytes
Real time 0:18:20, CP time 2.820
I can compile the code Tree1.C & Tree1.h with the Makefile, Makefile.arch and Tree1LinkDef.h :
make
g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c -o Tree1.o Tree1.C
Generating dictionary Tree1Dict.cxx…
g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/usatlas.bnl.gov/cernsw/lcg/external/root/5.16.00-PROOF.00/slc4_ia32_gcc34/root/include -c Tree1Dict.cxx
g++ -shared -O2 -m32 Tree1.o Tree1Dict.o -o libTree1.so
libTree1.so done
something is wrong and related to TH1F !
Do I need to add something in Tree1LinkDef.h ? :
#ifdef CINT
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class Tree1+;
#endif
Any idea ?
Thanks a lot
Cheers
Fabien