develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119769] skip lib/ExtUtils/t/Embed.t when cross-compiling

Thread Next
From:
Francois PERRAD
Date:
September 13, 2013 07:35
Subject:
[perl #119769] skip lib/ExtUtils/t/Embed.t when cross-compiling
Message ID:
rt-3.6.HEAD-1873-1379057736-1569.119769-75-0@perl.org
# New Ticket Created by  Francois PERRAD 
# Please include the string:  [perl #119769]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119769 >


This is a bug report for perl from francois.perrad@gadz.org,
generated with the help of perlbug 1.39 running under perl 5.18.1.


-----------------------------------------------------------------
[Please describe your issue here]

The toolchain is not installed on the target when cross-compiling.
So, this test must be skipped, see patch below.

(info for dual life modules with same issue :
- ExtUtils-MakeMaker : see
https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/pull/69,
merged and shipped with 6.77_02
- Module-Builder : see
https://github.com/Perl-Toolchain-Gang/Module-Build/pull/30
- ExtUtils-Constant : see https://rt.cpan.org/Ticket/Display.html?id=88645
- ExtUtils-Install : see https://rt.cpan.org/Ticket/Display.html?id=88644
)

diff --git a/lib/ExtUtils/t/Embed.t b/lib/ExtUtils/t/Embed.t
index 7a83c98..380ae93 100644
--- a/lib/ExtUtils/t/Embed.t
+++ b/lib/ExtUtils/t/Embed.t
@@ -12,6 +12,10 @@
 use ExtUtils::Embed;
 use File::Spec;

+if ( $Config{'usecrosscompile'} ) {
+    print "1..0 # SKIP no toolchain installed when cross-compiling\n";
+    exit 0;
+}
 open(my $fh,">embed_test.c") || die "Cannot open embed_test.c:$!";
 print $fh <DATA>;
 close($fh);
-- 
1.7.9.5

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
---
Site configuration information for perl 5.18.1:

Configured by fperrad at Tue Sep 10 09:04:04 CEST 2013.

Summary of my perl5 (revision 5 version 18 subversion 1) configuration:

  Platform:
    osname=linux, osvers=3.2.0-49-generic, archname=i686-linux
    uname='linux gperrad-laptop 3.2.0-49-generic #75-ubuntu smp tue
jun 18 17:40:13 utc 2013 i686 i686 i386 gnulinux '
    config_args='-de
-Dprefix=/home/fperrad/perl5/perlbrew/perls/perl-5.18.1
-Aeval:scriptdir=/home/fperrad/perl5/perlbrew/perls/perl-5.18.1/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.6.3', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/i386-linux-gnu /lib/../lib
/usr/lib/i386-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.15'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'

Locally applied patches:


---
@INC for perl 5.18.1:
    /home/fperrad/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1/i686-linux
    /home/fperrad/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1
    /home/fperrad/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/i686-linux
    /home/fperrad/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1
    .

---
Environment for perl 5.18.1:
    HOME=/home/fperrad
    LANG=en_US.UTF-8
    LANGUAGE=fr:en
    LC_ADDRESS=fr_FR.UTF-8
    LC_IDENTIFICATION=fr_FR.UTF-8
    LC_MEASUREMENT=fr_FR.UTF-8
    LC_MONETARY=fr_FR.UTF-8
    LC_NAME=fr_FR.UTF-8
    LC_NUMERIC=fr_FR.UTF-8
    LC_PAPER=fr_FR.UTF-8
    LC_TELEPHONE=fr_FR.UTF-8
    LC_TIME=fr_FR.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/fperrad/perl5/perlbrew/bin:/home/fperrad/perl5/perlbrew/perls/perl-5.18.1/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    PERLBREW_BASHRC_VERSION=0.64
    PERLBREW_HOME=/home/fperrad/.perlbrew
    PERLBREW_MANPATH=/home/fperrad/perl5/perlbrew/perls/perl-5.18.1/man
    PERLBREW_PATH=/home/fperrad/perl5/perlbrew/bin:/home/fperrad/perl5/perlbrew/perls/perl-5.18.1/bin
    PERLBREW_PERL=perl-5.18.1
    PERLBREW_ROOT=/home/fperrad/perl5/perlbrew
    PERLBREW_VERSION=0.64
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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