On 12/30/2015 07:00 AM, Edmund Grimley Evans wrote:
Assaf Gordon:

perhaps related to the recent similar issue with "#include_next", it
seems tcc fails to correctly include header files (or at least
behaves differently from gcc/clang).

A couple of things you could try:

1. Try an earlier commit, such as c39bc9c.

rev c39bc9c crashed due to assertion (sadly I don't have time to investigate 
further):
===
    tcc-c39bc9c  -I. -I./lib  -Ilib -I./lib -Isrc -I./src    -g -c -o 
src/timeout.o src/timeout.c
    tcc-c39bc9c: x86_64-gen.c:422: load: Assertion `((ft & 0x000f) == 0) || ((ft & 0x000f) 
== 12) || ((ft & 0x000f) == 4) || ((ft & 0x000f) == 5) || ((ft & 0x000f) == 6)' failed.
./build-aux/depcomp: line 173: 21166 Aborted                 (core dumped) "$@" -MD -MF 
"$tmpdepfile"
make[2]: *** [src/timeout.o] Error 134
===


2. Modify the build system to delete the repeated directories from:

     tcc  -I. -I./lib  -Ilib -I./lib -Isrc -I./src    -g -c -o lib/getfilecon.o 
lib/getfilecon.c

You might find that "tcc -I. -Ilib -Isrc ..." works.


Thanks,
this worked (with the latest git revision):

 tcc  -I. -Ilib -Isrc -g -c -o lib/getfilecon.o lib/getfilecon.c

However, I'm not sure how to reliably modify the makefiles of coreutils 
(especially given that gcc,clang handle this situation without a problem).

To be continued,
Thanks,
 - assaf


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to