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

System headers are not read from PCH

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.02.00
    • Fix Version/s: None
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Linux

      Description

      $ sudo mv /usr/include/features.h{,_BAK}
      [sudo] password for axel: 
      ~/build/root/github/src/test(master)7$ root -l -b
      In file included from <stdin>:1:
      In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/vector:60:
      In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algobase.h:59:
      In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:426:
      /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8/bits/os_defines.h:39:10: fatal error: 'features.h' file not found
      #include <features.h>
               ^
      1 error generated.

      That should not be needed - the header should be found from the PCH. If this is an issue with the libstdc++ detection, that detection should take the PCH into account (i.e. simply let the interpreter do the job).

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              axel Axel Naumann
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: