rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

PAR::Packer issue with ActivePerl 5.16.3 x86 on RHEL 6.10 #30

Closed AgostinoSturaro closed 3 years ago

AgostinoSturaro commented 3 years ago

I'm trying to install PAR::Packer on an ActivePerl 5.16.3 x86 on a RHEL 6.10 x64. It fails to install. Here is the command prompt

[/opt/ActivePerl-5.16/site/bin]
$ ./cpanm PAR
--> Working on PAR
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-1.016.tar.gz ... OK
Configuring PAR-1.016 ... OK
==> Found dependencies: PAR::Dist
--> Working on PAR::Dist
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Dist-0.51.tar.gz ... OK
Configuring PAR-Dist-0.51 ... OK
Building and testing PAR-Dist-0.51 ... OK
Successfully installed PAR-Dist-0.51
Building and testing PAR-1.016 ... OK
Successfully installed PAR-1.016
2 distributions installed

[/opt/ActivePerl-5.16/site/bin]
$ ./cpanm PAR::Packer
--> Working on PAR::Packer
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.051.tar.gz ... OK
Configuring PAR-Packer-1.051 ... OK
==> Found dependencies: Getopt::ArgvFile, IPC::Run3, Module::ScanDeps
--> Working on Getopt::ArgvFile
Fetching http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz ... OK
Configuring Getopt-ArgvFile-1.11 ... OK
Building and testing Getopt-ArgvFile-1.11 ... OK
Successfully installed Getopt-ArgvFile-1.11
--> Working on IPC::Run3
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/IPC-Run3-0.048.tar.gz ... OK
Configuring IPC-Run3-0.048 ... OK
Building and testing IPC-Run3-0.048 ... OK
Successfully installed IPC-Run3-0.048
--> Working on Module::ScanDeps
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1.29.tar.gz ... OK
Configuring Module-ScanDeps-1.29 ... OK
Building and testing Module-ScanDeps-1.29 ... OK
Successfully installed Module-ScanDeps-1.29
Building and testing PAR-Packer-1.051 ... FAIL
! Installing PAR::Packer failed. See /root/.cpanm/work/1606926629.5013/build.log for details. Retry with --force to force install it.
3 distributions installed

[/opt/ActivePerl-5.16/site/bin]
$ ./cpanm PAR::Packer
--> Working on PAR::Packer
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.051.tar.gz ... OK
Configuring PAR-Packer-1.051 ... OK
Building and testing PAR-Packer-1.051 ... FAIL
! Installing PAR::Packer failed. See /root/.cpanm/work/1606926712.5624/build.log for details. Retry with --force to force install it.

Here is the content of /root/.cpanm/work/1606926712.5624/build.log

cpanm (App::cpanminus) 1.7044 on perl 5.016003 built for i686-linux-thread-multi
Work directory is /root/.cpanm/work/1606926712.5624
You have make /usr/bin/make
You have LWP 6.15
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching PAR::Packer () on cpanmetadb ...
--> Working on PAR::Packer
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.051.tar.gz
-> OK
Unpacking PAR-Packer-1.051.tar.gz
Entering PAR-Packer-1.051
Checking configure dependencies from META.json
Checking if you have ExtUtils::Embed 0 ... Yes (1.3001)
Checking if you have File::Glob 0 ... Yes (1.17)
Checking if you have File::Spec::Functions 0 ... Yes (3.40)
Checking if you have File::Basename 0 ... Yes (2.84)
Checking if you have DynaLoader 0 ... Yes (1.14)
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280212)
Configuring PAR-Packer-1.051
Running Makefile.PL
Checking if your kit is complete...
Looks good
Subroutine MY::postamble redefined at ./Makefile.PL line 230.
Use of uninitialized value $Config{"use64bitint"} in string eq at ./Makefile.PL line 197.
Generating a Unix-style Makefile
Writing Makefile for myldr
Generating a Unix-style Makefile
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
# using "ldd" to find shared libraries needed by ./par
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Compress::Zlib 1.30 ... Yes (2.063)
Checking if you have Archive::Zip 1.02 ... Yes (1.36)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.84)
Checking if you have Getopt::ArgvFile 1.07 ... Yes (1.11)
Checking if you have IO::Compress::Gzip 0 ... Yes (2.063)
Checking if you have PAR 1.016 ... Yes (1.016)
Checking if you have Test::More 0 ... Yes (1.302181)
Checking if you have PAR::Dist 0.22 ... Yes (0.51)
Checking if you have Text::ParseWords 0 ... Yes (3.29)
Checking if you have File::Temp 0.05 ... Yes (0.2304)
Checking if you have Digest::SHA 5.40 ... Yes (5.85)
Checking if you have IPC::Run3 0.048 ... Yes (0.048)
Checking if you have Module::ScanDeps 1.21 ... Yes (1.29)
Building and testing PAR-Packer-1.051
cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/pp.pm blib/lib/pp.pm
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
make[1]: Entering directory `/root/.cpanm/work/1606926712.5624/PAR-Packer-1.051/myldr'
Makefile:860: warning: overriding commands for target `.c.o'
Makefile:345: warning: ignoring old commands for target `.c.o'
/opt/ActivePerl-5.16/bin/perl-static par_pl2c.pl my_par_pl < ../script/par.pl > my_par_pl.c 
gcc -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/opt/ActivePerl-5.16/lib/CORE  -DLDLIBPTHNAME=\"LD_LIBRARY_PATH\" -DPARL_EXE=\"parl\" -DPAR_PACKER_VERSION=\"1.051\" -O2 main.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/opt/ActivePerl-5.16/lib/CORE  -DLDLIBPTHNAME=\"LD_LIBRARY_PATH\" -DPARL_EXE=\"parl\" -DPAR_PACKER_VERSION=\"1.051\" -O2 -DBYTEORDER=0x1234 sha1.c
gcc main.o sha1.o  -s -Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE   -L/opt/ActivePerl-5.16/lib/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc  -o ./par
/usr/bin/ld: skipping incompatible /opt/ActivePerl-5.16/lib/CORE/libperl.so when searching for -lperl
/usr/bin/ld: skipping incompatible /opt/ActivePerl-5.16/lib/CORE/libperl.a when searching for -lperl
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [par] Error 1
make[1]: Leaving directory `/root/.cpanm/work/1606926712.5624/PAR-Packer-1.051/myldr'
make: *** [subdirs] Error 2
-> FAIL Installing PAR::Packer failed. See /root/.cpanm/work/1606926712.5624/build.log for details. Retry with --force to force install it.

I also have an older Perl version installed, but not in PATH.

[/opt/ActivePerl-5.16/site/bin]
$ yum list installed | grep perl
perl.x86_64                        4:5.10.1-144.el6          @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Archive-Extract.x86_64        1:0.38-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Archive-Tar.x86_64            1.58-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-CGI.x86_64                    3.51-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-CPAN.x86_64                   1.9402-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-CPANPLUS.x86_64               0.88-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Compress-Raw-Bzip2.x86_64     2.021-144.el6             @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Compress-Raw-Zlib.x86_64      1:2.021-144.el6           @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Compress-Zlib.x86_64          2.021-144.el6             @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Crypt-SSLeay.x86_64           0.57-17.el6               @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-DBD-SQLite.x86_64             1.27-3.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-DBI.x86_64                    1.609-4.el6               @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-DBIx-Simple.noarch            1.32-3.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Digest-SHA.x86_64             1:5.47-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Error.noarch                  1:0.17015-4.el6           @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-ExtUtils-CBuilder.x86_64      1:0.27-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-ExtUtils-Embed.x86_64         1.28-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-ExtUtils-MakeMaker.x86_64     6.55-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-ExtUtils-ParseXS.x86_64       1:2.2003.0-144.el6        @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-File-Fetch.x86_64             0.26-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Git.noarch                    1.7.1-10.el6_10           @rhel-6-server-rpms
perl-HTML-Parser.x86_64            3.64-2.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-HTML-Tagset.noarch            3.20-4.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-IO-Compress-Base.x86_64       2.021-144.el6             @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-IO-Compress-Bzip2.x86_64      2.021-144.el6             @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-IO-Compress-Zlib.x86_64       2.021-144.el6             @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-IO-Zlib.x86_64                1:1.09-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-IPC-Cmd.x86_64                1:0.56-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Locale-Maketext-Simple.x86_64 1:0.18-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Log-Message.x86_64            1:0.02-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Log-Message-Simple.x86_64     0.04-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Module-Build.x86_64           1:0.3500-144.el6          @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Module-CoreList.x86_64        2.18-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Module-Load.x86_64            1:0.16-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Module-Load-Conditional.x86_64
perl-Module-Loaded.x86_64          1:0.02-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Module-Pluggable.x86_64       1:3.90-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Object-Accessor.x86_64        1:0.34-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Package-Constants.x86_64      1:0.02-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Params-Check.x86_64           1:0.26-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Parse-CPAN-Meta.x86_64        1:1.40-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Pod-Escapes.x86_64            1:1.04-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Pod-Simple.x86_64             1:3.13-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-SGMLSpm.noarch                1.03ii-21.el6             @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Term-UI.x86_64                0.20-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Test-Harness.x86_64           3.17-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Test-Simple.x86_64            0.92-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Time-HiRes.x86_64             4:1.9721-144.el6          @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-Time-Piece.x86_64             1.15-144.el6              @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-URI.noarch                    1.40-2.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-XML-Dumper.noarch             0.81-8.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-XML-Grove.noarch              0.46alpha-40.el6          @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-XML-Parser.x86_64             2.36-7.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-XML-Twig.noarch               3.34-1.el6                @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-core.x86_64                   5.10.1-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-devel.x86_64                  4:5.10.1-144.el6          @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-libs.x86_64                   4:5.10.1-144.el6          @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-libwww-perl.noarch            5.833-5.el6               @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-libxml-perl.noarch            0.08-10.el6               @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-parent.x86_64                 1:0.221-144.el6           @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10
perl-version.x86_64                3:0.77-144.el6            @anaconda-RedHatEnterpriseLinux-201806150656.x86_64/6.10

[/opt/ActivePerl-5.16/site/bin]
$ which perl
/opt/ActivePerl-5.16/bin/perl

Any idea how to get this to install on the ActivePerl version? I had no problem installing cpanm there. Thank you.

rschupp commented 3 years ago

Looks like you're building with a 32-bit perl on a 64-bit user space. What does

$ file /opt/ActivePerl-5.16/bin/perl{,-static} /opt/ActivePerl-5.16/lib/CORE/libperl.so
$ /opt/ActivePerl-5.16/bin/perl -V
$ /opt/ActivePerl-5.16/bin/perl-static -V

print?

AgostinoSturaro commented 3 years ago

Yes, I'm trying to build 32 bit on a 64 bit OS.

