Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
I have a branch that switches us to OCC. I believe OCE is not maintained anymore, and that may be the root of some of your issues. I am glad you are up and running! If you or Jonatan want to write up some instructions for using kicad-mac-builder to jumpstart a dev environment, I'd love to hit accept on a PR :) On Tue, Jan 14, 2020 at 2:07 PM Heath Raftery wrote: > > Whoa, that worked! Thanks Jonatan. > > I did have to change the last line from `open kicad/kicad.app` to > `kicad/kicad.app/Contents/MacOS/kicad`. The .app launches without complaint, > but no windows appear. Running the executable directly works perfectly, > despite the kicad.app package not containing the usual Applications directory. > > My hunch is that the kicker was: > > -DKICAD_USE_OCE=OFF > > To get kicad-mac-builder to work I had to find MacOSX10.12.sdk on the > Internet and stuff it in > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs > because the oce plugin (I think) went looking for OpenGL.Framework there. > That’s not so bad, but the oce plugin still wouldn’t compile until I did some > shenanigans with system libraries to make it look like 10.12: > > • Reboot, turn off SIP > • sudo ln -s /usr/lib/libcoretls.dylib > /usr/lib/libsystem_coretls.dylib > • sudo ln -s /usr/lib/libcoretls.dylib > /usr/lib/system/libsystem_coretls.dylib > • sudo ln -s /usr/lib/libnetwork.dylib > /usr/lib/system/libsystem_network.dylib > > I’d forgotten I’d done this, so maybe I’d left enough relics to cause issues. > Perhaps this is why others don’t see this issue if they start with 10.12 and > upgrade to 10.14? > > For what it’s worth, prior to trying kicad-mac-builder I’d noticed that the > oce homebrew bottle looked old, and managed to compile from source with: > > • git clone https://github.com/tpaviot/oce.git > • cd oce > • mkdir build > • cd build > • cmake .. > • vi CMakeCache.txt > • Make changes from > https://github.com/brewsci/homebrew-science/blob/master/Formula/oce.rb > • Delete HAVE_CLOCK_GETTIME:INTERNAL > • Change OCE_COPY_HEADERS_BUILD:BOOL=ON > • Change OCE_DRAW:BOOL=ON > • Change OCE_MULTITHREAD_LIBRARY:STRING=TBB" if build.with? > "tbb" > • Change OCE_WITH_FREEIMAGE:BOOL=ON > • Change OCE_WITH_GL2PS:BOOL=ON > • Add OCE_WITH_OPENCL:BOOL=ON > • Add > OPENCL_LIBRARIES:PATH=/System/Library/Frameworks/OpenCL.framework > • Add > OPENCL_CPP_INCLUDE_DIRS:PATH=/System/Library/Frameworks/OpenCL.framework/Headers > • cmake .. > • make > • sudo make install/strip > > Later on I was able to just do: > > • brew remove oce > • brew reinstall freetype > • brew install --build-from-source brewsci/science/oce > > > So for now, given my kicad development interests don’t at the moment stretch > to 3D or scripting or packaging, it looks like I have a way to get started. > > Thank you very much Adam and Jonatan for your help. I suspect the trail this > thread has left will help newbie mac developers in the future. > > For the record, this is the version info I see using this method: > > Application: Eeschema > Version: (5.99.0-622-gea218bc72), release build > Libraries: > wxWidgets 3.0.4 > libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 > Platform: Mac OS X (Darwin 18.7.0 x86_64), 64 bit, Little endian, wxMac > Build Info: > Build date: Jan 15 2020 06:23:09 > wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8) > Boost: 1.72.0 > Curl: 7.64.1 > Compiler: Clang 11.0.0 with C++ ABI 1002 > > Build settings: > KICAD_SCRIPTING=OFF > KICAD_SCRIPTING_MODULES=OFF > KICAD_SCRIPTING_PYTHON3=OFF > KICAD_SCRIPTING_WXPYTHON=OFF > KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF > KICAD_SCRIPTING_ACTION_MENU=OFF > BUILD_GITHUB_PLUGIN=ON > KICAD_USE_OCE=OFF > KICAD_USE_OCC=OFF > KICAD_SPICE=ON > > > Regards, > Heath > > > On 15 Jan 2020, at 1:08 am, Jonatan Liljedahl wrote: > > > > I'm also on mac. I also started with the kicad-mac-builder, but now I > > simply build kicad directly since it's much faster. I still use the > > built libs etc from kicad-mac-builder, like so: > > > > mkdir -p build/master > > > > cd build/master > > > > cmake > > -DNGSPICE_INCLUDE_DIR=/Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/include/ > > -DNGSPICE_LIBRARY=/Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/lib/libngspice.dylib > > -DKICAD_USE_OCE=OFF -DKICAD_SCRIPTING=OFF > > -DwxWidgets_CONFIG_EXECUTABLE=/Users/lijon/Coding/kicad-mac-builder/build/wxwidgets-dest/bin/wx-config > > -DKICAD_BUILD_QA_TESTS=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 ../.. > > > > make -j4 > > > > mkdir kicad/kicad.app/Contents/PlugIns/sim > > ln -s > >
Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
Whoa, that worked! Thanks Jonatan. I did have to change the last line from `open kicad/kicad.app` to `kicad/kicad.app/Contents/MacOS/kicad`. The .app launches without complaint, but no windows appear. Running the executable directly works perfectly, despite the kicad.app package not containing the usual Applications directory. My hunch is that the kicker was: -DKICAD_USE_OCE=OFF To get kicad-mac-builder to work I had to find MacOSX10.12.sdk on the Internet and stuff it in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs because the oce plugin (I think) went looking for OpenGL.Framework there. That’s not so bad, but the oce plugin still wouldn’t compile until I did some shenanigans with system libraries to make it look like 10.12: • Reboot, turn off SIP • sudo ln -s /usr/lib/libcoretls.dylib /usr/lib/libsystem_coretls.dylib • sudo ln -s /usr/lib/libcoretls.dylib /usr/lib/system/libsystem_coretls.dylib • sudo ln -s /usr/lib/libnetwork.dylib /usr/lib/system/libsystem_network.dylib I’d forgotten I’d done this, so maybe I’d left enough relics to cause issues. Perhaps this is why others don’t see this issue if they start with 10.12 and upgrade to 10.14? For what it’s worth, prior to trying kicad-mac-builder I’d noticed that the oce homebrew bottle looked old, and managed to compile from source with: • git clone https://github.com/tpaviot/oce.git • cd oce • mkdir build • cd build • cmake .. • vi CMakeCache.txt • Make changes from https://github.com/brewsci/homebrew-science/blob/master/Formula/oce.rb • Delete HAVE_CLOCK_GETTIME:INTERNAL • Change OCE_COPY_HEADERS_BUILD:BOOL=ON • Change OCE_DRAW:BOOL=ON • Change OCE_MULTITHREAD_LIBRARY:STRING=TBB" if build.with? "tbb" • Change OCE_WITH_FREEIMAGE:BOOL=ON • Change OCE_WITH_GL2PS:BOOL=ON • Add OCE_WITH_OPENCL:BOOL=ON • Add OPENCL_LIBRARIES:PATH=/System/Library/Frameworks/OpenCL.framework • Add OPENCL_CPP_INCLUDE_DIRS:PATH=/System/Library/Frameworks/OpenCL.framework/Headers • cmake .. • make • sudo make install/strip Later on I was able to just do: • brew remove oce • brew reinstall freetype • brew install --build-from-source brewsci/science/oce So for now, given my kicad development interests don’t at the moment stretch to 3D or scripting or packaging, it looks like I have a way to get started. Thank you very much Adam and Jonatan for your help. I suspect the trail this thread has left will help newbie mac developers in the future. For the record, this is the version info I see using this method: Application: Eeschema Version: (5.99.0-622-gea218bc72), release build Libraries: wxWidgets 3.0.4 libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 Platform: Mac OS X (Darwin 18.7.0 x86_64), 64 bit, Little endian, wxMac Build Info: Build date: Jan 15 2020 06:23:09 wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8) Boost: 1.72.0 Curl: 7.64.1 Compiler: Clang 11.0.0 with C++ ABI 1002 Build settings: KICAD_SCRIPTING=OFF KICAD_SCRIPTING_MODULES=OFF KICAD_SCRIPTING_PYTHON3=OFF KICAD_SCRIPTING_WXPYTHON=OFF KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF KICAD_SCRIPTING_ACTION_MENU=OFF BUILD_GITHUB_PLUGIN=ON KICAD_USE_OCE=OFF KICAD_USE_OCC=OFF KICAD_SPICE=ON Regards, Heath > On 15 Jan 2020, at 1:08 am, Jonatan Liljedahl wrote: > > I'm also on mac. I also started with the kicad-mac-builder, but now I > simply build kicad directly since it's much faster. I still use the > built libs etc from kicad-mac-builder, like so: > > mkdir -p build/master > > cd build/master > > cmake > -DNGSPICE_INCLUDE_DIR=/Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/include/ > -DNGSPICE_LIBRARY=/Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/lib/libngspice.dylib > -DKICAD_USE_OCE=OFF -DKICAD_SCRIPTING=OFF > -DwxWidgets_CONFIG_EXECUTABLE=/Users/lijon/Coding/kicad-mac-builder/build/wxwidgets-dest/bin/wx-config > -DKICAD_BUILD_QA_TESTS=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 ../.. > > make -j4 > > mkdir kicad/kicad.app/Contents/PlugIns/sim > ln -s > /Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/lib/libngspice.0.dylib > kicad/kicad.app/Contents/PlugIns/sim/ > > open kicad/kicad.app ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
I'm also on mac. I also started with the kicad-mac-builder, but now I simply build kicad directly since it's much faster. I still use the built libs etc from kicad-mac-builder, like so: mkdir -p build/master cd build/master cmake -DNGSPICE_INCLUDE_DIR=/Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/include/ -DNGSPICE_LIBRARY=/Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/lib/libngspice.dylib -DKICAD_USE_OCE=OFF -DKICAD_SCRIPTING=OFF -DwxWidgets_CONFIG_EXECUTABLE=/Users/lijon/Coding/kicad-mac-builder/build/wxwidgets-dest/bin/wx-config -DKICAD_BUILD_QA_TESTS=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 ../.. make -j4 mkdir kicad/kicad.app/Contents/PlugIns/sim ln -s /Users/lijon/Coding/kicad-mac-builder/build/ngspice-dest/lib/libngspice.0.dylib kicad/kicad.app/Contents/PlugIns/sim/ open kicad/kicad.app On Tue, Jan 14, 2020 at 9:35 AM Heath Raftery wrote: > > No issues with downloaded Kicad package. Version info: > > Application: Eeschema > Version: (5.1.5-0-10_14), release build > Libraries: > wxWidgets 3.0.4 > libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 > Platform: Mac OS X (Darwin 18.7.0 x86_64), 64 bit, Little endian, wxMac > Build Info: > wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8) > Boost: 1.69.0 > OpenCASCADE Community Edition: 6.9.1 > Curl: 7.54.0 > Compiler: Clang 9.0.0 with C++ ABI 1002 > > Build settings: > USE_WX_GRAPHICS_CONTEXT=ON > USE_WX_OVERLAY=ON > 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 > > > > On 14 Jan 2020, at 3:48 pm, Adam Wolf wrote: > > > > Before I dig too deep into that, do you have any issues running a > > downloaded Eeschema? > > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp -- /Jonatan http://kymatica.com ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
No issues with downloaded Kicad package. Version info: Application: Eeschema Version: (5.1.5-0-10_14), release build Libraries: wxWidgets 3.0.4 libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 Platform: Mac OS X (Darwin 18.7.0 x86_64), 64 bit, Little endian, wxMac Build Info: wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8) Boost: 1.69.0 OpenCASCADE Community Edition: 6.9.1 Curl: 7.54.0 Compiler: Clang 9.0.0 with C++ ABI 1002 Build settings: USE_WX_GRAPHICS_CONTEXT=ON USE_WX_OVERLAY=ON 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 > On 14 Jan 2020, at 3:48 pm, Adam Wolf wrote: > > Before I dig too deep into that, do you have any issues running a > downloaded Eeschema? ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
Before I dig too deep into that, do you have any issues running a downloaded Eeschema? On Mon, Jan 13, 2020 at 2:44 PM Heath Raftery wrote: > > Thanks for the welcome. > > I see the error when I launch eeschema from within a running kicad instance. > > I get a different error when launching eeschema directly, but I’m not sure > whether it’s a clue or a red herring. Using lldb or not, launching eeschema > directly from the command line I get a dialog that says: > > > 06:58:30: > > dlopen(/Users/liteyear/Programming/KiCad/kicad-mac-builder/Contents/PlugIns/_eeschema.kiface, > > 10): image not found > > 06:58:30: IO_ERROR: Failed to load kiface library > > “/Users/liteyear/Programming/KiCad/kicad-mac-builder/Contents/PlugIns/_eeschema.kiface”. > > > > from kiway.cpp : KiFACE() line:226 > > The absolute path to the non-existent Contents directory persists regardless > of where I launch from. > > If I launch eeschema with a double-click instead of from the command line, > the dialog does not appear, but the application exits immediately with no > explanation. > > If I launch the eeschema binary (instead of the symlink) I get the same > “Illegal instruction: 4”: > > > $ kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/eeschema > > Illegal instruction: 4 > > but this time a short while later the MacOS “Problem Report” dialog appears > titled “Eeschema quit unexpectedly”, with the following Problem Details: > > > Process: eeschema [75541] > Path: > /Users/USER/*/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/eeschema > Identifier:org.kicad-pcb.eeschema > Version: [5.99.0-736-g896208a37] ([5.99.0-736-g896208a37]) > Code Type: X86-64 (Native) > Parent Process:bash [73244] > Responsible: eeschema [75541] > User ID: 501 > > Date/Time: 2020-01-14 07:36:14.700 +1100 > OS Version:Mac OS X 10.14.6 (18G95) > Report Version:12 > Anonymous UUID:AF6453E0-9535-CCBB-6BF1-09834F69225E > > > Time Awake Since Boot: 15 seconds > > System Integrity Protection: disabled > > Crashed Thread:0 Dispatch queue: com.apple.main-thread > > Exception Type:EXC_BAD_INSTRUCTION (SIGILL) > Exception Codes: 0x0001, 0x > Exception Note:EXC_CORPSE_NOTIFY > > Termination Signal:Illegal instruction: 4 > Termination Reason:Namespace SIGNAL, Code 0x4 > Terminating Process: exc handler [75541] > > Application Specific Information: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/../Frameworks/libgcc_s.1.dylib > BUG IN CLIENT OF LIBDISPATCH: dispatch_mach_hooks_install_4libxpc called twice > > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > 0 libdispatch.dylib 0x7fff607ed21e > dispatch_mach_hooks_install_4libxpc + 78 > 1 libxpc.dylib0x7fff60a50c76 > _libxpc_initializer + 52 > 2 libSystem.B.dylib 0x0001112f89ca > libSystem_initializer + 126 > 3 dyld0x00011d228592 > ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 506 > 4 dyld0x00011d228798 > ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40 > 5 dyld0x00011d223bea > ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, > unsigned int, char const*, ImageLoader::InitializerTimingList&, > ImageLoader::UninitedUpwards&) + 362 > 6 dyld0x00011d223b80 > ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, > unsigned int, char const*, ImageLoader::InitializerTimingList&, > ImageLoader::UninitedUpwards&) + 256 > 7 dyld0x00011d223b80 > ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, > unsigned int, char const*, ImageLoader::InitializerTimingList&, > ImageLoader::UninitedUpwards&) + 256 > 8 dyld0x00011d223b80 > ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, > unsigned int, char const*, ImageLoader::InitializerTimingList&, > ImageLoader::UninitedUpwards&) + 256 > 9 dyld0x00011d222d73 > ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned > int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 133 > 10 dyld0x00011d222e05 > ImageLoader::runInitializers(ImageLoader::LinkContext const&, > ImageLoader::InitializerTimingList&) + 73 > 11 dyld0x00011d215cb2 > dyld::runInitializers(ImageLoader*) + 82 > 12 dyld0x00011d21f3dc dlopen_internal + > 607 > 13
Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
Thanks for the welcome. I see the error when I launch eeschema from within a running kicad instance. I get a different error when launching eeschema directly, but I’m not sure whether it’s a clue or a red herring. Using lldb or not, launching eeschema directly from the command line I get a dialog that says: > 06:58:30: > dlopen(/Users/liteyear/Programming/KiCad/kicad-mac-builder/Contents/PlugIns/_eeschema.kiface, > 10): image not found > 06:58:30: IO_ERROR: Failed to load kiface library > “/Users/liteyear/Programming/KiCad/kicad-mac-builder/Contents/PlugIns/_eeschema.kiface”. > > from kiway.cpp : KiFACE() line:226 The absolute path to the non-existent Contents directory persists regardless of where I launch from. If I launch eeschema with a double-click instead of from the command line, the dialog does not appear, but the application exits immediately with no explanation. If I launch the eeschema binary (instead of the symlink) I get the same “Illegal instruction: 4”: > $ kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/eeschema > Illegal instruction: 4 but this time a short while later the MacOS “Problem Report” dialog appears titled “Eeschema quit unexpectedly”, with the following Problem Details: Process: eeschema [75541] Path: /Users/USER/*/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/eeschema Identifier:org.kicad-pcb.eeschema Version: [5.99.0-736-g896208a37] ([5.99.0-736-g896208a37]) Code Type: X86-64 (Native) Parent Process:bash [73244] Responsible: eeschema [75541] User ID: 501 Date/Time: 2020-01-14 07:36:14.700 +1100 OS Version:Mac OS X 10.14.6 (18G95) Report Version:12 Anonymous UUID:AF6453E0-9535-CCBB-6BF1-09834F69225E Time Awake Since Boot: 15 seconds System Integrity Protection: disabled Crashed Thread:0 Dispatch queue: com.apple.main-thread Exception Type:EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0001, 0x Exception Note:EXC_CORPSE_NOTIFY Termination Signal:Illegal instruction: 4 Termination Reason:Namespace SIGNAL, Code 0x4 Terminating Process: exc handler [75541] Application Specific Information: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/../Frameworks/libgcc_s.1.dylib BUG IN CLIENT OF LIBDISPATCH: dispatch_mach_hooks_install_4libxpc called twice Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libdispatch.dylib 0x7fff607ed21e dispatch_mach_hooks_install_4libxpc + 78 1 libxpc.dylib0x7fff60a50c76 _libxpc_initializer + 52 2 libSystem.B.dylib 0x0001112f89ca libSystem_initializer + 126 3 dyld0x00011d228592 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 506 4 dyld0x00011d228798 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40 5 dyld0x00011d223bea ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 362 6 dyld0x00011d223b80 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 256 7 dyld0x00011d223b80 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 256 8 dyld0x00011d223b80 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 256 9 dyld0x00011d222d73 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 133 10 dyld0x00011d222e05 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 73 11 dyld0x00011d215cb2 dyld::runInitializers(ImageLoader*) + 82 12 dyld0x00011d21f3dc dlopen_internal + 607 13 libdyld.dylib 0x7fff60812d43 dlopen + 200 14 libwx_osx_cocoau-3.0.0.4.0.dylib0x00010d901f6f wxDynamicLibrary::RawLoad(wxString const&, int) + 143 15 libwx_osx_cocoau-3.0.0.4.0.dylib0x00010d83f196 wxDynamicLibrary::Load(wxString const&, int) + 310 16 org.kicad-pcb.eeschema
Re: [Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
Welcome! It will be great to get more Mac developers. Kicad-mac-builder should work with macports better than it does! It should also work better for developers who aren't doing packaging. This month I am fully busy with getting package signing and notarization into kicad-mac-builder, but I hope to be able to improve those things when I can. To confirm, you're seeing this whether you run eeschema.app or kicad.app and then launch eeschema? Adam On Mon, Jan 13, 2020, 6:38 AM Heath Raftery wrote: > Long time KiCad user, long time developer, first time KiCad developer. > > I’m keen to give back so much that we have received from the KiCad > community, so am taking my first steps towards contributing. Setting up a > dev environment on Mac OS X 10.14.6 hasn't gone wonderfully, but > complications were expected. After a week or so of effort, I turn to this > list for guidance! > > I originally tried building from source before facing headwinds around oce > and wxWidgets compilation, and then realising that by scrolling down > further I’d find the wonderful kicad-mac-builder project. > > After a few false starts, and progressively deleting a lot of crud > (various old Macports packages, a custom gcc install, old SDK relics), I’m > now building reliably. The built kicad.app, and all other apps in > kicad-dest run well. However, no matter what I try, eeschema.app crashes on > launch with “Illegal instruction 4”. > > I’ve tried ensuring that the dependencies (particularly boost and oce) are > just what brew installs. I’ve tried rimrafing the build directory many > times (and enduring the 300MB docs install over and over!) and trying to > emulate a clean start as best I can. Regardless of what I do, I > consistently see the eeschema crash on launch. > > > Here’s a launch of kicad from the command line, followed by launch of > eeschema within kicad: > > $ DYLD_PRINT_LIBRARIES=YES DYLD_PRINT_LIBRARIES_POST_LAUNCH=YES > build/kicad-dest/kicad.app/Contents/MacOS/kicad > dyld: loaded: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/kicad > dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit > dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon > dyld: loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa > dyld: loaded: > /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox > dyld: loaded: /usr/lib/libSystem.B.dylib > dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL > dyld: loaded: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libwx_osx_cocoau_gl-3.0.0.dylib > dyld: loaded: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libwx_osx_cocoau-3.0.0.dylib > dyld: loaded: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libGLEW.2.1.dylib > dyld: loaded: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libcairo.2.dylib > dyld: loaded: > /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libpixman-1.0.dylib > dyld: loaded: /usr/lib/libcurl.4.dylib > dyld: loaded: /usr/lib/libc++.1.dylib > dyld: loaded: > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation > dyld: loaded: /usr/lib/libDiagnosticMessagesClient.dylib > dyld: loaded: /usr/lib/libenergytrace.dylib > dyld: loaded: /usr/lib/libbsm.0.dylib > dyld: loaded: /usr/lib/libz.1.dylib > dyld: loaded: /usr/lib/system/libkxld.dylib > dyld: loaded: /usr/lib/system/libcache.dylib > dyld: loaded: /usr/lib/system/libcommonCrypto.dylib > dyld: loaded: /usr/lib/system/libcompiler_rt.dylib > dyld: loaded: /usr/lib/system/libcopyfile.dylib > dyld: loaded: /usr/lib/system/libcorecrypto.dylib > dyld: loaded: /usr/lib/system/libdispatch.dylib > dyld: loaded: /usr/lib/system/libdyld.dylib > dyld: loaded: /usr/lib/system/libkeymgr.dylib > dyld: loaded: /usr/lib/system/liblaunch.dylib > dyld: loaded: /usr/lib/system/libmacho.dylib > dyld: loaded: /usr/lib/system/libquarantine.dylib > dyld: loaded: /usr/lib/system/libremovefile.dylib > dyld: loaded: /usr/lib/system/libsystem_asl.dylib > dyld: loaded: /usr/lib/system/libsystem_blocks.dylib > dyld: loaded: /usr/lib/system/libsystem_c.dylib > dyld: loaded: /usr/lib/system/libsystem_configuration.dylib > dyld: loaded: /usr/lib/system/libsystem_coreservices.dylib > dyld: loaded: /usr/lib/system/libsystem_darwin.dylib > dyld: loaded: /usr/lib/system/libsystem_dnssd.dylib > dyld: loaded: /usr/lib/system/libsystem_info.dylib > dyld: loaded: /usr/lib/system/libsystem_m.dylib > dyld: loaded: /usr/lib/system/libsystem_malloc.dylib > dyld: loaded: /usr/lib/system/libsystem_networkextension.dylib > dyld: loaded: /usr/lib/system/libsystem_notify.dylib > dyld: loaded:
[Kicad-developers] Illegal instruction 4 when running eeschema after executing kicad-mac-builder
Long time KiCad user, long time developer, first time KiCad developer. I’m keen to give back so much that we have received from the KiCad community, so am taking my first steps towards contributing. Setting up a dev environment on Mac OS X 10.14.6 hasn't gone wonderfully, but complications were expected. After a week or so of effort, I turn to this list for guidance! I originally tried building from source before facing headwinds around oce and wxWidgets compilation, and then realising that by scrolling down further I’d find the wonderful kicad-mac-builder project. After a few false starts, and progressively deleting a lot of crud (various old Macports packages, a custom gcc install, old SDK relics), I’m now building reliably. The built kicad.app, and all other apps in kicad-dest run well. However, no matter what I try, eeschema.app crashes on launch with “Illegal instruction 4”. I’ve tried ensuring that the dependencies (particularly boost and oce) are just what brew installs. I’ve tried rimrafing the build directory many times (and enduring the 300MB docs install over and over!) and trying to emulate a clean start as best I can. Regardless of what I do, I consistently see the eeschema crash on launch. Here’s a launch of kicad from the command line, followed by launch of eeschema within kicad: $ DYLD_PRINT_LIBRARIES=YES DYLD_PRINT_LIBRARIES_POST_LAUNCH=YES build/kicad-dest/kicad.app/Contents/MacOS/kicad dyld: loaded: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/kicad dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon dyld: loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa dyld: loaded: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox dyld: loaded: /usr/lib/libSystem.B.dylib dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL dyld: loaded: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libwx_osx_cocoau_gl-3.0.0.dylib dyld: loaded: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libwx_osx_cocoau-3.0.0.dylib dyld: loaded: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libGLEW.2.1.dylib dyld: loaded: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libcairo.2.dylib dyld: loaded: /Users/liteyear/Programming/KiCad/kicad-mac-builder/build/kicad-dest/kicad.app/Contents/MacOS/../Frameworks/libpixman-1.0.dylib dyld: loaded: /usr/lib/libcurl.4.dylib dyld: loaded: /usr/lib/libc++.1.dylib dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation dyld: loaded: /usr/lib/libDiagnosticMessagesClient.dylib dyld: loaded: /usr/lib/libenergytrace.dylib dyld: loaded: /usr/lib/libbsm.0.dylib dyld: loaded: /usr/lib/libz.1.dylib dyld: loaded: /usr/lib/system/libkxld.dylib dyld: loaded: /usr/lib/system/libcache.dylib dyld: loaded: /usr/lib/system/libcommonCrypto.dylib dyld: loaded: /usr/lib/system/libcompiler_rt.dylib dyld: loaded: /usr/lib/system/libcopyfile.dylib dyld: loaded: /usr/lib/system/libcorecrypto.dylib dyld: loaded: /usr/lib/system/libdispatch.dylib dyld: loaded: /usr/lib/system/libdyld.dylib dyld: loaded: /usr/lib/system/libkeymgr.dylib dyld: loaded: /usr/lib/system/liblaunch.dylib dyld: loaded: /usr/lib/system/libmacho.dylib dyld: loaded: /usr/lib/system/libquarantine.dylib dyld: loaded: /usr/lib/system/libremovefile.dylib dyld: loaded: /usr/lib/system/libsystem_asl.dylib dyld: loaded: /usr/lib/system/libsystem_blocks.dylib dyld: loaded: /usr/lib/system/libsystem_c.dylib dyld: loaded: /usr/lib/system/libsystem_configuration.dylib dyld: loaded: /usr/lib/system/libsystem_coreservices.dylib dyld: loaded: /usr/lib/system/libsystem_darwin.dylib dyld: loaded: /usr/lib/system/libsystem_dnssd.dylib dyld: loaded: /usr/lib/system/libsystem_info.dylib dyld: loaded: /usr/lib/system/libsystem_m.dylib dyld: loaded: /usr/lib/system/libsystem_malloc.dylib dyld: loaded: /usr/lib/system/libsystem_networkextension.dylib dyld: loaded: /usr/lib/system/libsystem_notify.dylib dyld: loaded: /usr/lib/system/libsystem_sandbox.dylib dyld: loaded: /usr/lib/system/libsystem_secinit.dylib dyld: loaded: /usr/lib/system/libsystem_kernel.dylib dyld: loaded: /usr/lib/system/libsystem_platform.dylib dyld: loaded: /usr/lib/system/libsystem_pthread.dylib dyld: loaded: /usr/lib/system/libsystem_symptoms.dylib dyld: loaded: /usr/lib/system/libsystem_trace.dylib dyld: loaded: /usr/lib/system/libunwind.dylib dyld: loaded: /usr/lib/system/libxpc.dylib dyld: loaded: /usr/lib/libobjc.A.dylib dyld: loaded: /usr/lib/libc++abi.dylib dyld: loaded: /usr/lib/libicucore.A.dylib dyld: loaded: