develooper Front page | perl.perl5.porters | Postings from January 2019

Re: [perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment

Thread Previous | Thread Next
From:
Richard Leach
Date:
January 24, 2019 02:32
Subject:
Re: [perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment
Message ID:
CADWSe2fLMn_+aeFdXkHMB3A-WLR-JSb9qD4821YsR6Wg_ekK-w@mail.gmail.com
On Wed, Jan 23, 2019 at 2:29 AM Tony Cook <tony@develop-help.com> wrote:
> On Wed, Jan 23, 2019 at 01:48:32AM +0000, Richard Leach wrote:
> > The preprocessor check needed
> > "-I/data/data/com.termux/files/usr/include/libandroid-support" to
> > succeed, and then adding that path to locincpth instead of incpth was
> > enough to build miniperl:
> >
> >     sh Configure -des -Dsysroot=$SYSROOT -Alibpth="/system/lib
> > /vendor/lib" -Dusedevel
> > -Alocincpth=/data/data/com.termux/files/usr/include/libandroid-support
> >
> > Is that enough? Or should the path be added to BOTH locincpth and incpth?
>
> That should be enough.

Next problem is that although the miniperl executable does get built,
@INC contents are duff, preventing the build from getting much
further:

    ./miniperl -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh
-c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit
1'
    ./miniperl -Ilib -f write_buildcustomize.pl
    Use of uninitialized value in -x at dist/PathTools/Cwd.pm line 174.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    Use of uninitialized value $_[0] in join or string at
dist/PathTools/lib/File/Spec/Unix.pm line 87.
    rm -f pod/perl5296delta.pod
    /data/data/com.termux/files/usr/bin/ln -s perldelta.pod
pod/perl5296delta.pod
    ./miniperl -Ilib autodoc.pl
    Can't locate Exporter.pm in @INC (you may need to install the
Exporter module) (@INC contains: /cpan/AutoLoader/lib /dist/Carp/lib
/dist/PathTools /dist/PathTools/lib /cpan/ExtUtils-Install/lib
/cpan/ExtUtils-MakeMaker/lib /cpan/ExtUtils-Manifest/lib
/cpan/File-Path/lib /ext/re /dist/Term-ReadLine/lib /dist/Exporter/lib
/ext/File-Find/lib /cpan/Text-Tabs/lib /dist/constant/lib
/cpan/version/lib /cpan/Getopt-Long/lib /lib
/data/data/com.termux/files/home/PerlSource/perl/lib .) at
/data/data/com.termux/files/home/PerlSource/perl/lib/File/Compare.pm
line 8.
    Compilation failed in require at ./regen/regen_lib.pl line 4.
    BEGIN failed--compilation aborted at ./regen/regen_lib.pl line 4.
    Compilation failed in require at autodoc.pl line 32.
    make: *** [makefile:405: pod/perlintern.pod] Error 2


The @INC paths are missing the pwd
("/data/data/com.termux/files/home/PerlSource/perl") prefix, but I
can't figure out from INSTALL how to fix that at this point of the
build process (i.e. prior to install).

Thanks,
Richard

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About