psychec
psychec copied to clipboard
Fail with "cnip: preprocessor invocation failed" on large file
Description
Generate a large large file:
for i in $(seq 1 100000); do echo "int i$i;" >> a.c; done
Run cnip:
./cnip a.c
Get the error:
cnip: preprocessor invocation failed
Version
commit cb578e9d10c2cc67980e9f383f9afd542f784e17 (HEAD -> master, origin/master, origin/HEAD)
Author: Leandro T. C. Melo <[email protected]>
Date: Mon Feb 22 10:24:11 2021 -0300
add Psyche-C logo
Expected behavior
I would expect cnip run without any error.
~It looks like this was fixed in:~
~* 21717af2f5ba023e7390cdba79638ac95c8a01d1~
~but the build was broken, so works as of:~
~* 847c471cbc82729ce0e8a9f0e435a62614af64ff~
Currently this is hidden under the --cc-pp option, but still reproduces if you use --cc-pp.