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
mpz_set_str fails if minus sign is followed by white space
mpz_set_str and mpz_init_set_str fail when white space immediately follows the minus sign, for example with the string "- 1". Other strings like " -1 1 " are parsed correctly. This code: #include #include int main() { mpz_t z; int ret = mpz_init_set_str(z, "- 1", 10); printf("%d\n", ret); return 0; } outputs: -1 ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs