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

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

Thread Next
From:
Richard Leach
Date:
April 16, 2019 19:43
Subject:
Re: [perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment
Message ID:
CADWSe2dww=3=GYNcMbSAJ54Tb16N2JW60DugZrEQZWvreewf4w@mail.gmail.com
On Tue, Feb 5, 2019 at 2:01 AM Richard Leach
<rich@hyphen-dash-hyphen.info> wrote:
> This problem arises in write_buildcustomize.pl, where an empty string
> is assigned to $cwd:
>   my $cwd = Cwd::getcwd();
>
> Discussion in https://rt.cpan.org/Ticket/Display.html?id=13851
> suggests that's to be expected when building as a non-root user
> lacking some access to (grand)parent directories. That is in fact what
> the Termux environment seems to give you.


Now getting further in the build process with a fresh copy of blead
(including Tony's Getcwd patch from RT#133951) and updated Termux
packages, using the following commands:

    export SYSROOT=/data/data/com.termux/files
    export LD_LIBRARY_PATH="$SYSROOT/lib:`pwd`:`pwd`/lib:`pwd`/lib/auto:$LD_LIBRARY_PATH"
    sh Configure -des -Dsysroot=$SYSROOT -Alibpth="/system/lib
/vendor/lib" -Dusedevel -Ud_newlocale


Current status is:
* "make miniperl" - succeeds
* "make minitest" - fails with only 1 error (due to absence of /tmp:
discussed on IRC, see RT#134039 for patch)
* "make" - the perl executable gets built, but the following fatal
error is then encountered:

/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../miniperl
"-I/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../lib"
-MExtUtils::Command::MM -e 'cp_nonempty' -- B.bs
/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../lib/auto/B/B.bs
644
"../../miniperl"
"-I/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../lib"
"/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../lib/ExtUtils/xsubpp"
 -typemap '/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../lib/ExtUtils/typemap'
-typemap '/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/typemap'
 B.xs > B.xsc
mv B.xsc B.c
cc -c   -fno-strict-aliasing -pipe -fstack-protector-strong
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -Wall
-Werror=declaration-after-statement -Werror=pointer-arith -Wextra
-Wc++-compat -Wwrite-strings -O2   -DVERSION=\"1.76\"
-DXS_VERSION=\"1.76\" -fPIC --sysroot=/data/data/com.termux/files
"-I../.."   B.c
In file included from B.xs:13:
../../perl.h:697:10: fatal error: 'sys/types.h' file not found


I'm not sure which sys/types.h is being looked for. There's one under
/data/data/com.termux/files/usr/include, but trying to pass that path
in -Alocincpth made no difference.

Any suggestions?

Regards,
Richard

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