| Issue |
53161
|
| Summary |
[clang] Maximum number of include directories?
|
| Labels |
clang:frontend
|
| Assignees |
|
| Reporter |
carlosgalvezp
|
Hi!
We are doing a bump of Clang from ~October 2021 to latest master and we getting a strange compilation error:
```
/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/cstdlib:75:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
^~~~~~~~~~
```
This has been working before without issues. Investigating deeper, I notice that we pass a list of 511 user-provided include directories to clang, with a mix of `-iquote`, `-I` and `-isystem`. If I remove any one include directory from the clang command, then it can compile the code without the above error, which makes me suspect we may have hit a magic limit of 512.
Does that make sense, is there a limit? Has that limit been reduced/enforced since October 2021? I can try to hack some script and bisect the problem but it will take some time - if this is a known limitation then it would be good to know :)
Thanks!
/Carlos
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs