Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.91k stars 542 forks source link

5.20.0-RC1 can't compile on Android #13872

Closed p5pRT closed 8 years ago

p5pRT commented 10 years ago

Migrated from rt.perl.org#121963 (status was 'resolved')

Searchable as RT121963$

p5pRT commented 10 years ago

From dexter@cpan.org

$ 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.

p5pRT commented 10 years ago

From @jhi

On Monday-201405-26\, 7​:01\, Piotr Roszatycki (via RT) wrote​:

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?

p5pRT commented 10 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 10 years ago

From @Hugmeir

On Mon\, May 26\, 2014 at 1​:01 PM\, Piotr Roszatycki \perlbug\-followup@&#8203;perl\.org wrote​:

# 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-archive.perl.org/perl5/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?

p5pRT commented 10 years ago

From dexter@cpan.org

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

p5pRT commented 9 years ago

From @jkeenan

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.

-- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 8 years ago

From @mauke

On Thu Oct 16 18​:19​:22 2014\, jkeenan wrote​:

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.

p5pRT commented 8 years ago

@mauke - Status changed from 'open' to 'resolved'