<p></p>
On Mon, Apr 20, 2020 at 8:07 AM James Mills <notifications@github.com> wrote:<br>
><br>
> Okay I added this to the. build and now I get the original error I was trying to show here before:<br>
><br>
> mv native_printer_defs.h-t native_printer_defs.h<br>
> tcc -E -P -DHAVE_CONFIG_H    -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I. -I.  -include config.h linux/x86_64/syscallent.h -o syscallent.i<br>
> tcc: error: unrecognized file type<br>
<br>
It seems that tcc treats the input file as binary[1][2], and it does<br>
so because file type detection[3] (which is in place for some reason)<br>
doesn't treat *.h as a C source. Since the command in question<br>
explicitly has the -E option, I'd say it's a bug on tcc's part.<br>
<br>
[1] https://repo.or.cz/tinycc.git/blob/HEAD:/libtcc.c#l1055<br>
[2] https://repo.or.cz/tinycc.git/blob/HEAD:/libtcc.c#l1101<br>
[3] https://repo.or.cz/tinycc.git/blob/HEAD:/libtcc.c#l1126<br>
<br>
-- <br>
Eugene Syromyatnikov<br>
mailto:evgsyr@gmail.com<br>
xmpp:esyr@jabber.{ru|org}<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/132#issuecomment-616335726">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR4O6W4LLRWDMWXUUHTRNPSSTANCNFSM4MFK32RQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR3DNUQH2IKCUBWYPVDRNPSSTA5CNFSM4MFK32R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOES6IS3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/132#issuecomment-616335726",
"url": "https://github.com/strace/strace/issues/132#issuecomment-616335726",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>