Skip to content

Commit

Permalink
Avoid race condition between tutorial/roofit/rf512_wsfactory_oper.C
Browse files Browse the repository at this point in the history
and tutorial/roofit/rf512_wsfactory_oper.py

When run in parallel they delete eachother's files:

cc1plus: fatal error: /builddir/build/BUILD/root-6.26.08/redhat-linux-build/runtutorials/RooCFAuto000Pdf_cxx_ACLiC_dict.cxx: No such file or directory
compilation terminated.
/usr/bin/ld: cannot find /builddir/build/BUILD/root-6.26.08/redhat-linux-build/runtutorials/RooCFAuto000Pdf_cxx_ACLiC_dict.o: No such file or directory
collect2: error: ld returned 1 exit status
  • Loading branch information
ellert authored and bellenot committed Oct 31, 2022
1 parent 04a77df commit 8cc176c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ set(hist-hbars-depends tutorial-tree-cernbuild)
set(benchmarks-depends tutorial-hsimple
tutorial-fit-fit1
tutorial-fit-myfit
tutorial-hist-h1ReadAndDraw
tutorial-hist-h1ReadAndDraw
tutorial-hist-FirstContour
tutorial-geom-na49view
tutorial-tree-ntuple1
Expand Down Expand Up @@ -731,14 +731,15 @@ if(ROOT_pyroot_FOUND)
set(pyroot-benchmarks-depends tutorial-pyroot-hsimple-py
tutorial-pyroot-fit1-py
tutorial-pyroot-na49view-py
tutorial-pyroot-h1ReadAndDraw-py
tutorial-pyroot-h1ReadAndDraw-py
tutorial-pyroot-ntuple1-py)
set(pyroot-fit1-depends tutorial-pyroot-fillrandom-py)
set(pyroot-na49view-depends tutorial-pyroot-geometry-py)
set(roofit-rf503_wspaceread-depends tutorial-roofit-rf502_wspacewrite-py)

# Avoid a race condition: make sure Python tutorial is ran after C++ tutorial
set(roofit-rf104_classfactory-depends tutorial-roofit-rf104_classfactory)
set(roofit-rf512_wsfactory_oper-depends tutorial-roofit-rf512_wsfactory_oper)

#----------------------------------------------------------------------
# List requirements for python tutorials.
Expand Down

0 comments on commit 8cc176c

Please sign in to comment.