[/opt/ActivePerl-5.16/site/bin]
$ file /opt/ActivePerl-5.16/bin/perl{,-static} /opt/ActivePerl-5.16/lib/CORE/libperl.so
/opt/ActivePerl-5.16/bin/perl:            symbolic link to `perl-static'
/opt/ActivePerl-5.16/bin/perl-static:     ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
/opt/ActivePerl-5.16/lib/CORE/libperl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped

[/opt/ActivePerl-5.16/site/bin]
$ /opt/ActivePerl-5.16/bin/perl -V
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:

  Platform:
    osname=linux, osvers=2.6.17-1.2142_fc4, archname=i686-linux-thread-multi
    uname='linux perl-linux-vm 2.6.17-1.2142_fc4 #1 tue jul 11 22:41:14 edt 2006 i686 i686 i386 gnulinux '
    config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/opt/ActivePerl-5.16 -Dprivlib=/opt/ActivePerl-5.16/lib -Darchlib=/opt/ActivePerl-5.16/lib -Dsiteprefix=/opt/ActivePerl-5.16/site -Dsitelib=/opt/ActivePerl-5.16/site/lib -Dsitearch=/opt/ActivePerl-5.16/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe'
    ccversion='', gccversion='4.0.2 20051125 (Red Hat 4.0.2-8)', 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='gcc', ldflags =''
    libpth=/lib /usr/lib /usr/local/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.6'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2'

Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV
                        PERL_RELOCATABLE_INCPUSH USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API USE_SITECUSTOMIZE
  Locally applied patches:
    ActivePerl Build 1604 [298023]
  Built under linux
  Compiled at Apr 14 2014 14:46:50
  %ENV:
    PERL5LIB="/git/BESTools/BESToolsFramework/SharedPerlModules"
  @INC:
    /git/BESTools/BESToolsFramework/SharedPerlModules
    /opt/ActivePerl-5.16/site/lib
    /opt/ActivePerl-5.16/lib
    .

[/opt/ActivePerl-5.16/site/bin]
$ /opt/ActivePerl-5.16/bin/perl-static -V
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:

  Platform:
    osname=linux, osvers=2.6.17-1.2142_fc4, archname=i686-linux-thread-multi
    uname='linux perl-linux-vm 2.6.17-1.2142_fc4 #1 tue jul 11 22:41:14 edt 2006 i686 i686 i386 gnulinux '
    config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/opt/ActivePerl-5.16 -Dprivlib=/opt/ActivePerl-5.16/lib -Darchlib=/opt/ActivePerl-5.16/lib -Dsiteprefix=/opt/ActivePerl-5.16/site -Dsitelib=/opt/ActivePerl-5.16/site/lib -Dsitearch=/opt/ActivePerl-5.16/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe'
    ccversion='', gccversion='4.0.2 20051125 (Red Hat 4.0.2-8)', 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='gcc', ldflags =''
    libpth=/lib /usr/lib /usr/local/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.6'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2'

Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV
                        PERL_RELOCATABLE_INCPUSH USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API USE_SITECUSTOMIZE
  Locally applied patches:
    ActivePerl Build 1604 [298023]
  Built under linux
  Compiled at Apr 14 2014 14:46:50
  %ENV:
    PERL5LIB="/git/BESTools/BESToolsFramework/SharedPerlModules"
  @INC:
    /git/BESTools/BESToolsFramework/SharedPerlModules
    /opt/ActivePerl-5.16/site/lib
    /opt/ActivePerl-5.16/lib
    .
rschupp commented 3 years ago

@AgostinoSturaro

Yes, I'm trying to build 32 bit on a 64 bit OS.

Here's your problem:

Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',

I guess you don't have a 32-bit gcc installed so that gcc will invoke your "native" 64-bit compiler (which produces 64-bit objects by default). I doubt that you ever built any XS perl module in this setting. The easiest solution is to patch /opt/ActivePerl-5.16/.../Config.pm and add -m32 to the value of cflags.

AgostinoSturaro commented 3 years ago

Thank you. I updated cpan, installed cpanm and other modules just fine, but I'm sure if that built modules with C code. I thought so, but I might be wrong. The installed gcc does build 32 and 64 bit projects (I tried it) but I'm not really an expert in picking compiler flags.

I searched for ccflags in both .pl and .pm files and the most interesting are:

In /opt/ActivePerl-5.16/lib/ActivePerl/Config.pm I see $^O eq OS checks for many kernels except Linux specifically. It was quite involved and I didn't change it. I can paste it if you need to see it.

In /opt/ActivePerl-5.16/lib/Config_heavy.pl looked more promising, with a clearly stated ccflags value.

Copy-pasted /opt/ActivePerl-5.16/lib/Config_heavy.pl file (click to open spoiler) ``` # This file was created by configpm when Perl was built. Any changes # made to this file will be lost the next time perl is built. package Config; use strict; use warnings; use vars '%Config'; sub bincompat_options { return split ' ', (Internals::V())[0]; } sub non_bincompat_options { return split ' ', (Internals::V())[1]; } sub compile_date { return (Internals::V())[2] } sub local_patches { my (undef, undef, undef, @patches) = Internals::V(); return @patches; } BEGIN { unless ($ENV{ACTIVEPERL_CONFIG_DISABLE}) { eval { require ActivePerl::Config; }; die $@ if $@ && $@ !~ /^Can't locate ActivePerl\/Config\.pm/; } } sub _V { my ($bincompat, $non_bincompat, $date, @patches) = Internals::V(); my $opts = join ' ', sort split ' ', "$bincompat $non_bincompat"; # wrap at 76 columns. $opts =~ s/(?=.{53})(.{1,53}) /$1\n /mg; print Config::myconfig(); if ($^O eq 'VMS') { print "\nCharacteristics of this PERLSHR image: \n"; } else { print "\nCharacteristics of this binary (from libperl): \n"; } print " Compile-time options: $opts\n"; if (@patches) { print " Locally applied patches:\n"; print "\t$_\n" foreach @patches; } print " Built under $^O\n"; print " $date\n" if defined $date; my @env = map { "$_=\"$ENV{$_}\"" } sort grep {/^PERL/} keys %ENV; push @env, "CYGWIN=\"$ENV{CYGWIN}\"" if $^O eq 'cygwin' and $ENV{CYGWIN}; if (@env) { print " \%ENV:\n"; print " $_\n" foreach @env; } print " \@INC:\n"; print " $_\n" foreach @INC; } sub header_files { return qw(EXTERN.h INTERN.h XSUB.h av.h config.h cop.h cv.h dosish.h embed.h embedvar.h form.h gv.h handy.h hv.h intrpvar.h iperlsys.h keywords.h mg.h nostdio.h op.h opcode.h pad.h parser.h patchlevel.h perl.h perlio.h perliol.h perlsdio.h perlsfio.h perlvars.h perly.h pp.h pp_proto.h proto.h regcomp.h regexp.h regnodes.h scope.h sv.h thread.h time64.h unixish.h utf8.h util.h); } ## ## This file was produced by running the Configure script. It holds all the ## definitions figured out by Configure. Should you modify one of these values, ## do not forget to propagate your changes by running "Configure -der". You may ## instead choose to run each of the .SH files by yourself, or "Configure -S". ## # ## Package name : perl5 ## Source directory : . ## Configuration time: Mon Apr 14 14:51:59 PDT 2014 ## Configured by : ActiveState ## Target system : linux perl-linux-vm 2.6.17-1.2142_fc4 #1 tue jul 11 22:41:14 edt 2006 i686 i686 i386 gnulinux # #: Configure command line arguments. # #: Variables propagated from previous config.sh file. our $summary = <<'!END!'; Summary of my $package (revision $revision $version_patchlevel_string) configuration: $git_commit_id_title $git_commit_id$git_ancestor_line Platform: osname=$osname, osvers=$osvers, archname=$archname uname='$myuname' config_args='$config_args' hint=$hint, useposix=$useposix, d_sigaction=$d_sigaction useithreads=$useithreads, usemultiplicity=$usemultiplicity useperlio=$useperlio, d_sfio=$d_sfio, uselargefiles=$uselargefiles, usesocks=$usesocks use64bitint=$use64bitint, use64bitall=$use64bitall, uselongdouble=$uselongdouble usemymalloc=$usemymalloc, bincompat5005=undef Compiler: cc='$cc', ccflags ='$ccflags', optimize='$optimize', cppflags='$cppflags' ccversion='$ccversion', gccversion='$gccversion', gccosandvers='$gccosandvers' intsize=$intsize, longsize=$longsize, ptrsize=$ptrsize, doublesize=$doublesize, byteorder=$byteorder d_longlong=$d_longlong, longlongsize=$longlongsize, d_longdbl=$d_longdbl, longdblsize=$longdblsize ivtype='$ivtype', ivsize=$ivsize, nvtype='$nvtype', nvsize=$nvsize, Off_t='$lseektype', lseeksize=$lseeksize alignbytes=$alignbytes, prototype=$prototype Linker and Libraries: ld='$ld', ldflags ='$ldflags' libpth=$libpth libs=$libs perllibs=$perllibs libc=$libc, so=$so, useshrplib=$useshrplib, libperl=$libperl gnulibc_version='$gnulibc_version' Dynamic Linking: dlsrc=$dlsrc, dlext=$dlext, d_dlsymun=$d_dlsymun, ccdlflags='$ccdlflags' cccdlflags='$cccdlflags', lddlflags='$lddlflags' !END! my $summary_expanded; sub myconfig { return $summary_expanded if $summary_expanded; ($summary_expanded = $summary) =~ s{\$(\w+)} { my $c; if ($1 eq 'git_ancestor_line') { if ($Config::Config{git_ancestor}) { $c= "\n Ancestor: $Config::Config{git_ancestor}"; } else { $c= ""; } } else { $c = $Config::Config{$1}; } defined($c) ? $c : 'undef' }ge; $summary_expanded; } local *_ = \my $a; $_ = <<'!END!'; Author='' CONFIG='true' Date='$Date' Header='' Id='$Id' Locker='' Log='$Log' PATCHLEVEL='16' PERL_API_REVISION='5' PERL_API_SUBVERSION='0' PERL_API_VERSION='16' PERL_CONFIG_SH='true' PERL_PATCHLEVEL='' PERL_REVISION='5' PERL_SUBVERSION='3' PERL_VERSION='16' RCSfile='$RCSfile' Revision='$Revision' SUBVERSION='3' Source='' State='' _a='.a' _exe='' _o='.o' afs='false' afsroot='/afs' alignbytes='4' ansi2knr='' aphostname='/bin/hostname' api_revision='5' api_subversion='0' api_version='16' api_versionstring='5.16.0' ar='ar' archlib='/opt/ActivePerl-5.16/lib' archlibexp='/opt/ActivePerl-5.16/lib' archname64='' archname='i686-linux-thread-multi' archobjs='' asctime_r_proto='REENTRANT_PROTO_B_SB' awk='awk' baserev='5.0' bash='' bin='/opt/ActivePerl-5.16/bin' bin_ELF='define' binexp='/opt/ActivePerl-5.16/bin' bison='bison' byacc='byacc' byteorder='1234' c='' castflags='0' cat='cat' cc='gcc' cccdlflags='-fPIC' ccdlflags='-Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE' ccflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccname='gcc' ccsymbols='' ccversion='' cf_by='ActiveState' cf_email='support@ActiveState.com' cf_time='Mon Apr 14 14:51:59 PDT 2014' charbits='8' charsize='1' chgrp='' chmod='chmod' chown='' clocktype='clock_t' comm='comm' compress='' config_arg0='./Configure' config_arg10='-Accflags=-DPERL_RELOCATABLE_INCPUSH' config_arg11='-Accflags=-fno-merge-constants' config_arg12='-Dprefix=/opt/ActivePerl-5.16' config_arg13='-Dprivlib=/opt/ActivePerl-5.16/lib' config_arg14='-Darchlib=/opt/ActivePerl-5.16/lib' config_arg15='-Dsiteprefix=/opt/ActivePerl-5.16/site' config_arg16='-Dsitelib=/opt/ActivePerl-5.16/site/lib' config_arg17='-Dsitearch=/opt/ActivePerl-5.16/site/lib' config_arg18='-Dsed=/bin/sed' config_arg19='-Duseshrplib' config_arg1='-ders' config_arg20='' config_arg21='-Dcf_by=ActiveState' config_arg22='-Dcf_email=support@ActiveState.com' config_arg2='-Dcc=gcc' config_arg3='-Dusethreads' config_arg4='-Duseithreads' config_arg5='-Uinstallusrbinperl' config_arg6='-Ulocincpth=' config_arg7='-Uloclibpth=' config_arg8='-Accflags=-DUSE_SITECUSTOMIZE' config_arg9='-Duselargefiles' config_argc='22' config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/opt/ActivePerl-5.16 -Dprivlib=/opt/ActivePerl-5.16/lib -Darchlib=/opt/ActivePerl-5.16/lib -Dsiteprefix=/opt/ActivePerl-5.16/site -Dsitelib=/opt/ActivePerl-5.16/site/lib -Dsitearch=/opt/ActivePerl-5.16/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com' config_heavy='Config_heavy.pl' contains='grep' cp='cp' cpio='' cpp='cpp' cpp_stuff='42' cppccsymbols='' cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe' cpplast='-' cppminus='-' cpprun='gcc -E' cppstdin='gcc -E' cppsymbols='_FILE_OFFSET_BITS=64 _GNU_SOURCE=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 _POSIX_C_SOURCE=199506L _POSIX_SOURCE=1 _REENTRANT=1 _XOPEN_SOURCE=600 _XOPEN_SOURCE_EXTENDED=1 __CHAR_BIT__=8 __DBL_DENORM_MIN__=4.9406564584124654e-324 __DBL_DIG__=15 __DBL_EPSILON__=2.2204460492503131e-16 __DBL_HAS_INFINITY__=1 __DBL_HAS_QUIET_NAN__=1 __DBL_MANT_DIG__=53 __DBL_MAX_10_EXP__=308 __DBL_MAX_EXP__=1024 __DBL_MAX__=1.7976931348623157e+308 __DBL_MIN_10_EXP__=(-307) __DBL_MIN_EXP__=(-1021) __DBL_MIN__=2.2250738585072014e-308 __DECIMAL_DIG__=21 __ELF__=1 __FINITE_MATH_ONLY__=0 __FLT_DENORM_MIN__=1.40129846e-45F __FLT_DIG__=6 __FLT_EPSILON__=1.19209290e-7F __FLT_EVAL_METHOD__=2 __FLT_HAS_INFINITY__=1 __FLT_HAS_QUIET_NAN__=1 __FLT_MANT_DIG__=24 __FLT_MAX_10_EXP__=38 __FLT_MAX_EXP__=128 __FLT_MAX__=3.40282347e+38F __FLT_MIN_10_EXP__=(-37) __FLT_MIN_EXP__=(-125) __FLT_MIN__=1.17549435e-38F __FLT_RADIX__=2 __GLIBC_MINOR__=3 __GLIBC__=2 __GNUC_MINOR__=0 __GNUC_PATCHLEVEL__=2 __GNUC_RH_RELEASE__=8 __GNUC__=4 __GNU_LIBRARY__=6 __GXX_ABI_VERSION=1002 __INTMAX_MAX__=9223372036854775807LL __INTMAX_TYPE__=long\ long\ int __INT_MAX__=2147483647 __LDBL_DENORM_MIN__=3.64519953188247460253e-4951L __LDBL_DIG__=18 __LDBL_EPSILON__=1.08420217248550443401e-19L __LDBL_HAS_INFINITY__=1 __LDBL_HAS_QUIET_NAN__=1 __LDBL_MANT_DIG__=64 __LDBL_MAX_10_EXP__=4932 __LDBL_MAX_EXP__=16384 __LDBL_MAX__=1.18973149535723176502e+4932L __LDBL_MIN_10_EXP__=(-4931) __LDBL_MIN_EXP__=(-16381) __LDBL_MIN__=3.36210314311209350626e-4932L __LONG_LONG_MAX__=9223372036854775807LL __LONG_MAX__=2147483647L __PTRDIFF_TYPE__=int __REGISTER_PREFIX__= __SCHAR_MAX__=127 __SHRT_MAX__=32767 __SIZE_TYPE__=unsigned\ int __STDC_HOSTED__=1 __STDC__=1 __UINTMAX_TYPE__=long\ long\ unsigned\ int __USER_LABEL_PREFIX__= __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_POSIX=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 __VERSION__="4.0.2\ 20051125\ (Red\ Hat\ 4.0.2-8)" __WCHAR_MAX__=2147483647 __WCHAR_TYPE__=long\ int __WINT_TYPE__=unsigned\ int __gnu_linux__=1 __i386=1 __i386__=1 __linux=1 __linux__=1 __tune_i386__=1 __unix=1 __unix__=1 i386=1 linux=1 unix=1' crypt_r_proto='REENTRANT_PROTO_B_CCS' cryptlib='' csh='csh' ... ```

