Project

General

Profile

Actions

Bug #1534

closed

compilation error in trunk version (r15683)

Added by Ajit Kumar over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
02/13/2020
Due date:
% Done:

100%

Estimated time:

Description

Dear Florian,
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
Ajit

Actions #1

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.

Actions #2

Updated by Ajit Kumar over 2 years ago

Dear Florian,

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
Ajit

Actions #3

Updated by Andreas Redelbach over 2 years ago

Dear Ajit,

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.

Actions #4

Updated by Ajit Kumar over 2 years ago

  • Assignee changed from Andreas Redelbach to Ajit Kumar
  • % Done changed from 0 to 100

Dear Andreas,
Thanks for the information.

I am closing the issue.

Actions #5

Updated by Ajit Kumar over 2 years ago

  • Status changed from New to Resolved
Actions #6

Updated by Ajit Kumar over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF