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

Cannot generate dictionaries for classes in "next" namespace.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 6.06/08, 6.08/06
    • 6.10/00, 6.08/08, 6.09/02
    • Dictionaries
    • None
    • GCC 4.9.3 / C++14 (6.06/08)
      GCC 4.9.3 / C++14 (6.08/06 + patches from v6-08-00-patches up to approximately 99ff14c61a)
      GCC 6.3.0 / C++14 (ditto)

    Description

      The art team had a bug report from Dr. Paul LeBrun, a member of the NEXT collaboration (a European neutrino-less double beta decay dark matter search experiment), which uses art. They were attempting to update their code to use a more recent version of art, which version uses ROOT 6. Although their code compiled, the generated dictionary source failed to compile. Upon inspection, it appeared that some class names were missing.

      Further investigation revealed that the dictionary generation system is doing bad things to entities defined in the, "next" namespace. This would be a bit of a problem for a collaboration whose name is, "NEXT."

      Please find attached a minimal reproducer, using no experimental code whatsoever. Instructions are in 00README.txt, but reproduced below:

      1. Untar the provided tar file.
      2. Run genreflex:

        ./bug.sh

      3. Observe the faulty contents of AA_dict.cpp, including (but not limited to) the line:

        static TGenericClassInfo *GenerateInitInstanceLocal(const ::*)

        and the presence of:

        ::ROOT::AddClassAlternate("","next::AA");

      4. Make the problem go away:

        perl -wapi\~ -e 's&\bnext\b&Next&g' classes_def.xml test-next.hh

      5. Repeat Step 1.
      6. Observer the no-longer-faulty contents of AA_dict.cpp.
      7. Make the problem come back for debugging purposes:

        perl -wapi\~ -e 's&\bNext\b&next&g' classes_def.xml test-next.hh

      Suffice to say, this is a showstopper for the experiment upgrading to use ROOT 6. Help would be appreciated.

      Attachments

        Activity

          People

            pcanal Philippe Canal
            chgreen Christopher Green
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: