compilation error in trunk version (r15683)
I am getting the following error while compiling cbmroot...
[ 57%] Building CXX object sts/CMakeFiles/CbmSts.dir/ana/CbmStsWkn.cxx.o
[ 59%] Built target CbmTof
[ 59%] Building CXX object sts/CMakeFiles/CbmSts.dir/CbmStsContFact.cxx.o
/home/ajit/CbmRoot/trunk_130220/sts/reco/CbmStsDigisToHits.cxx: In member function ‘void CbmStsDigisToHits::ProcessData(CbmEvent)’:
/home/ajit/CbmRoot/trunk_130220/sts/reco/CbmStsDigisToHits.cxx:376:13: error: ‘#pragma omp declare reduction’ initializer refers to variable ‘kFALSE’ which is not ‘omp_priv’ nor ‘omp_orig’
#pragma omp declare reduction(combineHitOutput:TClonesArray*: omp_out->AbsorbObjects(omp_in)) initializer(omp_priv = new TClonesArray("CbmStsHit", 1e1))
[ 59%] Building CXX object sts/CMakeFiles/CbmSts.dir/CbmStsFindTracks.cxx.o
[ 59%] Building CXX object sts/CMakeFiles/CbmSts.dir/CbmStsFindTracksQa.cxx.o
make2: * [sts/CMakeFiles/CbmSts.dir/build.make:469: sts/CMakeFiles/CbmSts.dir/reco/CbmStsDigisToHits.cxx.o] Error 1
make2: * Waiting for unfinished jobs....
Scanning dependencies of target CbmFlibStar2018
[ 60%] Building CXX object fles/star2018/CMakeFiles/CbmFlibStar2018.dir/param/CbmTofStar2018ContFact.cxx.o *
Can you please suggest where is the problem.
Thanks and Regards
Updated by Florian Uhlig over 2 years ago
- Assignee changed from Florian Uhlig to Andreas Redelbach
The problem obviously is that there are differences between the different OpenMP implementations. There was an attempt to solve some problems with OpenMP when using older compilers like the default one at GSI. This change r15673 somehow breaks compilation with newer compilers. Andreas is already investigating the problem.
Updated by Ajit Kumar over 2 years ago
Thanks for the information.
The problem obviously is that there are differences between the different OpenMP implementations. There was an attempt to solve some problems with OpenMP when using older compilers like the default one at GSI.
--> Do I need to do something in my PC or it will be fixed in future?
For the time being, I did the following...
svn up -r 15620 CbmStsDigisToHits.cxx CbmStsReco.cxx
svn up -r 15570 CbmStsDigisToHits.h
Thanks and Regards
Updated by Andreas Redelbach over 2 years ago
for the time being I have disabled the OpenMP functionality for StsDigisToHits due to the problem under gcc8 in revision https://redmine.cbm.gsi.de/projects/cbmroot/repository/cbmroot/revisions/15694
Tests on a gcc8-based machine should help resolving the underlying issue.