Project

General

Profile

Support #16191

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

problem building uboone/Calibrations/Optical/FEMBasicTriggerAlgo.cxx with gcc 6.3.0

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

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

100%

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

Description

uboone/Calibrations/Optical/FEMBasicTriggerAlgo.cxx does not compile with gcc 6.3.0
The solution is not as obvious as it appears at first glance.

[ 86%] Building CXX object uboonecode/uboone/Calibrations/Optical/CMakeFiles/SPEcalibrationCode.dir/FEMBasicTriggerAlgo.cxx.o
/home/garren/scratch/larsoft/dev/srcs/uboonecode/uboone/Calibrations/Optical/FEMBasicTriggerAlgo.cxx: In function ‘void fememu::basicTrigger(int, int, const fememu::BasicTriggerConfig&, const std::vector<std::vector<int> >&, std::vector<int>&, std::vector<int>&)’:
/home/garren/scratch/larsoft/dev/srcs/uboonecode/uboone/Calibrations/Optical/FEMBasicTriggerAlgo.cxx:12:38: error: ISO C++ forbids variable length array ‘chdiff’ [-Werror=vla]
     std::vector<int> chdiff[NChannels];
                                      ^
/home/garren/scratch/larsoft/dev/srcs/uboonecode/uboone/Calibrations/Optical/FEMBasicTriggerAlgo.cxx:13:37: error: ISO C++ forbids variable length array ‘chhit’ [-Werror=vla]
     std::vector<int> chhit[NChannels];
                                     ^

History

#1 Updated by Lynn Garren over 3 years ago

  • Status changed from New to Assigned
  • Assignee set to Herbert Greenlee
  • Experiment MicroBooNE added
  • Experiment deleted (-)

#2 Updated by Herbert Greenlee over 3 years ago

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

#3 Updated by Lynn Garren over 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF