“doskey” scons构建错误
我正在尝试(交叉)编译node.js,但出现了这个奇怪的错误,该错误似乎来自 scons:
$ make
Waf: Entering directory `C:\MinGW\msys\1.0\home\Adam\Stuff\node\build'
[51/71] libv8.a: deps\v8\SConstruct -> build\default\libv8.a
'"c:\Program Files\Python27\python.exe" "C:\MinGW\msys\1.0\home\Adam\Stuff\node\tools/scons/scons.py" -j 1 -C "C:/MinGW/msys/1.0/home/Adam/Stuff/node/build/default/" -Y "C:/MinGW/msys/1.0/home/Adam/Stuff/node/deps/v8" visibility=default mode=release arch=x64 toolchain=gcc library=static '
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
x86_64-w64-mingw32-g++ -o obj\release\accessors.o -c -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -Wno-long-long -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -DWIN32 -fno-strict-aliasing -fno-rtti -fno-exceptions -DWIN32 -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -Wno-long-long -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -DWIN32 -fno-strict-aliasing -DV8_TARGET_ARCH_X64 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -IC:\MinGW\msys\1.0\home\Adam\Stuff\node\deps\v8\src C:\MinGW\msys\1.0\home\Adam\Stuff\node\deps\v8\src\accessors.cc
scons: building terminated because of errors.
'doskey' is not recognized as an internal or external command,
operable program or batch file.
'doskey' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [obj\release\accessors.o] Error 1
Waf: Leaving directory `C:\MinGW\msys\1.0\home\Adam\Stuff\node\build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
DEST_OS: win32
DEST_CPU: x64
Parallel Jobs: 1
Product type: program
make: *** [program] Error 1
我的构建环境是 Windows 7,使用 mingw/msys 和 mingw-w64 工具。我什至在任何似乎正在运行的脚本中都找不到对 doskey 的任何引用,所以我陷入了困境。
谢谢
I'm trying to (cross-)compile node.js and I get this odd error that appears to be coming from scons:
$ make
Waf: Entering directory `C:\MinGW\msys\1.0\home\Adam\Stuff\node\build'
[51/71] libv8.a: deps\v8\SConstruct -> build\default\libv8.a
'"c:\Program Files\Python27\python.exe" "C:\MinGW\msys\1.0\home\Adam\Stuff\node\tools/scons/scons.py" -j 1 -C "C:/MinGW/msys/1.0/home/Adam/Stuff/node/build/default/" -Y "C:/MinGW/msys/1.0/home/Adam/Stuff/node/deps/v8" visibility=default mode=release arch=x64 toolchain=gcc library=static '
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
x86_64-w64-mingw32-g++ -o obj\release\accessors.o -c -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -Wno-long-long -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -DWIN32 -fno-strict-aliasing -fno-rtti -fno-exceptions -DWIN32 -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -Wno-long-long -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -DWIN32 -fno-strict-aliasing -DV8_TARGET_ARCH_X64 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -IC:\MinGW\msys\1.0\home\Adam\Stuff\node\deps\v8\src C:\MinGW\msys\1.0\home\Adam\Stuff\node\deps\v8\src\accessors.cc
scons: building terminated because of errors.
'doskey' is not recognized as an internal or external command,
operable program or batch file.
'doskey' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [obj\release\accessors.o] Error 1
Waf: Leaving directory `C:\MinGW\msys\1.0\home\Adam\Stuff\node\build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
DEST_OS: win32
DEST_CPU: x64
Parallel Jobs: 1
Product type: program
make: *** [program] Error 1
My build environment was a Windows 7, using mingw/msys and mingw-w64 tools. I can't even find any reference to doskey in any of the scripts that seem to be running so I'm quite stuck.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题应描述使用它的原因。但是,
doskey
在我的 Windows 7 Pro 计算机上可用,因此我不明白为什么它不适合您。我确信如果您有一台可用的 WinXP 计算机,您可以将其从一台计算机上下载下来。如果您能找到该文件,您可以随时将其放在
%PATH%
中的某个位置,看看它是否会产生影响?或者,将该文件的副本放入正在运行构建脚本的目录中。
This question should describe why it is being used. However,
doskey
is available on my Windows 7 Pro machine so I don't understand why it is not working for you. I'm sure you could pull it off a WinXP machine if you have one available.If you can find the file, you could always drop it somewhere in your
%PATH%
and see if it makes a difference?Alternatively, put a copy of the file in the directory that the build script is being run in.