EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1873406] Re: EpicsHostArch script does not detect recent MSYS2/MinGW setups on Windows
From: Ralph Lange via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Wed, 22 Apr 2020 17:11:49 -0000
Seems I wasn't clear enough:

This is *one* MSYS2 system (on a 64bit machine), with the packages for both the toolchains for mingw32 and mingw64 installed.
The only difference between using it to compile MinGW 64bit or 32bit executables is the environment setting. (In the similar fashion as on the Windows command shell, where the difference between using VisualStudio 32bit and 64bit compilers is the environment setting achieved by running vsvarsall.bat.)

Perl is running on MSYS2.

$ perl -V
Summary of my perl5 (revision 5 version 28 subversion 2) configuration:

  Platform:
    osname=msys
    osvers=3.0.6(0.33853)
    archname=x86_64-msys-thread-multi
    uname='msys_nt-6.1 warlock 3.0.6(0.33853) 2019-04-15 06:44 x86_64 msys '
    config_args='-des -Dusethreads -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -Dprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl -Dsitearch=/usr/lib/perl5/site_perl -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dscriptdir=/usr/bin/core_perl -Dsitescript=/usr/bin/site_perl -Dvendorscript=/usr/bin/vendor_perl -Dinc_version_list=none -Dman1ext=1perl -Dman3ext=3perl -Darchname=-msys-threads -Dmyarchname=-msys -Dlibperl=msys-perl5_28.dll -Dcc=gcc -Dld=g++ -Accflags=-march=x86-64 -mtune=generic -O2 -pipe -fwrapv'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong'
    optimize='-march=x86-64 -mtune=generic -O2 -pipe'
    cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong'
    ccversion=''
    gccversion='7.4.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags =' -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong'
    libpth=/usr/lib
    libs=-lpthread -lgdbm -ldb -ldl -lcrypt -lgdbm_compat
    perllibs=-lpthread -ldl -lcrypt
    libc=/usr/lib/libmsys-2.0.a
    so=dll
    useshrplib=true
    libperl=msys-perl5_28.dll
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags=' --shared  -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under msys
  Compiled at Apr 25 2019 07:29:36
  @INC:
    /usr/lib/perl5/site_perl
    /usr/share/perl5/site_perl
    /usr/lib/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib/perl5/core_perl
    /usr/share/perl5/core_perl

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1873406

Title:
  EpicsHostArch script does not detect recent MSYS2/MinGW setups on
  Windows

Status in EPICS Base:
  New
Status in EPICS Base 3.15 series:
  New
Status in EPICS Base 7.0 series:
  New

Bug description:
  On MSYS2/MinGW installations, the EpicsHostArch script does not
  recognize the host platform correctly.

  64bit:
  $ ./startup/EpicsHostArch
  lib/perl/EpicsHostArch.pl: Architecture 'x86_64-msys-thread-multi' not recognized

  32bit:
  $ ./startup/EpicsHostArch
  lib/perl/EpicsHostArch.pl: Architecture 'x86_64-msys-thread-multi' not recognized

  Which is not surprising, as the underlying MSYS2 subsystem is the
  same, and the difference is in the environment settings that point to
  the appropriate toolchain.

  64bit:
  $ echo $PATH
  /mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
  $ printenv | grep MSYSTEM
  MSYSTEM_CARCH=x86_64
  MSYSTEM_CHOST=x86_64-w64-mingw32
  MSYSTEM_PREFIX=/mingw64
  MSYSTEM=MINGW64

  32bit:
  $ echo $PATH
  /mingw32/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
  $ printenv | grep MSYSTEM
  MSYSTEM_CARCH=i686
  MSYSTEM_CHOST=i686-w64-mingw32
  MSYSTEM_PREFIX=/mingw32
  MSYSTEM=MINGW32

  
  NB: I am impressed by the clarity and simplicity of MSYS2 / MinGW

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1873406/+subscriptions

References:
[Bug 1873406] [NEW] EpicsHostArch script does not detect recent MSYS2/MinGW setups on Windows Ralph Lange via Core-talk

Navigate by Date:
Prev: Re: [Merge] epics-base:7.0 into ~epics-core/epics-base/+git/timer-queue-fix:7.0 mdavidsaver via Core-talk
Next: [Bug 1873406] Re: EpicsHostArch script does not detect recent MSYS2/MinGW setups on Windows Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: [Bug 1873406] [NEW] EpicsHostArch script does not detect recent MSYS2/MinGW setups on Windows Ralph Lange via Core-talk
Next: [Bug 1873406] Re: EpicsHostArch script does not detect recent MSYS2/MinGW setups on Windows Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 22 Apr 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·