【问题标题】:How to configure to use gcc toolchain under Cygwin?Cygwin下如何配置使用gcc工具链?
【发布时间】:2018-03-17 18:49:47
【问题描述】:

尝试在 Windows 10 上的 Cygwin 下构建 OpenJDK 9。我想使用 gcc 工具链,但它默认找到 Microsoft 工具链。收到以下错误:

bash$ ./configure MAKE=/usr/local/bin/gmake with_freetype=C:/Users/gfalk/OpenJDK/freetype Running generated-configure.sh configure: Configuration created at Sat Mar 17 14:44:10 EDT 2018. configure: configure script generated at timestamp 1496926402. checking for basename... /usr/bin/basename checking for bash... /usr/bin/bash .... configure: Cannot locate a valid Visual Studio installation, checking current environment checking for Visual Studio variables... not found configure: Cannot locate a valid Visual Studio or Windows SDK installation on disk, configure: nor is this script run from a Visual Studio command prompt. configure: Try setting --with-tools-dir to the VC/bin directory within the VS installation configure: or run "bash.exe -l" from a VS command prompt and then run configure from there. configure: error: Cannot continue configure exiting with result code 1

如何将其指向 gcc 工具链?

谢谢, 杰弗里

【问题讨论】:

    标签: java gcc makefile build configure


    【解决方案1】:

    根据OpenJDK build instructions,构建OpenJDK需要Microsoft Visual Studio。

    我依稀记得曾尝试将 Windows 支持移植到 GCC 和 Ming64(用于在 Fedora 上进行交叉编译),但它需要进行不平凡的更改,并且从未完全完成。

    【讨论】:

      最近更新 更多