Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8180

Error when building ROOT 5 with GCC 6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.34/36
    • Fix Version/s: 5.34/38
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      ArchLinux 64 bit

      Description

      I'm building ROOT 5.34.36 with GCC 6, after patching with the attached patch which fixes the same issue that was fixed by commit 7dec562d1d5723b7eea08d08659dc9dc4e79c8ca for GCC 5 and a change in fortran libraries shipped by GCC. I get this error:

      Generating dictionary cint/reflex/src/G__Reflex.cxx...
      core/utils/src/rootcint_tmp -cint -f cint/reflex/src/G__Reflex.cxx -c -p -Icint/reflex/inc /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/PluginService.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Scope.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Callback.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Type.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Any.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Base.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Tools.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/PropertyList.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/TypeTemplate.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Object.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Kernel.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Member.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/ValueObject.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/MemberTemplate.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/OnDemandBuilderForScope.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/EnumBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/CollectionProxy.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/NewDelFunctions.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/ClassBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/DictSelection.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/UnionBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/NamespaceBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/OnDemandBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/TypedefBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/VariableBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/FunctionBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/TypeBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/Reflex/Builder/GenreflexMemberBuilder.h /home/mori/software/source/root_v5.34.36.gcc6/cint/reflex/inc/LinkDef.h
      Error: class,struct,union or type decltype(nullptr) not defined /usr/include/c+/6.1.1/x86_64-pc-linux-gnu/bits/c+config.h:202:

      followed by others. It seems that the decltype keyword in /usr/include/c+/6.1.1/x86_64-pc-linux-gnu/bits/cconfig.h is not understood by rootcint. Since it is a c11 feature I suspect that it might be generated by GCC 6 defaulting to c14. It appears when using the flag -enable c11 as well, and also when forcing c98 with the second attached patch. So it seems that rootcint does not understand some c+11 features and still it tries to parse code protected by guards like #if __cplusplus >= 201103L.

        Attachments

        1. gcc6.patch
          2 kB
        2. ROOT-v5.34-GCC6.patch
          2 kB
        3. ROOT-v5.34-GCC6-2.patch
          0.4 kB

          Activity

            People

            Assignee:
            mato Pere Mato Vila
            Reporter:
            nmori Nicola Mori
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: