Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
> On 13 Feb 2018, at 12:24, Torbjörn Granlundwrote: > > Dennis Clarke writes: > > As a minor annoyance it does cause gcc ( recent versions 7.x ) to fail. > Oddly enough ye Oracle Studio 12.6 cc running in strict c99 mode is fine > and happy with everything. That is a new experience for me. However the > performance on sparc is miserable. We all know this and we know why. > > I like Vincent's proposal; I had thought we needed to add something > which leaves garbage in the object files. There is a discussion here [1]: The translation unit is the input source, it seems, which must be non-empty, but not the resulting object file; however, a conforming compiler can complain about whatever. 1. https://bytes.com/topic/c/answers/222053-empty-translation-unit-valid ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs
Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
Dennis Clarkewrites: As a minor annoyance it does cause gcc ( recent versions 7.x ) to fail. Oddly enough ye Oracle Studio 12.6 cc running in strict c99 mode is fine and happy with everything. That is a new experience for me. However the performance on sparc is miserable. We all know this and we know why. I like Vincent's proposal; I had thought we needed to add something which leaves garbage in the object files. About sparc GMP performance, yes it's very poor except for T4-T5 where it's acceptable. -- Torbjörn Please encrypt, key id 0xC8601622 ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs
Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
On 11/02/18 08:15 PM, Vincent Lefevre wrote: On 2018-02-11 10:40:55 +0100, Torbjorn Granlund wrote: Dennis Clarke <dcla...@blastwave.org> writes: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit Our nightly builds get a few of those too, as warnings. I've decided I can live with those as no platform seems to actually dislike the resulting object files. Or you can just add a dummy typedef to ensure that the translation unit is not empty. As a minor annoyance it does cause gcc ( recent versions 7.x ) to fail. Oddly enough ye Oracle Studio 12.6 cc running in strict c99 mode is fine and happy with everything. That is a new experience for me. However the performance on sparc is miserable. We all know this and we know why. Dennis ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs
Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
On 2018-02-11 10:40:55 +0100, Torbjorn Granlund wrote: > Dennis Clarke <dcla...@blastwave.org> writes: > > repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit > > Our nightly builds get a few of those too, as warnings. I've decided I > can live with those as no platform seems to actually dislike the > resulting object files. Or you can just add a dummy typedef to ensure that the translation unit is not empty. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs
Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
Dennis Clarke <dcla...@blastwave.org> writes: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit Our nightly builds get a few of those too, as warnings. I've decided I can live with those as no platform seems to actually dislike the resulting object files. -- Torbjörn Please encrypt, key id 0xC8601622 ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs
repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
Most likely something that can be ignored but saw this on my PPC970MP based Debian system when doing a compile with pedantic CFLAGS : . . . libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -g -m64 -std=iso9899:1999 -Wfatal-errors -pedantic-errors -Wl,-rpath=/usr/local/lib -mcpu=970 -maltivec -mfull-toc -mregnames -c repl-vsnprintf.c -fPIC -DPIC -o .libs/repl-vsnprintf.o repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit [-Wpedantic] #endif /* ! HAVE_VSNPRINTF */ compilation terminated due to -Wfatal-errors. gmake[2]: *** [Makefile:435: repl-vsnprintf.lo] Error 1 gmake[2]: Leaving directory '/usr/local/build/gmp-6.1.2_linux_4.13.0-1-powerpc64.003/printf' gmake[1]: *** [Makefile:956: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/local/build/gmp-6.1.2_linux_4.13.0-1-powerpc64.003' gmake: *** [Makefile:775: all] Error 2 Command exited with non-zero status 2 I removed the obvious options and config.log says : using ABI="mode64" CC="gcc" CFLAGS="-g -m64 -std=iso9899:1999 -Wl,-rpath=/usr/local/lib -mcpu=970 -maltivec -mfull-toc -mregnames" CPPFLAGS="" CXX="g++" CXXFLAGS="-g -m64 -std=iso9899:1999 -Wl,-rpath=/usr/local/lib -mcpu=970 -maltivec -mfull-toc -mregnames" MPN_PATH=" powerpc64/mode64/p4 powerpc64/p4 powerpc64/mode64/p3-p7 powerpc64/p3-p7 powerpc64/mode64 powerpc64/vmx powerpc64 generic" Which compiles and tests just fine. Dennis ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs