Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Bruno Haible
Mohammad Akhlaghi wrote: > by adding a '-I' for the built bootstrap directory to all > Gnuastro's programs and libraries, the problem was fixed: OK. To me, it looks like the documentation [1] mentions it already. The gnulib-tool output also mentions: "You may need to add #include directives for

Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Mohammad Akhlaghi
With your help, I found the problem and fixed it, thank you. Here is the complete explanation: When I ran that command, I got this compiler error: cc1: error: to generate dependencies you must specify either ‘-M’ or ‘-MM’ So I replaced '-MT' with '-MM' and it gave me this output: arithmetic-b

Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Paul Eggert
On 11/27/20 3:35 PM, Mohammad Akhlaghi wrote: there isn't any 'stdio.h' in either of '/dev/shm/gnuastro-0.13.58-dad9/lib' or '/src/dir/gnuastro/lib'. What is the preprocessor output of the failing command? You should be able to get this by running: gcc -DHAVE_CONFIG_H -I. -I/src/dir/gnuastro

Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Mohammad Akhlaghi
Thanks a lot for the check Bruno, Did you see the message I sent a few hours ago (forwarded message below)? I was able to track down the Gnulib commit causing this issue. To answer your questions: there isn't any 'stdio.h' in either of '/dev/shm/gnuastro-0.13.58-dad9/lib' or '/src/dir/gnuastr

Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Bruno Haible
Mohammad Akhlaghi wrote: > But I got many warnings related to '_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM' in > 'error.h' and 'argp.h'. You can see some of them in the P.S, and the > full build log (with the warnings in the middle of the build commands) > is available in this compressed text file: > > ht

Re: Issue when testing with --as-needed enabled

2020-11-27 Thread Bruno Haible
Thomas Andrejak wrote: > Few years ago, we had an issue when--as-needed was enabled. There has been > a patch for this : > https://github.com/coreutils/gnulib/commit/426320901d46b1f3b63ba1ec8e9e60cb0e28cb77 > > But, event with this patch, I still have build failure and I need to do > some patches

ssfmalloc tests: Port to macOS 11

2020-11-27 Thread Bruno Haible
It is being reported that the memory pagesize on macOS 11/arm64 is 16 KiB. See . 2020-11-27 Bruno Haible ssfmalloc tests: Port to macOS 11. * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192. di

Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Mohammad Akhlaghi
I found the Gnulib commit causing the problem: 387d654cabd7bc1594b1fc8d195cd9b66f820296 or http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=387d654cabd7b Gnuastro (on Commit c70f16c8f13c) builds with no warnings when bootstrapped with the previous Gnulib commit (cb432e7d6144). But on this

Issue when testing with --as-needed enabled

2020-11-27 Thread Thomas Andrejak
Hello Few years ago, we had an issue when--as-needed was enabled. There has been a patch for this : https://github.com/coreutils/gnulib/commit/426320901d46b1f3b63ba1ec8e9e60cb0e28cb77 But, event with this patch, I still have build failure and I need to do some patches like that : https://salsa.de

Re: warning _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM

2020-11-27 Thread Mohammad Akhlaghi
Thank you very much Paul, I just pulled from Gnulib and built Gnuastro (both the most recent commits at this moment) and shown below. But the problem remained. Gnulib: 90e79512d8b385801218d6e9c4d88ff77186560b Gnuastro: c70f16c8f13ccdb8ad606a33a526846180748284 Just for the record, I am using