Re: [Tinycc-devel] Compiling preprocessed files with tinycc?
This is only a filename, or precisely extension issue. If you rename your intermediate file from "stateblock.i" to "stateblock-i.c", I believe everything should work. Miki. On 19 March 2013 23:10, Austin English wrote: > Howdy, > > I'm trying to narrow down a file that fails to compile with tinycc, > but works with gcc/clang. The exact error is: > stateblock.c:875: error: '}' expected (got ",") > > I wanted to use multidelta to reduce the testcase, but quickly found > that trying to recompile a preprocessed file with tcc fails: > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ tcc -E -I. > -I../../../include -DWINE_STRICT_PROTOTYPES > -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT > -fPIC -I/usr/include/freetype2 -o stateblock.i stateblock.c > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? > 0 > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ tcc -c -I. > -I../../../include -DWINE_STRICT_PROTOTYPES > -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT > -fPIC -I/usr/include/freetype2 -o stateblock.o stateblock.i > stateblock.i:1: error: unrecognized file type > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? > 1 > > but this works with gcc/clang: > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ gcc -E -I. > -I../../../include -DWINE_STRICT_PROTOTYPES > -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT > -fPIC -I/usr/include/freetype2 -o stateblock.i stateblock.c > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? > 0 > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ gcc -c -I. > -I../../../include -DWINE_STRICT_PROTOTYPES > -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT > -fPIC -I/usr/include/freetype2 -o stateblock.o stateblock.i > austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? > 0 > > Is it possible to get tcc to use the preprocessed source? > > Thanks in advance, > -Austin > > ___ > Tinycc-devel mailing list > Tinycc-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/tinycc-devel > ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Tinycc-devel] Compiling preprocessed files with tinycc?
Howdy, I'm trying to narrow down a file that fails to compile with tinycc, but works with gcc/clang. The exact error is: stateblock.c:875: error: '}' expected (got ",") I wanted to use multidelta to reduce the testcase, but quickly found that trying to recompile a preprocessed file with tcc fails: austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ tcc -E -I. -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT -fPIC -I/usr/include/freetype2 -o stateblock.i stateblock.c austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? 0 austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ tcc -c -I. -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT -fPIC -I/usr/include/freetype2 -o stateblock.o stateblock.i stateblock.i:1: error: unrecognized file type austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? 1 but this works with gcc/clang: austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ gcc -E -I. -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT -fPIC -I/usr/include/freetype2 -o stateblock.i stateblock.c austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? 0 austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ gcc -c -I. -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT -fPIC -I/usr/include/freetype2 -o stateblock.o stateblock.i austin@debian-home:~/src/wine-tcc/dlls/d3d8/tests$ echo $? 0 Is it possible to get tcc to use the preprocessed source? Thanks in advance, -Austin ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] unistd.h in new version
On Tue, Mar 19, 2013 at 03:43:51PM -0300, Hernán J. González wrote: > The new version (0.9.26) does not include the include/unistd.h file, > only include/sys/unistd.h > I know I can simply copy it (I've already done it) but I wonder if the > change was intentional, > I believe is more standard than , and this > could break many compilations. should be provided by your C library. It should not be the business of the compiler. And you could use alternative C libraries (eg http://musl-libc.org/ for example) and still use TinyCC. On a Debian system you would want to install the libc6-dev package. Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Tinycc-devel] unistd.h in new version
The new version (0.9.26) does not include the include/unistd.h file, only include/sys/unistd.h I know I can simply copy it (I've already done it) but I wonder if the change was intentional, I believe is more standard than , and this could break many compilations. Hernán ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Tinycc-devel] RE :Re: Yesterday commit breaks tcc (at least on RPi)
Thanks Thomas, It's fixed. FYI, I monitor Tinycc changes and recompile a fresh copy on my RPi to warn developers when regression occurs. C. - Message d'origine - De : "Thomas Preud'homme"Date mar. 19/03/2013 14:08 (GMT +01:00) À : "tinycc-devel@nongnu.org" Cc : "Christian Jullien" Objet : Re: [Tinycc-devel] Yesterday commit breaks tcc (at least on RPi) Le mardi 19 mars 2013 06:39:40, Christian Jullien a écrit : > Hi guys, > > I've no time to investigate but yesterday commit breaks tcc (at least on > RPi) > > I made a clean install and still got: > > tccrun.c: In function 'set_pages_executable': > tccrun.c:228:24: error: 'prog_main' undeclared (first use in this function) > tccrun.c:228:24: note: each undeclared identifier is reported only once for > each > function it appears in > make: *** [tccrun.o] Error 1 Sincere apologize. I had an ugly patch that worked but changed it with the remarks of Grischka without testing it again, as I didn't have the hardware at hand. I pushed the patch later when I had forgotten I didn't test it. Should be better (although still untested) now. Best regards, Thomas ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] Yesterday commit breaks tcc (at least on RPi)
Le mardi 19 mars 2013 06:39:40, Christian Jullien a écrit : > Hi guys, > > I've no time to investigate but yesterday commit breaks tcc (at least on > RPi) > > I made a clean install and still got: > > tccrun.c: In function 'set_pages_executable': > tccrun.c:228:24: error: 'prog_main' undeclared (first use in this function) > tccrun.c:228:24: note: each undeclared identifier is reported only once for > each > function it appears in > make: *** [tccrun.o] Error 1 Sincere apologize. I had an ugly patch that worked but changed it with the remarks of Grischka without testing it again, as I didn't have the hardware at hand. I pushed the patch later when I had forgotten I didn't test it. Should be better (although still untested) now. Best regards, Thomas signature.asc Description: This is a digitally signed message part. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel