Project

General

Profile

Support #16137

Support #16096: Fix problems found when attempting to build with gcc 6.3.0

problem compiling larreco/TrackFinder/NeutrinoTrackingEff_module.cc with gcc 6.3.0

Added by Lynn Garren over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Reconstruction
Target version:
-
Start date:
04/08/2017
Due date:
% Done:

100%

Estimated time:
Spent time:
Experiment:
-
Co-Assignees:
Duration:

Description

Variable length arrays are forbidden by the ISO C++ standard. larreco/TrackFinder/NeutrinoTrackingEff_module.cc fails to compile:

[ 89%] Building CXX object larreco/larreco/TrackFinder/CMakeFiles/larreco_TrackFinder_NeutrinoTrackingEff_module.dir/NeutrinoTrackingEff_module.cc.o
/home/garren/scratch/larsoft/dev/srcs/larreco/larreco/TrackFinder/NeutrinoTrackingEff_module.cc: In member function ‘double DUNE::NeutrinoTrackingEff::truthLength(const simb::MCParticle*)’:
/home/garren/scratch/larsoft/dev/srcs/larreco/larreco/TrackFinder/NeutrinoTrackingEff_module.cc:853:47: error: ISO C++ forbids variable length array ‘TPCLengthHits’ [-Werror=vla]
    double TPCLengthHits[numberTrajectoryPoints];
                                               ^

Please work on branch feature/team_for_gcc630. This branch is available for larcoreobj, lardataobj, larcore, lardata, larevt, larsim, and larreco. You will need to compile all of them to test and fix. The e14 builds of supporting products are available on cvmfs. If you are working on a local machine, pull lar_product_stack-v06_31_00 for e14 (gcc v6_3_0).

See the resolution of #16130

History

#1 Updated by Gianluca Petrillo over 3 years ago

  • Category set to Reconstruction
  • Assignee changed from Aaron Higuera Pichardo to Gianluca Petrillo

Stealing this from Aaron because of time pressure.

#2 Updated by Gianluca Petrillo over 3 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Resolved with commit larreco:e852069b6190a781103ee97d8afa7cdcf5d5c810 (pushed in branch feature/team_for_gcc630 of larreco).

#3 Updated by Lynn Garren over 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF