Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lld-link : error : could not open '/pdbthreads:2': no such file or directory #152

Open
ssnangua opened this issue May 6, 2022 · 0 comments

Comments

@ssnangua
Copy link

ssnangua commented May 6, 2022

Win10 x64,rebuild robotjs error:

lld-link : error : could not open '/pdbthreads:2': no such file or directory [C:\test\node_modules\robotjs\build\robotjs.vcxproj]

I tried deleting the C:\Users\ssnangua\.nw-gyp directory and reinstalling nw-gyp, but it still fails.
Thanks for your help.

stack
PS C:\test\node_modules\robotjs> npx nw-gyp rebuild --target=0.63.1 --arch=x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find VS using VS2022 (17.1.32421.90) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [
gyp info spawn args   'C:\\Users\\ssnangua\\AppData\\Roaming\\nvm\\v14.19.1\\node_modules\\nw-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   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\test\\node_modules\\robotjs\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\ssnangua\\AppData\\Roaming\\nvm\\v14.19.1\\node_modules\\nw-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\ssnangua\\.nw-gyp\\0.63.1\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\ssnangua\\.nw-gyp\\0.63.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\ssnangua\\AppData\\Roaming\\nvm\\v14.19.1\\node_modules\\nw-gyp',
gyp info spawn args   '-Dnode_lib_file="C:\\Users\\ssnangua\\.nw-gyp\\0.63.1\\<(target_arch)\\node.lib"',
gyp info spawn args   '-Dnw_lib_file="C:\\Users\\ssnangua\\.nw-gyp\\0.63.1\\<(target_arch)\\nw.lib"',
gyp info spawn args   '-Dmodule_root_dir=C:\\test\\node_modules\\robotjs',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '-Dv13=1',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\test\\node_modules\\robotjs\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\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:CLToolExe=clang-cl.exe',
gyp info spawn args   '/p:LinkToolExe=lld-link.exe',
gyp info spawn args   '/p:CLToolPath=C:\\Users\\ssnangua\\AppData\\Roaming\\nvm\\v14.19.1\\node_modules\\nw-gyp\\clang',
gyp info spawn args   '/p:LinkToolPath=C:\\Users\\ssnangua\\AppData\\Roaming\\nvm\\v14.19.1\\node_modules\\nw-gyp\\clang',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。
clang-cl : warning : argument unused during compilation: '/MP2' [-Wunused-command-line-argument] [C:\test\node_modules\
robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '/Gm-' [-Wunused-command-line-argument] [C:\test\node_modules\
robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '/external:W3' [-Wunused-command-line-argument] [C:\test\node_
modules\robotjs\build\robotjs.vcxproj]
  In file included from ..\src\robotjs.cc:5:
  In file included from ..\src/mouse.h:5:
..\src/os.h(26,10): warning : 'STRICT' macro redefined [-Wmacro-redefined] [C:\test\node_modules\robotjs\build\robotjs.
vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\minwindef.h(23,9): message : previous definition is
here [C:\test\node_modules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '-std:c++17' [-Wunused-command-line-argument] [C:\test\node_mo
dules\robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '/MP2' [-Wunused-command-line-argument] [C:\test\node_modules\
robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '/Gm-' [-Wunused-command-line-argument] [C:\test\node_modules\
robotjs\build\robotjs.vcxproj]
clang-cl : warning : argument unused during compilation: '/external:W3' [-Wunused-command-line-argument] [C:\test\node_
modules\robotjs\build\robotjs.vcxproj]
..\src\snprintf.c(564,19): warning : variable 'starting_p' set but not used [-Wunused-but-set-variable] [C:\test\node_m
odules\robotjs\build\robotjs.vcxproj]
lld-link : error : could not open '/pdbthreads:2': no such file or directory [C:\test\node_modules\robotjs\build\robotj
s.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\ssnangua\AppData\Roaming\nvm\v14.19.1\node_modules\nw-gyp\lib\build.js:271:23)
gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "rebuild" "--target=0.63.1" "--arch=x64"
gyp ERR! cwd C:\test\node_modules\robotjs
gyp ERR! node -v v14.19.1
gyp ERR! nw-gyp -v v3.6.6
gyp ERR! not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant