develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #128640] MinGW-w64 gcc 6.1.0 builds crash with "entry pointcould not be located"

Thread Next
From:
Dan Collins
Date:
July 16, 2016 22:33
Subject:
[perl #128640] MinGW-w64 gcc 6.1.0 builds crash with "entry pointcould not be located"
Message ID:
rt-4.0.18-18915-1468708334-1477.128640-75-0@perl.org
# New Ticket Created by  Dan Collins 
# Please include the string:  [perl #128640]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128640 >


Hello!

I have (attempted to) build perl using the gcc 6.1.0 compiler for i686 (32-bit) available from mingw-w64.org. The makefile.mk that I used is attached. After modifying the makefile, I manually applied the patch from RT #128438. `dmake` appears to succeed, `dmake test` fails with the following (windows popup) error message:

    The procedure entry point _ZdlPvj could not be located in the dynamic link library W:\path\to\perl\t\perl525.dll

In the base build directory, perl.exe is happy to give a -V:

W:\buildbot\windows1\win32-6_1_0\build>perl.exe -Ilib -V
Summary of my perl5 (revision 5 version 25 subversion 3) configuration:

  Platform:
    osname=MSWin32
    osvers=10.0
    archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=undef
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags =' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields'
    optimize='-s -O2'
    cppflags='-DWIN32'
    ccversion=''
    gccversion='6.1.0'
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=4
    doublesize=8
    byteorder=1234
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=12
    longdblkind=3
    ivtype='long'
    ivsize=4
    nvtype='double'
    nvsize=8
    Off_t='long long'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags ='-s -L"c:\perl\lib\CORE" -L"C:\mingw-w64\i686-4.9.3\mingw32\lib"'
    libpth=C:\mingw-w64\i686-4.9.3\mingw32\lib
    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=libperl525.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-mdll -s -L"c:\perl\lib\CORE" -L"C:\mingw-w64\i686-4.9.3\mingw32\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_HASH_FUNC_ONE_AT_A_TIME_HARD
    PERL_IMPLICIT_CONTEXT
    PERL_IMPLICIT_SYS
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Built under MSWin32
  Compiled at Jul 16 2016 18:17:17
  @INC:
    lib
    W:/buildbot/windows1/win32-6_1_0/build/lib
    .

In the t/ directory, perl -I..\lib -V gives the same error. perl -Ilib t/harness and cd t; perl -I..\lib harness both give the same error.

Invoking tests directly seems to work sometimes:

W:\buildbot\windows1\win32-6_1_0\build>perl.exe -Ilib t\base\cond.t
1..4
ok 1
ok 2
ok 3
ok 4

re/regexp.t works, re/recompile.t does not. 

mingw-w64 builds with gcc 4.9.3 and 5.4.0 are both successful

-- 
Respectfully,
Dan Collins
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