develooper Front page | perl.perl5.porters | Postings from February 2018

Re: perl static build for gcc+win32

Thread Previous | Thread Next
From:
sisyphus1
Date:
February 28, 2018 12:05
Subject:
Re: perl static build for gcc+win32
Message ID:
CD5DF37072624CE99678004FC7A8E593@OwnerPC311012

From: Konovalov, Vadim
Sent: Wednesday, February 28, 2018 2:42 AM
To: Perl5 Porteros
Subject: perl static build for gcc+win32

> Next, “ALL_STATIC” means “BUILD_STATIC”, so I’ve edited it to be so.
> Therefore I think the attached edit looks.
> If this is agreed, I will prepare similar edit for other makefiles in
> win32/ directory.

Hi,

Using gcc version 7.2.0 (x86_64-posix-seh-rev1, built by MinGW-W64 project)
and GNU Make 3.82.90 (built for i686-pc-mingw32).

With your patched GNUmakefile, building 5.27.9 with "ALL_STATIC=define"
worked pretty well for me.

Comparing test results with a "usual" build of 5.27.9 (same toolset,
same source, same configuration except "ALL_STATIC" not defined) there were 
some test failures with the "static" build that did not arise with the 
"usual" build:

../cpan/Module-Load/t/02_Module-Load.t  (Wstat: 256 Tests: 7 Failed: 1)
  Failed test:  7
  Non-zero exit status: 1

../ext/XS-APItest/t/bootstrap.t  (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1

../ext/XS-APItest/t/keyword_plugin_threads.t  (Wstat: 0 Tests: 1 Failed: 1)
  Failed test:  1

But no problem with the patched GNUmakefile.

My 'perl -V' for the "static" build is given below.

Cheers,
Rob

Summary of my perl5 (revision 5 version 27 subversion 9) configuration:

  Platform:
    osname=MSWin32
    osvers=6.1.7601
    archname=MSWin32-x64-multi-thread-ld
    uname=''
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=undef
    uselongdouble=define
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags
' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing
-mms-bitfields'
    optimize='-s -O2'
    cppflags='-DWIN32'
    ccversion=''
    gccversion='7.2.0'
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long long'
    ivsize=8
    nvtype='long double'
    nvsize=16
    Off_t='long long'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags
='-s -L"C:\_64\blead-5.27.9-ld-static\lib\CORE" -L"C:\_64\gcc-mingw-720\mingw64\lib"'
    libpth=C:\_64\gcc-mingw-720\mingw64\lib
C:\_64\gcc-mingw-720\mingw64\x86_64-w64-mingw32\lib
C:\_64\msys_720\1.0\local\lib
C:\_64\gcc-mingw-720\mingw64\lib\gcc\x86_64-w64-mingw32\7.2.0
    libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
-lodbc32 -lodbccp32 -lcomctl32
    perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
-lodbc32 -lodbccp32 -lcomctl32
    libc=
    so=dll
    useshrplib=true
    libperl=libperl527.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-mdll -s -L"C:\_64\blead-5.27.9-ld-static\lib\CORE" -L"C:\_64\gcc-mingw-720\mingw64\lib"'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    HAVE_INTERP_INTERN
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_IMPLICIT_SYS
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_LONG_DOUBLE
    USE_PERLIO
    USE_PERL_ATOF
  Built under MSWin32
  Compiled at Feb 28 2018 10:05:37
  @INC:
    C:/_64/blead-5.27.9-ld-static/site/lib
    C:/_64/blead-5.27.9-ld-static/lib 

Thread Previous | 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