ltcmelo / psychec

A compiler frontend for the C programming language
BSD 3-Clause "New" or "Revised" License
538 stars 39 forks source link

Fail with "cnip: preprocessor invocation failed" on large file #9

Open malbarbo opened 3 years ago

malbarbo commented 3 years ago

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 <ltcmelo@gmail.com>
Date:   Mon Feb 22 10:24:11 2021 -0300

    add Psyche-C logo

Expected behavior

I would expect cnip run without any error.

aytey commented 3 years ago

~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.