Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.20.0-RC1 can't compile on Android #13872

Closed
p5pRT opened this issue May 26, 2014 · 8 comments
Closed

5.20.0-RC1 can't compile on Android #13872

p5pRT opened this issue May 26, 2014 · 8 comments
Labels

Comments

@p5pRT
Copy link
Collaborator

@p5pRT p5pRT commented May 26, 2014

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

Searchable as RT121963$

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented May 26, 2014

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

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented May 26, 2014

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

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented May 26, 2014

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

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented May 29, 2014

From @Hugmeir

On Mon, May 26, 2014 at 1​:01 PM, Piotr Roszatycki
<perlbug-followup@​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
e7d73da
That being said, i wasn't able to reproduce it; may I ask how you're
setting up your native build environment?

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented May 30, 2014

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
e7d73da
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

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Oct 17, 2014

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
e7d73da
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

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Feb 26, 2016

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
e7d73da
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

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Feb 26, 2016

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

@p5pRT p5pRT closed this Feb 26, 2016
@p5pRT p5pRT added the Severity Low label Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.