tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] more 'include_next' errors (with tcc, GNU Coreutils)


From: Assaf Gordon
Subject: Re: [Tinycc-devel] more 'include_next' errors (with tcc, GNU Coreutils)
Date: Wed, 30 Dec 2015 12:44:58 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]