Hello, Thanks for looking into this.
On 09/24/2015 08:29 PM, Sergey Korshunoff wrote:
Can you post a <lib/sys/types.h> file?
I'm not sure it's just one file, it might be an interplay between multiple
local header files doing '#include_next' in some loop.
Attached is a small archive to reproduce the issue.
The content is:
$ tar -xf tcc-include-next-error.tar.gz
$ cd tcc-include-next-error
$ find . -type f
./1.c
./runme.sh
./lib/sys/types.h
./lib/sys/select.h
./lib/sys/socket.h
./lib/signal.h
1.c contains:
#include <sys/param.h>
int main() { return 0; }
runme.sh contains:
#!/bin/sh
for CC in clang gcc tcc ; do
$CC -I./lib -c -o /dev/null 1.c && echo $CC - ok || echo $CC - failed
done
and running it on CentOS 6.5 gives:
$ ./runme.sh
clang - ok
gcc - ok
In file included from 1.c:1:
In file included from /usr/include/sys/param.h:52:
In file included from ./lib/sys/types.h:28:
In file included from /usr/include/sys/types.h:220:
In file included from ./lib/sys/select.h:77:
./lib/sys/types.h:28: error: include file 'sys/types.h' not found
tcc - failed
and on Ubuntu 15.04:
$ ./runme.sh
clang - ok
gcc - ok
In file included from 1.c:1:
In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28:
In file included from ./lib/signal.h:52:
In file included from /usr/include/signal.h:352:
In file included from /usr/include/x86_64-linux-gnu/sys/ucontext.h:22:
./lib/signal.h:36: error: include file 'signal.h' not found
tcc - failed
thanks,
-assaf
tcc-include-next-error.tar.gz
Description: application/gzip
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
