“doskey”Scons构建错误

时间:2011-06-13 14:04:40

标签: build node.js mingw scons mingw-w64

我正在尝试(交叉)编译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的任何引用,所以我很困惑。

由于

1 个答案:

答案 0 :(得分:1)

This question should describe why it is being used。但是,我的Windows 7 Pro计算机上可以使用doskey,因此我不明白为什么它不适合您。如果有可用的话,我相信你可以将它从WinXP机器上取下来。

如果您能找到该文件,可以随时将其放在%PATH%的某处,看看它是否有所作为?

或者,将该文件的副本放在正在运行构建脚本的目录中。