I changed /opt/ActivePerl-5.16/lib/Config_heavy.pl like this ccflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' -m32

That's the only change I made. I'm not sure If I also need to add it to ccflags_nolargefiles

our $Config_SH_expanded = "\n$_" . << 'EOVIRTUAL';
ccflags_nolargefiles='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe '
ldflags_nolargefiles=''
libs_nolargefiles='-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc'
libswanted_nolargefiles='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util pthread c cposix posix ucb BSD gdbm_compat'
EOVIRTUAL

and to ccflags_uselargefiles.

ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
The flag now shows up (click to open spoiler) ``` [/opt/ActivePerl-5.16/site/bin] $ file /opt/ActivePerl-5.16/bin/perl{,-static} /opt/ActivePerl-5.16/lib/CORE/libperl.so /opt/ActivePerl-5.16/bin/perl: symbolic link to `perl-static' /opt/ActivePerl-5.16/bin/perl-static: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped /opt/ActivePerl-5.16/lib/CORE/libperl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped [/opt/ActivePerl-5.16/site/bin] $ /opt/ActivePerl-5.16/bin/perl -V Summary of my perl5 (revision 5 version 16 subversion 3) configuration: Platform: osname=linux, osvers=2.6.17-1.2142_fc4, archname=i686-linux-thread-multi uname='linux perl-linux-vm 2.6.17-1.2142_fc4 #1 tue jul 11 22:41:14 edt 2006 i686 i686 i386 gnulinux ' config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/opt/ActivePerl-5.16 -Dprivlib=/opt/ActivePerl-5.16/lib -Darchlib=/opt/ActivePerl-5.16/lib -Dsiteprefix=/opt/ActivePerl-5.16/site -Dsitelib=/opt/ActivePerl-5.16/site/lib -Dsitearch=/opt/ActivePerl-5.16/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m32', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe' ccversion='', gccversion='4.0.2 20051125 (Red Hat 4.0.2-8)', 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='gcc', ldflags ='' libpth=/lib /usr/lib /usr/local/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.6' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE' cccdlflags='-fPIC', lddlflags='-shared -O2' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_RELOCATABLE_INCPUSH USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1604 [298023] Built under linux Compiled at Apr 14 2014 14:46:50 %ENV: PERL5LIB="/git/BESTools/BESToolsFramework/SharedPerlModules" @INC: /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib . [/opt/ActivePerl-5.16/site/bin] $ /opt/ActivePerl-5.16/bin/perl-static -V Summary of my perl5 (revision 5 version 16 subversion 3) configuration: Platform: osname=linux, osvers=2.6.17-1.2142_fc4, archname=i686-linux-thread-multi uname='linux perl-linux-vm 2.6.17-1.2142_fc4 #1 tue jul 11 22:41:14 edt 2006 i686 i686 i386 gnulinux ' config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/opt/ActivePerl-5.16 -Dprivlib=/opt/ActivePerl-5.16/lib -Darchlib=/opt/ActivePerl-5.16/lib -Dsiteprefix=/opt/ActivePerl-5.16/site -Dsitelib=/opt/ActivePerl-5.16/site/lib -Dsitearch=/opt/ActivePerl-5.16/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m32', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe' ccversion='', gccversion='4.0.2 20051125 (Red Hat 4.0.2-8)', 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='gcc', ldflags ='' libpth=/lib /usr/lib /usr/local/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.6' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE' cccdlflags='-fPIC', lddlflags='-shared -O2' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_RELOCATABLE_INCPUSH USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1604 [298023] Built under linux Compiled at Apr 14 2014 14:46:50 %ENV: PERL5LIB="/git/BESTools/BESToolsFramework/SharedPerlModules" @INC: /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib . ```

But the build still fails

[/opt/ActivePerl-5.16/site/bin]
$ ./cpanm PAR::Packer
--> Working on PAR::Packer
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.051.tar.gz ... OK
Configuring PAR-Packer-1.051 ... OK
Building and testing PAR-Packer-1.051 ... FAIL
! Installing PAR::Packer failed. See /root/.cpanm/work/1606995215.30120/build.log for details. Retry with --force to force install it.
Here's the build log (click to open spoiler) ``` cpanm (App::cpanminus) 1.7044 on perl 5.016003 built for i686-linux-thread-multi Work directory is /root/.cpanm/work/1606995215.30120 You have make /usr/bin/make You have LWP 6.15 You have /bin/tar: tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching PAR::Packer () on cpanmetadb ... --> Working on PAR::Packer Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.051.tar.gz -> OK Unpacking PAR-Packer-1.051.tar.gz Entering PAR-Packer-1.051 Checking configure dependencies from META.json Checking if you have ExtUtils::Embed 0 ... Yes (1.3001) Checking if you have File::Glob 0 ... Yes (1.17) Checking if you have File::Spec::Functions 0 ... Yes (3.40) Checking if you have File::Basename 0 ... Yes (2.84) Checking if you have DynaLoader 0 ... Yes (1.14) Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280212) Configuring PAR-Packer-1.051 Running Makefile.PL /usr/bin/ld: i386 architecture of input file `compilet-fsK16.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status No compiler found, won't generate 'script/parl! Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have Compress::Zlib 1.30 ... Yes (2.063) Checking if you have Archive::Zip 1.02 ... Yes (1.36) Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.84) Checking if you have Getopt::ArgvFile 1.07 ... Yes (1.11) Checking if you have IO::Compress::Gzip 0 ... Yes (2.063) Checking if you have PAR 1.016 ... Yes (1.016) Checking if you have Test::More 0 ... Yes (1.302181) Checking if you have PAR::Dist 0.22 ... Yes (0.51) Checking if you have Text::ParseWords 0 ... Yes (3.29) Checking if you have File::Temp 0.05 ... Yes (0.2304) Checking if you have Digest::SHA 5.40 ... Yes (5.85) Checking if you have IPC::Run3 0.048 ... Yes (0.048) Checking if you have Module::ScanDeps 1.21 ... Yes (1.29) Building and testing PAR-Packer-1.051 cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm cp lib/pp.pm blib/lib/pp.pm cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm cp script/tkpp blib/script/tkpp /opt/ActivePerl-5.16/bin/perl-static -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/tkpp cp script/pp blib/script/pp /opt/ActivePerl-5.16/bin/perl-static -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pp cp script/par.pl blib/script/par.pl /opt/ActivePerl-5.16/bin/perl-static -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/par.pl Manifying blib/man1/par.pl.1 Manifying blib/man1/pp.1 Manifying blib/man1/tkpp.1 Manifying blib/man3/App::Packer::PAR.3 Manifying blib/man3/PAR::Filter.3 Manifying blib/man3/PAR::Filter::Bleach.3 Manifying blib/man3/PAR::Filter::Bytecode.3 Manifying blib/man3/PAR::Filter::Obfuscate.3 Manifying blib/man3/PAR::Filter::PatchContent.3 Manifying blib/man3/PAR::Filter::PodStrip.3 Manifying blib/man3/PAR::Packer.3 Manifying blib/man3/PAR::StrippedPARL::Base.3 Manifying blib/man3/pp.3 PERL_DL_NONLAZY=1 /opt/ActivePerl-5.16/bin/perl-static "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD # Failed test 'use PAR::StrippedPARL::Static;' # at t/10-parl-generation.t line 16. # Tried to use 'PAR::StrippedPARL::Static'. # Error: Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: CODE(0x94bdcc0) /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/t /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib . CODE(0x94be568)) at t/10-parl-generation.t line 16. # BEGIN failed--compilation aborted at t/10-parl-generation.t line 16. # Failed test 'use PAR::StrippedPARL::Dynamic;' # at t/10-parl-generation.t line 17. # Tried to use 'PAR::StrippedPARL::Dynamic'. # Error: Can't locate PAR/StrippedPARL/Dynamic.pm in @INC (@INC contains: CODE(0x94bdcc0) /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/t /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib . CODE(0x94be568)) at t/10-parl-generation.t line 17. # BEGIN failed--compilation aborted at t/10-parl-generation.t line 17. # Failed test 'Found the static build of parl in myldr' # at t/10-parl-generation.t line 28. # Looks like you failed 3 tests of 31. t/10-parl-generation.t ... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/31 subtests (less 27 skipped subtests: 1 okay) t/20-pp.t ................ skipped: 'parl' not found # Please wait Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'Created "/tmp/CPvDZ_OkgF/current_exec"' # at t/30-current_exec.t line 27. Failed to create "/tmp/CPvDZ_OkgF/current_exec"! # Looks like your test exited with 2 just after 1. t/30-current_exec.t ...... Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Looks like your test exited with 2 before it could output anything. t/40-packer_cd_option.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: t /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/g71sS30TGA/packed"' # at ./t/utils.pl line 27. IO error: opening /tmp/g71sS30TGA/packed for read : No such file or directory at /opt/ActivePerl-5.16/lib/Archive/Zip/Archive.pm line 572. Archive::Zip::Archive::read(Archive::Zip::Archive=HASH(0x91d6b10), "/tmp/g71sS30TGA/packed") called at t/80-doublecolon.t line 41 can't read /tmp/g71sS30TGA/packed as a zip file at t/80-doublecolon.t line 41. # Looks like your test exited with 2 just after 1. t/80-doublecolon.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 8/8 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/gHUpnpCFrF/packed"' # at ./t/utils.pl line 27. No such file or directory at ./t/utils.pl line 38. # Looks like your test exited with 29 just after 1. t/85-crt-glob.t .......... Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 3/3 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: t /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/Ux5Z4Ajegf/packed"' # at ./t/utils.pl line 27. No such file or directory at ./t/utils.pl line 38. # Looks like your test exited with 29 just after 1. t/85-myfile.t ............ Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 6/6 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/yvVik6zSEf/packed"' # at ./t/utils.pl line 27. No such file or directory at ./t/utils.pl line 38. # Looks like your test exited with 29 just after 1. t/90-rt101800.t .......... Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 18/18 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/NCge4fcRDZ/packed"' # at ./t/utils.pl line 27. No such file or directory at ./t/utils.pl line 38. # Looks like your test exited with 29 just after 1. t/90-rt103861.t .......... Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 3/3 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/ClZ3AZDc1d/packed"' # at ./t/utils.pl line 27. IO error: opening /tmp/ClZ3AZDc1d/packed for read : No such file or directory at /opt/ActivePerl-5.16/lib/Archive/Zip/Archive.pm line 572. Archive::Zip::Archive::read(Archive::Zip::Archive=HASH(0xa2f3768), "/tmp/ClZ3AZDc1d/packed") called at t/90-rt104560.t line 32 can't open zip file "/tmp/ClZ3AZDc1d/packed" at t/90-rt104560.t line 32. # Looks like your test exited with 2 just after 1. t/90-rt104560.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 subtests Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: lib lib . /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/eRGFpahpfn/packed"' # at ./t/utils.pl line 27. IO error: opening /tmp/eRGFpahpfn/packed for read : No such file or directory at /opt/ActivePerl-5.16/lib/Archive/Zip/Archive.pm line 572. Archive::Zip::Archive::read(Archive::Zip::Archive=HASH(0x8f8e340), "/tmp/eRGFpahpfn/packed") called at t/90-rt104635.t line 21 can't read /tmp/eRGFpahpfn/packed as a zip file at t/90-rt104635.t line 21. # Looks like your test exited with 2 just after 1. t/90-rt104635.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 5/5 subtests t/90-rt122949.t .......... skipped: Tests only relevant on Windows t/90-rt127064.t .......... skipped: Tests only relevant on Windows Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/hb7foJQq8e/packed"' # at ./t/utils.pl line 27. Use of uninitialized value $exe_size in addition (+) at t/90-rt129312.t line 21. Permission denied at ./t/utils.pl line 38. # Looks like your test exited with 29 just after 2. t/90-rt129312.t .......... Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 3/4 subtests # found core module Carp in /opt/ActivePerl-5.16/lib/Carp.pm # found core module Exporter in /opt/ActivePerl-5.16/lib/Exporter.pm # found core module File::Glob in /opt/ActivePerl-5.16/lib/File/Glob.pm # found core module List::Util in /opt/ActivePerl-5.16/lib/List/Util.pm t/90-rt130685.t .......... ok Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/arch /git/BESTools/BESToolsFramework/SharedPerlModules /git/BESTools/BESToolsFramework/SharedPerlModules /opt/ActivePerl-5.16/site/lib /opt/ActivePerl-5.16/lib .) at /root/.cpanm/work/1606995215.30120/PAR-Packer-1.051/blib/lib/PAR/Packer.pm line 1271. # Failed test 'successfully packed "/tmp/yOUQU4OMW5/packed"' # at ./t/utils.pl line 27. No such file or directory at ./t/utils.pl line 38. # Looks like your test exited with 29 just after 1. t/90-rt59710.t ........... Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 3/3 subtests Test Summary Report ------------------- t/10-parl-generation.t (Wstat: 768 Tests: 31 Failed: 3) Failed tests: 2-4 Non-zero exit status: 3 t/30-current_exec.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 1. t/40-packer_cd_option.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 2 tests but ran 0. t/80-doublecolon.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 8 tests but ran 1. t/85-crt-glob.t (Wstat: 7424 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 29 Parse errors: Bad plan. You planned 3 tests but ran 1. t/85-myfile.t (Wstat: 7424 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 29 Parse errors: Bad plan. You planned 6 tests but ran 1. t/90-rt101800.t (Wstat: 7424 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 29 Parse errors: Bad plan. You planned 18 tests but ran 1. t/90-rt103861.t (Wstat: 7424 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 29 Parse errors: Bad plan. You planned 3 tests but ran 1. t/90-rt104560.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 1. t/90-rt104635.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 5 tests but ran 1. t/90-rt129312.t (Wstat: 7424 Tests: 2 Failed: 1) Failed test: 1 Non-zero exit status: 29 Parse errors: Bad plan. You planned 4 tests but ran 2. t/90-rt59710.t (Wstat: 7424 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 29 Parse errors: Bad plan. You planned 3 tests but ran 1. Files=17, Tests=50, 7 wallclock secs ( 0.05 usr 0.01 sys + 5.68 cusr 0.57 csys = 6.31 CPU) Result: FAIL Failed 12/17 test programs. 13/50 subtests failed. make: *** [test_dynamic] Error 29 -> FAIL Installing PAR::Packer failed. See /root/.cpanm/work/1606995215.30120/build.log for details. Retry with --force to force install it. ```

