我正在尝试按照G.1 部分的本教程在 Cygwin 上构建 Bochs。当我尝试输入命令时,./configure --enable-gdb-stub
我得到以下输出:
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking if you are configuring for another platform... no
checking for standard CFLAGS on this platform... -mno-cygwin -DWIN32
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
config.log
我的文件的违规行是:
configure:2132: checking for C compiler default output file name
configure:2135: gcc -mno-cygwin -DWIN32 -mno-cygwin -DWIN32 conftest.c >&5
gcc: error: unrecognized command line option '-mno-cygwin'
gcc: error: unrecognized command line option '-mno-cygwin'
configure:2138: $? = 1
configure: failed program was:
/* confdefs.h */
...
我是操作系统工作的新手,这个问题让我困了几个小时。我不明白为什么-mno-cygwin
甚至被作为gcc
. 任何可能的解决方案?