Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-5590

Fix afw build issues with recent clang

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      DRP X16-1
    • Team:
      Data Release Production

      Description

      afw fails to build with recent versions of clang:

      include/lsst/afw/image/MaskedImage.h:553:65: error: '_loc' is a protected member of 'lsst::afw::image::MaskedImage<unsigned short, unsigned short,
            float>::MaskedImageLocatorBase<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<unsigned short,
            boost::gil::layout<boost::mpl::vector1<boost::gil::gray_color_t>, boost::mpl::range_c<int, 0, 1> > > *> >,
            boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<unsigned short,
            boost::gil::layout<boost::mpl::vector1<boost::gil::gray_color_t>, boost::mpl::range_c<int, 0, 1> > > *> >,
            boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<float,
            boost::gil::layout<boost::mpl::vector1<boost::gil::gray_color_t>, boost::mpl::range_c<int, 0, 1> > > *> >, Reference>'
                                           const_VarianceLocator(iter._loc.template get<2>())
      

      and issues with statistics.i so far, more errors may turn up as these are cleared.

      These problems are apparent with Apple LLVM version 7.3.0 (clang-703.0.29) (as shipped with the latest release of XCode, hence this now becoming an issue) and clang version 3.8.0 (branches/release_38 262722) (a recent release from LLVM; note that Apple uses its own versioning scheme). clang version 3.7.1 (tags/RELEASE_371/final) is not affected.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  swinbank John Swinbank
                  Reporter:
                  nlust Nate Lust
                  Reviewers:
                  Jim Bosch
                  Watchers:
                  Jim Bosch, John Swinbank, Nate Lust
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel