Re: bug report - 2 tests fail in make check

2020-07-30 Thread Elyassaf Loyfer
Got it.
Thanks a lot

On Thu, Jul 30, 2020 at 11:36 AM Torbjörn Granlund  wrote:

> Elyassaf Loyfer  writes:
>
>   >>> uname -a
>   Darwin huji-132-64-28-195.xt.huji.ac.il 19.5.0 Darwin Kernel Version
>   19.5.0: Tue May 26 20:41:44 PDT 2020;
> root:xnu-6153.121.2~2/RELEASE_X86_64
>   x86_64
>   >>> ./config.guess
>   kabylake-apple-darwin19.5.0
>   >>> ./configfsf.guess
>   x86_64-apple-darwin19.5.0
>   >>> what `which cc`
>   /usr/bin/cc
>   >>> gcc -v
>   Configured with: --prefix=/Library/Developer/CommandLineTools/usr
>
> --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
>   Apple clang version 11.0.0 (clang-1100.0.33.8)
>   Target: x86_64-apple-darwin19.5.0
>   Thread model: posix
>   InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>
> These test suite failures smell compiler bug.  Unfortunately, while
> Apple is a large company, their compiler team does not seem to be able
> to produce a robust compiler.  Only every few "Xcode" release comes with
> a compiler which GMP does not trip up.
>
> I haven't kept a list of versions of the compiler which does not work.
> But I know for a fact that the first Xcode release which came with
> Catalina did not.  The first update was no better, but I think the third
> update actually worked.
>
> You might want to install a new Xcode version.
>
> --
> Torbjörn
> Please encrypt, key id 0xC8601622
>
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: bug report - 2 tests fail in make check

2020-07-30 Thread Torbjörn Granlund
Elyassaf Loyfer  writes:

  >>> uname -a
  Darwin huji-132-64-28-195.xt.huji.ac.il 19.5.0 Darwin Kernel Version
  19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
  x86_64
  >>> ./config.guess
  kabylake-apple-darwin19.5.0
  >>> ./configfsf.guess
  x86_64-apple-darwin19.5.0
  >>> what `which cc`
  /usr/bin/cc
  >>> gcc -v
  Configured with: --prefix=/Library/Developer/CommandLineTools/usr
  
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
  Apple clang version 11.0.0 (clang-1100.0.33.8)
  Target: x86_64-apple-darwin19.5.0
  Thread model: posix
  InstalledDir: /Library/Developer/CommandLineTools/usr/bin

These test suite failures smell compiler bug.  Unfortunately, while
Apple is a large company, their compiler team does not seem to be able
to produce a robust compiler.  Only every few "Xcode" release comes with
a compiler which GMP does not trip up.

I haven't kept a list of versions of the compiler which does not work.
But I know for a fact that the first Xcode release which came with
Catalina did not.  The first update was no better, but I think the third
update actually worked.

You might want to install a new Xcode version.

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: gmp-6.1.2 Bug Report (gmp_fprintf(), "implicit declaration of function" warning)

2019-04-21 Thread Torbjörn Granlund
"mlg ."  writes:

  Long story short, with gcc, the function/macro "gmp_fprintf()" gives
  an"implicit declaration of function" warning. Please see the attached file
  for the complete report.

Please see the GMP manual, specifically see this page:

https://gmplib.org/manual/Headers-and-Libraries.html

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: gmp-6.1.2 Bug Report (gmp_fprintf(), "implicit declaration of function" warning)

2019-04-21 Thread Niels Möller
"mlg ."  writes:

> Long story short, with gcc, the function/macro "gmp_fprintf()" gives
> an"implicit declaration of function" warning. Please see the attached file
> for the complete report.

See
https://gmplib.org/manual/Headers-and-Libraries.html#Headers-and-Libraries.

: Note however that prototypes for GMP functions with FILE * parameters
: are only provided if  is included too. 

> #include 
> #include 

These two includes need to be in the opposite order.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


gmp-6.1.2 Bug Report (gmp_fprintf(), "implicit declaration of function" warning)

2019-04-21 Thread mlg .
Long story short, with gcc, the function/macro "gmp_fprintf()" gives
an"implicit declaration of function" warning. Please see the attached file
for the complete report.

Best regards,
Miraç Lütfullah Gülgönül
GMP VERSION: gmp-6.1.2

TEST PROGRAM: 
#include 
#include 

int main() {
FILE *bug_file;
mpz_t bug;

mpz_init_set_ui(bug, 1);
bug_file = fopen("bugg.txt", "w+");
gmp_fprintf(bug_file, "%Zd\n", bug);
fclose(bug_file);
return 0;
}

DESCRIPTION:
Running the above code gives the following compiler warning:

In file included from bug.c:1:
bug.c: In function 'main':
/usr/local/include/gmp.h:534:21: warning: implicit declaration of function 
'__gmp_fprintf'; did you mean '__gmp_sprintf'? [-Wimplicit-function-declaration]
#define gmp_fprintf __gmp_fprintf
 ^
bug.c:10:5: note: in expansion of macro 'gmp_fprintf'
 gmp_fprintf(bug_file, "%Zd\n", bug);
 ^~~

So basically there is something wrong with the gmp_fprintf function/macro.
Note that the code runs just fine, since it is a warning only.

CONFIGURE:

checking build system type... haswell-apple-darwin18.5.0
checking host system type... haswell-apple-darwin18.5.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=64
checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64 ... yes
checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64  
-mtune=haswell... yes
checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64 -mtune=haswell  
-march=haswell... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking build system compiler gcc... yes
checking for build system preprocessor... gcc -E
checking for build system executable suffix... 
checking whether build system compiler is ANSI... yes
checking for build system compiler math library... -lm
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
using ABI="64"
  CC="gcc"
  CFLAGS="-O2 -pedantic -fomit-frame-pointer -m64 -mtune=haswell 
-march=haswell"
  CPPFLAGS=""
  MPN_PATH=" x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 
x86_64 generic"
checking whether assembler supports --noexecstack option... no
checking for ar... ar
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert haswell-apple-darwin18.5.0 file names to 
haswell-apple-darwin18.5.0 format... func_convert_file_noop
checking how to convert haswell-apple-darwin18.5.0 file names to toolchain 
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for ANSI C header files... yes
checking for sys/types.h... 

Re: BUG REPORT

2017-03-24 Thread Torbjörn Granlund
Vaibhav Gautam  writes:

  PLEASE HELP!
  
The GMP developers cannot handle Microsoft's proprietary file formats,
and thus cannot read your attachments.

Plain old text is what you need to send in your message and in your
attachments.  Make sure you spell out what you think it wrong, a bunch
of attachments (even readable ones) might not immediately reveal the
perceived problem.


-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs