Skip Menu |
Report information
Id: 121963
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: dexter [at] cpan.org
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: (no value)
Fixed In: (no value)



Subject: 5.20.0-RC1 can't compile on Android
$ make cc -L/system/lib -fstack-protector -o miniperl \ perlmini.o opmini.o miniperlmain.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o -ldl -lm -lc ./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 355. Use of uninitialized value $Config::Config{"sh"} in concatenation (.) or string at dist/PathTools/Cwd.pm line 359. Can't exec "-c": No such file or directory at dist/PathTools/Cwd.pm line 381. Can't exec "-c": No such file or directory at dist/PathTools/Cwd.pm line 381. Can't exec "-c": No such file or directory at dist/PathTools/Cwd.pm line 381. ... Summary of my perl5 (revision 5 version 20 subversion 0) configuration: Platform: osname=android, osvers=4.1.2, archname=armv7l-linux-android uname='linux localhost 3.4.61-liberty-sense-v4-g291f820-dirty #1 smp preempt thu sep 12 14:36:20 eat 2013 armv7l gnulinux ' config_args='-des -Dsh=/system/bin/sh -Dlibpth=/system/lib /data/data/com.pdaxrom.cctools/root/cctools/lib -Dusrinc=/data/data/com.pdaxrom.cctools/root/cctools/arm-linux-androideabi/include -Dprefix=/data/data/com.pdaxrom.cctools/root/cctools' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -fstack-protector' ccversion='', gccversion='4.8', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/system/lib -fstack-protector' libpth=/system/lib /data/data/com.pdaxrom.cctools/root/cctools/lib /data/data/com.pdaxrom.cctools/root/cctools/bin/../lib/gcc/arm-linux-androideabi/4.8/include-fixed /data/data/com.pdaxrom.cctools/root/cctools/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/lib libs=-ldl -lm -lc perllibs=-ldl -lm -lc libc=/system/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/system/lib -fstack-protector' It is because there is no Config.pm already when write_buildcustomize.pl is running. Perhaps Cwd module should fall back to /system/bin/sh when $Config::Config{sh} is undefined.
From: Jarkko Hietaniemi <jhi [...] iki.fi>
Subject: Re: [perl #121963] 5.20.0-RC1 can't compile on Android
To: perl5-porters [...] perl.org
Date: Mon, 26 May 2014 08:33:22 -0400
Download (untitled) / with headers
text/plain 380b
On Monday-201405-26, 7:01, Piotr Roszatycki (via RT) wrote: Show quoted text
> It is because there is no Config.pm already when write_buildcustomize.pl is running. Perhaps Cwd module should fall back to /system/bin/sh when $Config::Config{sh} is undefined.
Sounds feasible. Could you try making a change and seeing if that helps? Inserting an elsif (-x ...) in Cwd.pm for this special sh?
From: Brian Fraser <fraserbn [...] gmail.com>
Subject: Re: [perl #121963] 5.20.0-RC1 can't compile on Android
CC: bugs-bitbucket [...] rt.perl.org
To: Perl5 Porters Mailing List <perl5-porters [...] perl.org>
Date: Thu, 29 May 2014 17:19:54 +0200
Download (untitled) / with headers
text/plain 3.6k
On Mon, May 26, 2014 at 1:01 PM, Piotr Roszatycki <perlbug-followup@perl.org> wrote: Show quoted text
> # New Ticket Created by Piotr Roszatycki > # Please include the string: [perl #121963] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=121963 > > > > > $ make > cc -L/system/lib -fstack-protector -o miniperl \ > perlmini.o opmini.o miniperlmain.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o -ldl -lm -lc > ./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 355. > Use of uninitialized value $Config::Config{"sh"} in concatenation (.) or string at dist/PathTools/Cwd.pm line 359. > Can't exec "-c": No such file or directory at dist/PathTools/Cwd.pm line 381. > Can't exec "-c": No such file or directory at dist/PathTools/Cwd.pm line 381. > Can't exec "-c": No such file or directory at dist/PathTools/Cwd.pm line 381. > ... > > > Summary of my perl5 (revision 5 version 20 subversion 0) configuration: > > Platform: > osname=android, osvers=4.1.2, archname=armv7l-linux-android > uname='linux localhost 3.4.61-liberty-sense-v4-g291f820-dirty #1 smp preempt thu sep 12 14:36:20 eat 2013 armv7l gnulinux ' > config_args='-des -Dsh=/system/bin/sh -Dlibpth=/system/lib /data/data/com.pdaxrom.cctools/root/cctools/lib -Dusrinc=/data/data/com.pdaxrom.cctools/root/cctools/arm-linux-androideabi/include -Dprefix=/data/data/com.pdaxrom.cctools/root/cctools' > hint=recommended, useposix=true, d_sigaction=define > useithreads=undef, usemultiplicity=undef > use64bitint=undef, use64bitall=undef, uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', > optimize='-O2', > cppflags='-fno-strict-aliasing -pipe -fstack-protector' > ccversion='', gccversion='4.8', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 > alignbytes=8, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -L/system/lib -fstack-protector' > libpth=/system/lib /data/data/com.pdaxrom.cctools/root/cctools/lib /data/data/com.pdaxrom.cctools/root/cctools/bin/../lib/gcc/arm-linux-androideabi/4.8/include-fixed /data/data/com.pdaxrom.cctools/root/cctools/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/lib > libs=-ldl -lm -lc > perllibs=-ldl -lm -lc > libc=/system/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' > cccdlflags='-fPIC', lddlflags='-shared -O2 -L/system/lib -fstack-protector' > > > It is because there is no Config.pm already when write_buildcustomize.pl is running. Perhaps Cwd module should fall back to /system/bin/sh when $Config::Config{sh} is undefined.
Hm.. I can see how this could happen, and have pushed the fix as e7d73da9c2d808c39145a762f6b4146a6d17b6b5 That being said, i wasn't able to reproduce it; may I ask how you're setting up your native build environment?
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 353b
On Czw 29 Maj 2014, 08:20:34, Hugmeir wrote: Show quoted text
> Hm.. I can see how this could happen, and have pushed the fix as > e7d73da9c2d808c39145a762f6b4146a6d17b6b5 > That being said, i wasn't able to reproduce it; may I ask how you're > setting up your native build environment?
CCTools with gcc, binutils and make https://github.com/dex4er/perl5/wiki/android
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 583b
On Fri May 30 12:31:41 2014, dexter@cpan.org wrote: Show quoted text
> On Czw 29 Maj 2014, 08:20:34, Hugmeir wrote:
> > Hm.. I can see how this could happen, and have pushed the fix as > > e7d73da9c2d808c39145a762f6b4146a6d17b6b5 > > That being said, i wasn't able to reproduce it; may I ask how you're > > setting up your native build environment?
> > CCTools with gcc, binutils and make > > https://github.com/dex4er/perl5/wiki/android
Contributors to this ticket: Can we get an update on the status of Perl 5 compilation on Android? Thank you very much. -- James E Keenan (jkeenan@cpan.org)
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 741b
On Thu Oct 16 18:19:22 2014, jkeenan wrote: Show quoted text
> On Fri May 30 12:31:41 2014, dexter@cpan.org wrote:
> > On Czw 29 Maj 2014, 08:20:34, Hugmeir wrote:
> > > Hm.. I can see how this could happen, and have pushed the fix as > > > e7d73da9c2d808c39145a762f6b4146a6d17b6b5 > > > That being said, i wasn't able to reproduce it; may I ask how you're > > > setting up your native build environment?
> > > > CCTools with gcc, binutils and make > > > > https://github.com/dex4er/perl5/wiki/android
> > Contributors to this ticket: > > Can we get an update on the status of Perl 5 compilation on Android? > > Thank you very much.
There have been no replies to the above message, but this ticket is listed as fixed in perl5201delta so I'm closing it.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org