kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #42279
Re: Issues building PCBNew on Windows 10/Msys: fatal exception
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Sun, 20 Oct 2019 10:08:55 -0400
-
Autocrypt:
addr=stambaughw@xxxxxxxxx; prefer-encrypt=mutual; keydata= mQGiBEM0hxQRBAC2fNh3YOVLu1d5GZ0SbrTNldGiGnCJPLqzEnqFX9v6jmf33TMt6EmSLkl6 Wtfkoj0nVwKxcYmJkA8DX0QAokBkwNIzhSsBzQvthBLIk/5LnPVVKrEXOcL4mUyH1doKlkaE slgJozNa6Av+oavcvD02o1zJOloBbaHlNlyRt7fKswCgtIFlVjWggVH/15KfWk+Qo5JVPbME AIUBAQyL2OAx0n60AWec2WHnO9buHuG0ibtICgUMkE+2MRmYyKwYRdyVwGoIUemFuOyHp0AJ InX4T+vy2E7vkwODqjtMLfIoRkokW74Fi4nrvjlhOAw/vdq/twLbAmR9MOfPTpR4y7kQy1O2 /n+RkkRvh26vTzfbQmrH7cBJhk6aA/9Uwvu3E4zNJgHVZeS0HyWtmR1eOPPRbnkPgJTToX5O KMKzTJI/FX6kT7cFoCamitHrW3BJP4Dx+cMMsa47EGxqVTdbVJ4LjogsXTXxb+0Fn1u4zBdx x3Cer6O7+hqWy7zvpzeC6nSREjqDKa5CgHtv/GLm5uFPOmsjAsnHj2tlBrQmV2F5bmUgU3Rh bWJhdWdoIDxzdGFtYmF1Z2h3QGdtYWlsLmNvbT6IeAQTEQIAOBYhBOffs6CbblRzBkv33BtR cWlZ+CReBQJbFBS2AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEBtRcWlZ+CReMI8A nRbrLkzp7+c2f0vX7sfg4ICX8LAKAJ9uClo4uJajmZa5zZrL2nKdZlUwIrkCDQRDNIcxEAgA gCru+3/aOC6RCjpvYC72wY+d5SmHphC6yeiV2/mOumyt5MLo/Ps2GznZr11JspqFk5K/Zpvp MMLqqjDZ39+50a2iKRQFJ6NlK+hJWMmj6eJygQrCwYo3Gjc6CqfrqUv+8VSnf/i5sIZmtOVA 4ZjML18MuBvMSsNdVLFJd5HNnYb1iOECpvqdPVh/21LLCEw7MUUGGnHBhCrmk2aJe5hFmcSN g4ldBcXrgMQBwf7aMVoobXBMFDb/IENByXn0llB7Gr2IFMRmNS9/p8s/II1Yl2bTqyX4FSz8 cfn7C9KEz7faZ7wzAcpwHFC/zs3JoAjJ0IEKdNUpIwAlKMzT3CzctwADBQf/cxpG28MKyrqk nNmq/8LQLy+x6FSYXBLjxQz9BiBNYeesDZQ6J5UbL1mjpJzMa5tLZypPYo4bbGyR22hrbyDF K7m6AcVaMIJKl98g4ukMutFfAJyRDaREH5Zl/X1P4u1Z/yaAIy9mKaNbaK1/5djNJ5wCTFen TUgAp9xdc30kGkFDdLJFp5uxDY4P0vaZiZdjUCvDM3Zjv5IzpNOfxVqTUBQNUP/BnnKhkk0p DTD6s3X8S+D0rOtEBQ8K0cwERI/E8EFa8nj0TNw4e2MYGR8wg+SxqJ7z5f0zPY0bO6G9DDFB wYCqzzPWGqdAh9vA5971TAbPERtdFybhkurozp2SfYhJBBgRAgAJBQJDNIcxAhsMAAoJEBtR cWlZ+CResHUAniULLCWiT26ieRTl7N2vS6vBo/DuAJ4m7Ss/gyiW6ybTn1ctDXAUgm2QVQ==
-
In-reply-to:
<5dab81d0.1c69fb81.4e48f.7be7@mx.google.com>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
Hi Brian,
There is a long litany of things that can go wrong with msys2 builds but
I do not believe that the wxPython/wxWidgets mismatch is the problem.
Typically when I see issues like this, there has been a new gcc version
released and only one of the two dependency libraries have been compiled
with the new compiler which causes issues. It's been a while but the
last time this happened, I had to recompile the wxPython package. I
also noticed you are attempting to use 32 builds for debugging. I
highly recommend that you debug using 64 bit builds. Debug builds on
msys2 are massive and you will likely run into memory limit issues. I
hope this helps.
Cheers,
Wayne
On 10/19/19 5:36 PM, Brian Piccioni wrote:
> Sorry if this is a bit long and thanks in advance for the help. I
> decided to move to a new laptop and create a debug version of Kicad so I
> can work on integrating my software. I believe I carefully followed the
> build instructions I suspect this may be related to a version mismatch
> but I don’t know how to fix it.
>
>
>
> I installed Msys2, downloaded Kicad source and compiled a debug build.
> It compiled without errors but I get a warning
>
>
>
> C:/msys32/mingw32/lib/python2.7/site-packages/wx-3.0-msw/wx/_core.py:16633:
> UserWarning: wxPython/wxWidgets release number mismatch
>
> warnings.warn("wxPython/wxWidgets release number mismatch")
>
>
>
> I get the same error building the release and debug versions and the
> release version appears to work fine, except for complaints about
>
> version mismatch.
>
>
>
> However, with the debug build I can run Kicad and invoke eeSchema and
> all the other applications from the Kicad menu except
>
> PCBNew and the symbol editor. When I run these, I get errors:
>
>
>
> Application failed to load:
>
> IO_ERROR: Failed to load kiface library
> "C:\msys32\mingw32\bin\_pcbnew.kiface".
>
> from kiway.cpp : KiFACE() line:213
>
>
>
> If I run PCBNew from the debug directory I get the same result but with
> details I can copy.
>
>
>
> Details:
>
> 17:18:15: Failed to load shared library
> 'C:\kicad-source\build\debug\pcbnew\_pcbnew.kiface' (error 127: the
> specified procedure could not be found.)
>
> 17:18:15: IO_ERROR: Failed to load kiface library
> “C:\kicad-source\build\debug\pcbnew\_pcbnew.kiface”.
>
>
>
> This PC has 32 GB of DRAM installed and
> 'C:\msys32\mingw32\bin\_pcbnew.kiface' is present.
>
>
>
> When I run PCBNew standalone in msys2, I get this message
>
>
>
> $ pcbnew
>
> C:/msys32/mingw32/lib/python2.7/site-packages/wx-3.0-msw/wx/_core.py:16633:
> UserWarning: wxPython/wxWidgets release number mismatch
>
> warnings.warn("wxPython/wxWidgets release number mismatch")
>
> Exception code=0xc0000005 flags=0x0 at 0x05A28FDE. Access violation -
> attempting to read data at address 0x00000000
>
> Segmentation fault
>
>
>
> When I run this command
>
> $ pacman -Qs wx I get
>
> local/mingw-w64-i686-wxPython 3.0.2.0-9
>
> A wxWidgets GUI toolkit for Python (mingw-w64)
>
> local/mingw-w64-i686-wxWidgets 3.0.4-3
>
> A C++ library that lets developers create applications for
> Windows, Linux and UNIX (mingw-w64)
>
>
>
> Here is the version info:
>
>
>
> Application: KiCad
>
> Version: 5.99.0-unknown, debug build
>
> Libraries:
>
> wxWidgets 3.0.4
>
> libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7
> libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
>
> Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian,
> wxMSW
>
> Build Info:
>
> Build date: Oct 19 2019 09:19:25
>
> wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
>
> Boost: 1.71.0
>
> OpenCASCADE Community Edition: 6.9.1
>
> Curl: 7.66.0
>
> Compiler: GCC 9.2.0 with C++ ABI 1013
>
>
>
> Build settings:
>
> KICAD_SCRIPTING=ON
>
> KICAD_SCRIPTING_MODULES=ON
>
> KICAD_SCRIPTING_PYTHON3=OFF
>
> KICAD_SCRIPTING_WXPYTHON=ON
>
> KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
>
> KICAD_SCRIPTING_ACTION_MENU=ON
>
> BUILD_GITHUB_PLUGIN=ON
>
> KICAD_USE_OCE=ON
>
> KICAD_USE_OCC=OFF
>
> KICAD_SPICE=ON
>
> KICAD_STDLIB_DEBUG=OFF
>
> KICAD_STDLIB_LIGHT_DEBUG=OFF
>
> KICAD_SANITIZE=OFF
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References