Skip to content

[github version] Some test failures on Android (32-bit) #63

@trizen

Description

@trizen

Hi. I tested the latest GitHub commit of Math::Prime::Util on a 32-bit Android phone, using the Termux environment and the clang compiler.

Unfortunately, some tests failed:

1-almost-primes

2-semiprime

3-chinese

4-lucky

Here are the versions of the dependencies:

0-versions

Perl version is 5.34.1:

perl_version

The library can be installed, by ignoring the tests, but some functions will produce incorrect results:

perfect-power-count

Steps to reproduce the issue:

  1. get a 32-bit Android phone
  2. install Termux from F-Droid
  3. run the following commands:
pkg up
pkg install perl make clang libgmp curl
cpan App::cpanminus
cpanm -v https://github.com/danaj/Math-Prime-Util-GMP/archive/refs/heads/master.zip
cpanm -v https://github.com/danaj/Math-Prime-Util/archive/refs/heads/master.zip

Alternative commands, using git instead of cpanm (and also without installing Math::Prime::Util::GMP):

pkg up
pkg install perl make clang git
git clone --depth=1 https://github.com/danaj/Math-Prime-Util
cd Math-Prime-Util
perl Makefile.PL
make test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions