question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows error at runtime : "No native build was found"

See original GitHub issue
  • Version: 21.2.0
  • Target: nsis:ia32

I’m packaging a Windows 32bit (as well as x64) application from an x64 AppVeyor VM with Node x64. My app has a dependency on leveldown v5.0.2 which does not provide 32bit prebuilt binaries anymore.

As can be seen in the following logs, electron-rebuild seems to succeed at compiling it itself:

rebuilding native dependencies  dependencies=@atom/watcher@1.3.1, @gyselroth/windows-fsstat@0.0.7, dtrace-provider@0.8.8, leveldown@5.0.2 platform=win32 arch=ia32
install prebuilt binary  name=@atom/watcher version=1.3.1 platform=win32 arch=ia32
build native dependency from sources  name=@atom/watcher
                                          version=1.3.1
                                          platform=win32
                                          arch=ia32
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.2.4
  prebuild-install info looking for cached prebuild @ C:\Users\appveyor\AppData\Roaming\npm-cache\_prebuilds\0f981f-watcher-v1.3.1-electron-v70-win32-ia32.tar.gz
  prebuild-install http request GET https://github.com/atom/watcher/releases/download/v1.3.1/watcher-v1.3.1-electron-v70-win32-ia32.tar.gz
  prebuild-install http 404 https://github.com/atom/watcher/releases/download/v1.3.1/watcher-v1.3.1-electron-v70-win32-ia32.tar.gz
  prebuild-install WARN install No prebuilt binaries found (target=5.0.0 runtime=electron arch=ia32 libc= platform=win32)
    
rebuilding native dependency  name=@atom/watcher version=1.3.1
rebuilding native dependency  name=@gyselroth/windows-fsstat version=0.0.7
rebuilding native dependency  name=dtrace-provider version=0.8.8
rebuilding native dependency  name=leveldown version=5.0.2
packaging       platform=win32 arch=ia32 electron=5.0.0 appOutDir=dist\win-ia32-unpacked
downloading     url=https://github.com/electron/electron/releases/download/v5.0.0/electron-v5.0.0-win32-ia32.zip size=61 MB parts=4
downloaded      url=https://github.com/electron/electron/releases/download/v5.0.0/electron-v5.0.0-win32-ia32.zip duration=2.321s
building        target=nsis file=dist\Cozy Drive Setup 3.16.0.exe archs=x64, ia32 oneClick=true perMachine=false
downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.3.2/nsis-3.0.3.2.7z size=1.4 MB parts=1
downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.3.2/nsis-3.0.3.2.7z duration=700ms

However, when the app is launched on a x86 Windows, it fails with the following error:

Error: No native build was found for runtime=electron abi=70 platform=win32glibc arch=ia32 win32-error

This seems to happen when we load leveldown.

I couldn’t find any solution to this problem and figured this could be a configuration problem when running electron-builder for another architecture.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
vweeverscommented, Mar 27, 2020

Released leveldown 5.6.0 with a 32-bit Windows prebuild.

0reactions
taratatachcommented, Apr 6, 2020

@okdistribute thanks for the catch and the notification!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hi, can someone help me with this error please, I am unable to ...
Error : No native build was found for platform=win32 arch=x64 runtime=node abi=108 uv=1 ... So Windows is bad for development or what?
Read more >
No native build was found for platform=win 32 - Stack Overflow
After debugging the Exe application I found extrafiles prebuilt fail sometimes to access relative path. hence I used webpabck-externals
Read more >
node-gyp - npm
js native addons. Note that node-gyp is not used to build Node.js itself. Multiple target versions of Node.js are supported (i.e. ...
Read more >
No native build was found for platform=darwin arch=arm64 ...
Related Query · Local native Node module causes error: Uncaught Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=75 uv=1 libc= ......
Read more >
Building a Native Executable - Quarkus
They support the same capabilities to build native executables as Oracle GraalVM CE, with no significant changes to functionality. Notably, they do not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found