I see noticed this, and I'm not sure it really built anything

Running Makefile.PL
/usr/bin/ld: i386 architecture of input file `compilet-fsK16.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
No compiler found, won't generate 'script/parl!

Should I add -m32 to ccflags_nolargefiles and to ccflags_nolargefiles? Any other idea? Thank you.

rschupp commented 3 years ago

OK, let's back off a bit: what are you trying to achieve? I assume you're trying to build executables (via PAR::Packer's pp) with a 32-bit perl distribution. So you can only expect to generate 32-bit executables. Why do you need these?

AgostinoSturaro commented 3 years ago

Good question. I have a set of small Perl tools for system diagnostics, and I can't go install a custom Perl interpreter and the needed modules on all the target endpoints. I mostly need to target RHEL/CentOS >=6 and 64 bits, but there are a few 32 bit CentOS 6 and 32 bit Ubuntu LTS, possibly some SuSe as well (quite a mix, I know). I still need to care for the 32 bit hosts and I was hoping to build everything in 32 bits and run that on 64 bit systems as well.

If I can build a 32 bit executable on a 32 bit CentOS 6, can I expect it to work on a 64 bit CentOS 8? If so, that might be fine. If it worked on Ubuntu (and Suse) as well, that would be really nice.

rschupp commented 3 years ago

I was hoping to build everything in 32 bits and run that on 64 bit systems as well.

Should be doable, but probably takes some more tweaks to compiler and linker flags to achieve. In general, one should build on the same platform as the target.

If I can build a 32 bit executable on a 32 bit CentOS 6, can I expect it to work on a 64 bit CentOS 8?

That should work. Of course the 64-bit systems must have the required 32-bit system libs (libc.so, libm.so etc, but nothing perl specific) installed. There shouldn't be any GLIBC versioning problems as your building on older systems.

AgostinoSturaro commented 3 years ago

Thank you. I'll try and let you know.

AgostinoSturaro commented 3 years ago

The installation worked on CentOS 6.10 32 bit and ActivePerl 5.16.3 x86. ODBC stuff does not seem to get wrapped correctly though. I'll open a separate ticket for that once I can get more information. Thank you.