Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

The build works in macos-latest and ubunto-latest, but fails with windows2019 #91

Open
rlwoodjr opened this issue Jan 24, 2023 · 0 comments

Comments

@rlwoodjr
Copy link

rlwoodjr commented Jan 24, 2023

[email protected]
node v16.19.0

The github would sucessfully build 2 weeks ago, but not today. I re-ran a version that was sucessful, and it failed. The build text from github is listed below.

First post. I hopfully got the needed information. Any help would be appreciated.

Will run Yarn commands in directory "."

Installing dependencies using Yarn…
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning [email protected]: Breaking change, bumped to 3.0.0
warning electron-builder-notarize > [email protected]: Please use @electron/notarize moving forward.  There is no API change, just a package name change
warning [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
warning [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
warning node-gyp > make-fetch-happen > cacache > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
warning socket.io > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning socket.io > socket.io-parser > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning socket.io > engine.io > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning electron-builder > app-builder-lib > [email protected]: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
warning electron-builder > app-builder-lib > @electron/universal > [email protected]: Please use @electron/asar moving forward.  There is no API change, just a package name change
warning [email protected]: Please use @electron/rebuild moving forward.  There is no API change, just a package name change
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "jscs@^3.0.3".
[4/4] Building fresh packages...
success Saved lockfile.
Done in [16](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:17)0.05s.

Running the build script…

Building the Electron app…
yarn run v1.22.19
$ D:\a\Basic-SENDER\Basic-SENDER\node_modules\.bin\electron-builder --windows -p always
  • electron-builder  version=23.6.0 os=10.0.[17](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:18)763
  • loaded configuration  file=package.json ("build" field)
  • electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies

To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
  • rebuilding native dependencies  dependencies=@serialport/[email protected], @serialport/[email protected], [email protected] platform=win32 arch=x64
  • install prebuilt binary  name=@serialport/bindings version=9.2.8 platform=win32 arch=x64 napi=
  • build native dependency from sources  name=@serialport/bindings
                                          version=9.2.8
                                          platform=win32
                                          arch=x64
                                          napi=
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 7.1.1
    prebuild-install warn install prebuilt binaries enforced with --force!
    prebuild-install warn install prebuilt binaries may be out of date!
    prebuild-install info looking for local prebuild @ prebuilds\bindings-v9.2.8-electron-v106-win32-x64.tar.gz
    prebuild-install info looking for cached prebuild @ C:\Users\runneradmin\AppData\Roaming\npm-cache\_prebuilds\07878c-bindings-v9.2.8-electron-v106-win32-x64.tar.gz
    prebuild-install http request GET https://github.com/serialport/node-serialport/releases/download/@serialport/[email protected]/bindings-v9.2.8-electron-v106-win32-x64.tar.gz
    prebuild-install http 404 https://github.com/serialport/node-serialport/releases/download/@serialport/[email protected]/bindings-v9.2.8-electron-v106-win32-x64.tar.gz
    prebuild-install warn install No prebuilt binaries found (target=[19](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:20).1.9 runtime=electron arch=x64 libc= platform=win32)
    
  • install prebuilt binary  name=drivelist version=11.1.0 platform=win32 arch=x64 napi= 
  • build native dependency from sources  name=drivelist
                                          version=11.1.0
                                          platform=win32
                                          arch=x64
                                          napi=n
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 7.1.1
    prebuild-install warn install prebuilt binaries enforced with --force!
    prebuild-install warn install prebuilt binaries may be out of date!
    prebuild-install info looking for local prebuild @ prebuilds\drivelist-v11.1.0-napi-v8-win32-x64.tar.gz
    prebuild-install info looking for cached prebuild @ C:\Users\runneradmin\AppData\Roaming\npm-cache\_prebuilds\e780ff-drivelist-v11.1.0-napi-v8-win32-x64.tar.gz
    prebuild-install http request GET https://github.com/balena-io-modules/drivelist/releases/download/v11.1.0/drivelist-v11.1.0-napi-v8-win32-x64.tar.gz
    prebuild-install http 404 https://github.com/balena-io-modules/drivelist/releases/download/v11.1.0/drivelist-v11.1.0-napi-v8-win32-x64.tar.gz
    prebuild-install warn install No prebuilt binaries found (target=8 runtime=napi arch=x64 libc= platform=win32)
    
  • rebuilding native dependency  name=@serialport/bindings version=9.2.8
  • rebuilding native dependency  name=@serialport/bindings-cpp version=10.8.0
  • rebuilding native dependency  name=drivelist version=11.1.0
  • packaging       platform=win32 arch=x64 electron=19.1.9 appOutDir=dist\win-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v19.1.9/electron-v19.1.9-win32-x64.zip size=88 MB parts=4
  • downloaded      url=https://github.com/electron/electron/releases/download/v19.1.9/electron-v19.1.9-win32-x64.zip duration=3.886s
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.654s
  • rebuilding native dependencies  dependencies=@serialport/[email protected], @serialport/[email protected], [email protected] platform=win32 arch=ia32
  • install prebuilt binary  name=@serialport/bindings version=9.2.8 platform=win32 arch=ia32 napi=
  • build native dependency from sources  name=@serialport/bindings
                                          version=9.2.8
                                          platform=win32
                                          arch=ia32
                                          napi=
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 7.1.1
    prebuild-install warn install prebuilt binaries enforced with --force!
    prebuild-install warn install prebuilt binaries may be out of date!
    prebuild-install info looking for local prebuild @ prebuilds\bindings-v9.2.8-electron-v106-win32-ia32.tar.gz
    prebuild-install info looking for cached prebuild @ C:\Users\runneradmin\AppData\Roaming\npm-cache\_prebuilds\913a4f-bindings-v9.2.8-electron-v106-win32-ia32.tar.gz
    prebuild-install http request GET https://github.com/serialport/node-serialport/releases/download/@serialport/[email protected]/bindings-v9.2.8-electron-v106-win32-ia32.tar.gz
    prebuild-install http 404 https://github.com/serialport/node-serialport/releases/download/@serialport/[email protected]/bindings-v9.2.8-electron-v106-win32-ia32.tar.gz
    prebuild-install warn install No prebuilt binaries found (target=19.1.9 runtime=electron arch=ia32 libc= platform=win32)
    
  • install prebuilt binary  name=drivelist version=11.1.0 platform=win32 arch=ia32 napi= 
  • build native dependency from sources  name=drivelist
                                          version=11.1.0
                                          platform=win32
                                          arch=ia32
                                          napi= 
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 7.1.1
    prebuild-install warn install prebuilt binaries enforced with --force!
    prebuild-install warn install prebuilt binaries may be out of date!
    prebuild-install info looking for local prebuild @ prebuilds\drivelist-v11.1.0-napi-v8-win32-ia32.tar.gz
    prebuild-install info looking for cached prebuild @ C:\Users\runneradmin\AppData\Roaming\npm-cache\_prebuilds\acf0ec-drivelist-v11.1.0-napi-v8-win32-ia32.tar.gz
    prebuild-install http request GET https://github.com/balena-io-modules/drivelist/releases/download/v11.1.0/drivelist-v11.1.0-napi-v8-win32-ia32.tar.gz
    prebuild-install http 404 https://github.com/balena-io-modules/drivelist/releases/download/v11.1.0/drivelist-v11.1.0-napi-v8-win32-ia32.tar.gz
    prebuild-install warn install No prebuilt binaries found (target=8 runtime=napi arch=ia32 libc= platform=win32)
    
  • rebuilding native dependency  name=@serialport/bindings version=9.2.8
  • rebuilding native dependency  name=@serialport/bindings-cpp version=10.8.0
  • rebuilding native dependency  name=drivelist version=11.1.0
  ⨯ cannot execute  cause=exit status 1
                    out=$ prebuild-install --runtime napi || node-gyp rebuild
    
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist>if not defined npm_config_node_gyp (node "C:\hostedtoolcache\windows\node\16.19.0\x64\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild ) 
    Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
      nothing.c
      win_delay_load_hook.cc
      nothing.vcxproj -> D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\Release\\nothing.lib
      drivelist.cpp
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(51,6): error C2666: 'Napi::CallbackInfo::operator []': 2 overloads have similar conversions [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\node-addon-api\napi-inl.h(3477,34): message : could be 'const Napi::Value Napi::CallbackInfo::operator [](size_t) const' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(51,6): message : or       'built-in C++ operator[(napi_callback_info, int)' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(51,6): message : while trying to match the argument list '(const Napi::CallbackInfo, int)' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(57,35): error C2666: 'Napi::CallbackInfo::operator []': 2 overloads have similar conversions [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\node-addon-api\napi-inl.h(3477,34): message : could be 'const Napi::Value Napi::CallbackInfo::operator [](size_t) const' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(57,35): message : or       'built-in C++ operator[(napi_callback_info, int)' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(57,35): message : while trying to match the argument list '(const Napi::CallbackInfo, int)' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\src\drivelist.cpp(57,56): error C[20](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:21)59: syntax error: ')' [D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist\build\drivelist.vcxproj]
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    
                    errorOut=prebuild-install warn This package does not support N-API version 19.1.9
    prebuild-install warn install No prebuilt binaries found (target=19.1.9 runtime=napi arch=ia32 libc= platform=win32)
    gyp info it worked if it ends with ok
    gyp info using [email protected]
    gyp info using [email protected] | win32 | x64
    gyp info find Python using Python version 3.7.9 found at "C:\hostedtoolcache\windows\Python\3.7.9\x64\python3.exe"
    gyp info find VS using VS2019 (16.11.33[21](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:22)4.272) found at:
    gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
    gyp info find VS run with --verbose for detailed information
    gyp info spawn C:\hostedtoolcache\windows\Python\3.7.9\x64\python3.exe
    gyp info spawn args [
    gyp info spawn args   'C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
    gyp info spawn args   'binding.gyp',
    gyp info spawn args   '-f',
    gyp info spawn args   'msvs',
    gyp info spawn args   '-I',
    gyp info spawn args   'D:\\a\\Basic-SENDER\\Basic-SENDER\\node_modules\\drivelist\\build\\config.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\Users\\runneradmin\\.electron-gyp\\19.1.9\\include\\node\\common.gypi',
    gyp info spawn args   '-Dlibrary=shared_library',
    gyp info spawn args   '-Dvisibility=default',
    gyp info spawn args   '-Dnode_root_dir=C:\\Users\\runneradmin\\.electron-gyp\\19.1.9',
    gyp info spawn args   '-Dnode_gyp_dir=C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp',
    gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\runneradmin\\\\.electron-gyp\\\\19.1.9\\\\<(target_arch)\\\\node.lib',
    gyp info spawn args   '-Dmodule_root_dir=D:\\a\\Basic-SENDER\\Basic-SENDER\\node_modules\\drivelist',
    gyp info spawn args   '-Dnode_engine=v8',
    gyp info spawn args   '--depth=.',
    gyp info spawn args   '--no-parallel',
    gyp info spawn args   '--generator-output',
    gyp info spawn args   'D:\\a\\Basic-SENDER\\Basic-SENDER\\node_modules\\drivelist\\build',
    gyp info spawn args   '-Goutput_dir=.'
    gyp info spawn args ]
    gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe
    gyp info spawn args [
    gyp info spawn args   'build/binding.sln',
    gyp info spawn args   '/clp:Verbosity=minimal',
    gyp info spawn args   '/nologo',
    gyp info spawn args   '/p:Configuration=Release;Platform=Win32'
    gyp info spawn args ]
    gyp ERR! build error 
    gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onExit (C:\hostedtoolcache\windows\node\16.19.0\x64\node_modules\npm\node_modules\node-gyp\lib\build.js:201:[23](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:24))
    gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
    gyp ERR! System Windows_NT 10.0.17763
    gyp ERR! command "C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node.exe" "C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    gyp ERR! cwd D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist
    gyp ERR! node -v v16.19.0
    gyp ERR! node-gyp -v v9.1.0
    gyp ERR! not ok 
    error Command failed with exit code 1.
    
                    command='C:\hostedtoolcache\windows\node\16.19.0\x64\node.exe' 'C:\npm\prefix\node_modules\yarn\bin\yarn.js' run install
                    workingDir=D:\a\Basic-SENDER\Basic-SENDER\node_modules\drivelist
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:144
				throw err;
				^

Error: Command failed: yarn run electron-builder --windows  -p always
    at checkExecSyncError (child_process.js:635:11)
    at execSync (child_process.js:671:15)
    at run (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:21:[27](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:28))
    at runAction (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:132:4)
    at Object.<anonymous> (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:150:1)
    at Module._compile (internal/modules/cjs/loader.js:999:[30](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:31))
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:[32](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:33))
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: [51](https://github.com/rlwoodjr/Basic-SENDER/actions/runs/3989577253/jobs/6842174675#step:5:52)08,
  stdout: null,
  stderr: null
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant