[ROOT-6794] System headers are not read from PCH Created: 07/Oct/14  Updated: 17/Nov/14  Resolved: 17/Nov/14

Status: Closed
Project: ROOT
Component/s: Cling
Affects Version/s: 6.02.00
Fix Version/s: None

Type: Bug Priority: High
Reporter: Axel Naumann Assignee: Axel Naumann
Resolution: Fixed Votes: 0
Labels: None




$ 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).

Comment by Axel Naumann [ 28/Oct/14 ]

Fixed - mostly. We still have a handful of headers out of hundreds that get parsed even though they should come from the PCH. That's for building and running on different platforms. I am investigating.

Comment by Axel Naumann [ 17/Nov/14 ]

Now fixed in v6-02-00-patches and the master.

Generated at Mon Feb 24 17:17:31 CET 2020 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.