Re: Make check fails on samsung S8 (2)

2020-12-04 Thread Luc Sanselme
Yes, I've just tested and it's OK.

Regards.
Luc

Le ven. 4 déc. 2020 à 13:55, Marco Bodrato  a
écrit :

> Ciao Luc,
>
> Il Gio, 3 Dicembre 2020 5:03 pm, Luc Sanselme ha scritto:
> > I ran make check on termux on my phone and It's OK now.
>
> Great, thank you!
>
> Then, also the new release GMP-6.2.1 should be OK.
>
> Ĝis,
> m
>
>
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Make check fails on samsung S8 (2)

2020-12-04 Thread Marco Bodrato
Ciao Luc,

Il Gio, 3 Dicembre 2020 5:03 pm, Luc Sanselme ha scritto:
> I ran make check on termux on my phone and It's OK now.

Great, thank you!

Then, also the new release GMP-6.2.1 should be OK.

Ĝis,
m

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Make check fails on samsung S8 (2)

2020-12-03 Thread Luc Sanselme
Hi Marco,

sorry for being long but I got a few things to do lately.

I ran make check on termux on my phone and It's OK now. I join the file of
the standard output and the file of standard error was empty.

Regards.
Luc

Le lun. 2 nov. 2020 à 00:23, Marco Bodrato  a
écrit :

> Ciao Luc,
>
> Il 2020-10-29 08:39 Marc Glisse ha scritto:
> > I think so, yes. Maybe Luc can confirm if that works?
>
> Could you try if the latest available snapshot is working in your
> environment?
>
> You can download it at:
>
> https://gmplib.org/download/snapshot/gmp-6.2/gmp-6.2.0-20201101220635.tar.zst
>
> Ĝis,
> m
>
make  check-recursive
make[1]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635'
Making check in tests
make[2]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
Making check in .
make[3]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
make  libtests.la t-bswap t-constants t-count_zeros t-hightomask t-modlinv 
t-popc t-parity t-sub
make[4]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
make[4]: 'libtests.la' is up to date.
make[4]: 't-bswap' is up to date.
make[4]: 't-constants' is up to date.
make[4]: 't-count_zeros' is up to date.
make[4]: 't-hightomask' is up to date.
make[4]: 't-modlinv' is up to date.
make[4]: 't-popc' is up to date.
make[4]: 't-parity' is up to date.
make[4]: 't-sub' is up to date.
make[4]: Leaving directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
make  check-TESTS
make[4]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
make[5]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
PASS: t-bswap
PASS: t-constants
PASS: t-count_zeros
PASS: t-hightomask
PASS: t-modlinv
PASS: t-popc
PASS: t-parity
PASS: t-sub

Testsuite summary for GNU MP 6.2.0

# TOTAL: 8
# PASS:  8
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

make[5]: Leaving directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
make[4]: Leaving directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
make[3]: Leaving directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests'
Making check in devel
make[3]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests/devel'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests/devel'
Making check in mpn
make[3]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests/mpn'
make  t-asmtype t-aors_1 t-divrem_1 t-mod_1 t-fat t-get_d t-instrument t-iord_u 
t-mp_bases t-perfsqr t-scan logic t-toom22 t-toom32 t-toom33 t-toom42 t-toom43 
t-toom44 t-toom52 t-toom53 t-toom54 t-toom62 t-toom63 t-toom6h t-toom8h 
t-toom2-sqr t-toom3-sqr t-toom4-sqr t-toom6-sqr t-toom8-sqr t-div t-mul t-mullo 
t-sqrlo t-mulmod_bnm1 t-sqrmod_bnm1 t-mulmid t-hgcd t-hgcd_appr t-matrix22 
t-invert t-bdiv t-fib2m t-broot t-brootinv t-minvert t-sizeinbase t-gcd_11 
t-gcd_22 t-gcdext_1
make[4]: Entering directory 
'/data/data/com.termux/files/home/Documents/TestsPaul/GMP/gmp-6.2.0-20201101220635/tests/mpn'
make[4]: 't-asmtype' is up to date.
make[4]: 't-aors_1' is up to date.
make[4]: 't-divrem_1' is up to date.
make[4]: 't-mod_1' is up to date.
make[4]: 't-fat' is up to date.
make[4]: 't-get_d' is up to date.
make[4]: 't-instrument' is up to date.
make[4]: 't-iord_u' is up to date.
make[4]: 't-mp_bases' is up to date.
make[4]: 't-perfsqr' is up to date.
make[4]: 't-scan' is up to date.
make[4]: 'logic' is up to date.
make[4]: 't-toom22' is up to date.
make[4]: 't-toom32' is up to date.
make[4]: 't-toom33' is up to date.
make[4]: 't-toom42' is up to date.
make[4]: 't-toom43' is up to date.
make[4]: 't-toom44' is up to date.
make[4]: 't-toom52' is up to date.
make[4]: 't-toom53' is up to date.
make[4]: 't-toom54' is up to date.
make[4]: 't-toom62' is up to date.
make[4]: 't-toom63' is up to date.
make[4]: 't-toom6h' is up to date.
make[4]: 't-toom8h' is up to date.
make[4]: 't-toom2-sqr' is up to date.
make[4]: 't-toom3-sqr' is up to date.
make[4]: 't-toom4-sqr' is up to date.
make[4]: 't-toom6-sqr' is up to date.
make[4]: 't-toom8-sqr' is up to date.
make[4]: 't-div' is up to date.
make[4]: 't-mul' is up to date.
make[4]: 't-mullo' is up to date.
make[4]: 

