windows makefile 在 stockfish(国际象棋程序)上失败

问题描述 投票:0回答:1

这是我第一次在windows上makefile,我通过chocolatey安装了make命令。 在某种程度上它可以工作,但是编译失败,显示:

C:\Users\87952\Desktop\Stockfish-master\Stockfish-master\src>make build
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:24: pipe: No error
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:381: pipe: No error
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:443: pipe: No error
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:488: pipe: No error
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:519: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:551: pipe: Bad file descriptor
'grep' is not recognized as an internal or external command,
operable program or batch file.
curl was unexpected at this time.
shasum was unexpected at this time.
"Default net: "
-f was unexpected at this time.
make: *** [Makefile:832: net] Error 255

我也尝试完成指定架构和编译器的参数,但没有任何改变。 那么谁能告诉我出了什么问题以及如何解决它? 这是该程序的链接:stockfish

现在改在cygwin上编译,有进展了,但是编译还是失败:

/tmp/ccUfH6bQ.s: Assembler messages:
/tmp/ccUfH6bQ.s:6: Warning: .type pseudo-op used outside of .def/.endef: ignored.
/tmp/ccUfH6bQ.s:6: Error: junk at end of line, first unrecognized character is `g'
/tmp/ccUfH6bQ.s:11: Warning: .type pseudo-op used outside of .def/.endef: ignored.
/tmp/ccUfH6bQ.s:11: Error: junk at end of line, first unrecognized character is `g'
/tmp/ccUfH6bQ.s:16: Warning: .type pseudo-op used outside of .def/.endef: ignored.
/tmp/ccUfH6bQ.s:16: Error: junk at end of line, first unrecognized character is `g'
make[2]: *** [/tmp/ccXGdOpL.mk:2: /tmp/stockfish.exe.wUSNQg.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:930: stockfish.exe] Error 1
make[1]: Leaving directory '/cygdrive/c/Users/87952/Desktop/Stockfish-master/Stockfish-master/src'
make: *** [Makefile:797: build] Error 2

错误代码的含义以及如何解决?

windows github makefile compilation stockfish
1个回答
1
投票

哦,这样的错误只有当你输入完整的 gcc 编译命令时才有人可以解决它。我猜这可能是由

-pipe
开关引起的。这主要被认为是
junk at end of line, etc.
的原因。

© www.soinside.com 2019 - 2024. All rights reserved.