Re: Make check fails on samsung S8 (2)

2020-11-02 Thread Luc Sanselme
I do it ASAP.

Le lun. 2 nov. 2020 à 00:23, Marco Bodrato  a
écrit :

> Ciao Luc,
>
> Il 2020-10-29 08:39 Marc Glisse ha scritto:
> > I think so, yes. Maybe Luc can confirm if that works?
>
> Could you try if the latest available snapshot is working in your
> environment?
>
> You can download it at:
>
> https://gmplib.org/download/snapshot/gmp-6.2/gmp-6.2.0-20201101220635.tar.zst
>
> Ĝis,
> m
>
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Make check fails on samsung S8 (2)

2020-11-01 Thread Marco Bodrato

Ciao Luc,

Il 2020-10-29 08:39 Marc Glisse ha scritto:

I think so, yes. Maybe Luc can confirm if that works?


Could you try if the latest available snapshot is working in your 
environment?


You can download it at:
https://gmplib.org/download/snapshot/gmp-6.2/gmp-6.2.0-20201101220635.tar.zst

Ĝis,
m
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Make check fails on samsung S8 (2)

2020-10-29 Thread Marc Glisse

On Thu, 29 Oct 2020, Marco Bodrato wrote:


Ciao Marc,

Il 2020-08-22 19:39 Marc Glisse ha scritto:

Ah, on your OS nl_langinfo is defined inline as a static function in
langinfo.h, so the hack used in the test of redefining the function
cannot work. I guess we are supposed to add some configure check that
nl_langinfo can be redefined... although for just one platform we
could add a simple #if like we already do for mingw, so the test is
skipped.


Are you suggesting something like the following?


I think so, yes. Maybe Luc can confirm if that works?

Thanks,

--
Marc Glisse
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Make check fails on samsung S8 (2)

2020-10-29 Thread Marco Bodrato

Ciao Marc,

Il 2020-08-22 19:39 Marc Glisse ha scritto:

Ah, on your OS nl_langinfo is defined inline as a static function in
langinfo.h, so the hack used in the test of redefining the function
cannot work. I guess we are supposed to add some configure check that
nl_langinfo can be redefined... although for just one platform we
could add a simple #if like we already do for mingw, so the test is
skipped.


Are you suggesting something like the following?

diff -r 3328dc92960a tests/misc/t-locale.c
--- a/tests/misc/t-locale.c Sun Oct 25 22:14:38 2020 +0100
+++ b/tests/misc/t-locale.c Thu Oct 29 02:43:25 2020 +0100
@@ -57,7 +57,7 @@
 #endif

 /* Replace the libc nl_langinfo with one we can manipulate. */
-#if HAVE_NL_LANGINFO
+#if HAVE_NL_LANGINFO && ! defined __TERMUX__
 char *
 nl_langinfo (nl_item n)
 #if defined __cplusplus && defined __GLIBC__

Ĝis,
m
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Make check fails on samsung S8 (2)

2020-08-22 Thread Marc Glisse

On Wed, 19 Aug 2020, Luc Sanselme wrote:


first of all, sorry for my previous bug report with confidentiality issues.
I forgot to remove them before sending the mail.

I installed gmp on my Samsung S8, running termux.

Here are my environment informations:
- gmp-6.2.0 from the tar.bz2 archive
- make check fails
- clang 10.0.1 aarch64-unknown-linux-android
- uname -a: Linux localhost 4.4.153-16125356 #2 SMP PREEMPT Thu Jul 4
23:06:25 KST 2019 aarch64 Android
- ./config.guess: arrch64-unknown-linux-gnu

The error occurs on a make check. The two files attached are the output of
stderror for make check and for ./configure


Ah, on your OS nl_langinfo is defined inline as a static function in 
langinfo.h, so the hack used in the test of redefining the function 
cannot work. I guess we are supposed to add some configure check that 
nl_langinfo can be redefined... although for just one platform we could 
add a simple #if like we already do for mingw, so the test is skipped.


This seems specific to termux: 
https://github.com/termux/termux-packages/commit/d486f2a0831550fbf5af50d5e94d713e53137c2d

which can be identified with __TERMUX__ after including some random header
https://github.com/termux/termux-packages/commit/b9d83f9fb83e42b3fbd2d515412d44111846ef96

Anyway, you can ignore this error, it only says that a hack in a test is 
failing, nothing wrong with the library itself.


--
Marc Glisse
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Make check fails on samsung S8 (2)

2020-08-19 Thread Luc Sanselme
Hello,

first of all, sorry for my previous bug report with confidentiality issues.
I forgot to remove them before sending the mail.

I installed gmp on my Samsung S8, running termux.

Here are my environment informations:
- gmp-6.2.0 from the tar.bz2 archive
- make check fails
- clang 10.0.1 aarch64-unknown-linux-android
- uname -a: Linux localhost 4.4.153-16125356 #2 SMP PREEMPT Thu Jul 4
23:06:25 KST 2019 aarch64 Android
- ./config.guess: arrch64-unknown-linux-gnu

The error occurs on a make check. The two files attached are the output of
stderror for make check and for ./configure

Regards.
Luc
t-locale.c:62:1: error: redefinition of 'nl_langinfo'
nl_langinfo (nl_item n)
^
/data/data/com.termux/files/usr/include/langinfo.h:177:14: note: previous 
definition is here
static char *nl_langinfo(nl_item item)
 ^
1 error generated.
make[4]: *** [Makefile:635: t-locale.o] Error 1
make[3]: *** [Makefile:909: check-am] Error 2
make[2]: *** [Makefile:823: check-recursive] Error 1
make[1]: *** [Makefile:995: check-recursive] Error 1
make: *** [Makefile:1287: check] Error 2
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for a BSD-compatible install... 
/data/data/com.termux/files/usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... 
/data/data/com.termux/files/usr/bin/mkdir -p
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 ... yes
checking compiler gcc -O2 -pedantic has sizeof(void*)==8... yes
checking compiler gcc -O2 -pedantic  -march=armv8-a... 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 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... 
/data/data/com.termux/files/usr/bin/grep
checking for egrep... /data/data/com.termux/files/usr/bin/grep -E
using ABI="64"
  CC="gcc"
  CFLAGS="-O2 -pedantic -march=armv8-a"
  CPPFLAGS=""
  MPN_PATH=" arm64 generic"
checking whether assembler supports --noexecstack option... yes
checking for ar... ar
checking for BSD- or MS-compatible name lister (nm)... 
/data/data/com.termux/files/usr/bin/nm -B
checking the name lister (/data/data/com.termux/files/usr/bin/nm -B) 
interface... BSD nm
checking how to print strings... printf
checking for a sed that does not truncate output... 
/data/data/com.termux/files/usr/bin/sed
checking for fgrep... /data/data/com.termux/files/usr/bin/grep -F
checking for ld used by gcc... 
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld
checking if the linker 
(/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld) is GNU ld... yes
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking how to convert aarch64-unknown-linux-gnu file names to 
aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain 
format... func_convert_file_noop
checking for /data/data/com.termux/files/usr/bin/aarch64-linux-android-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... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /data/data/com.termux/files/usr/bin/nm -B output from 
gcc object... ok
checking for sysroot... no
checking for a working dd... /data/data/com.termux/files/usr/bin/dd
checking how to truncate binary pipes... /data/data/com.termux/files/usr/bin/dd 
bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h...