Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

build problem on macOS

941188Apr 21 2017 — edited Apr 28 2017

I just updated from http://hg.openjdk.java.net/jdk9/jdk9 and ran into the following build problem on macOS 10.12:

configure: error: Could not find freetype! You might be able to fix this by running 'brew install freetype'.

/Volumes/A/JDK/jdk9/common/autoconf/generated-configure.sh: line 82: 5: Bad file descriptor

configure exiting with result code 1

Note that freetype was already installed using brew.

The following output suggests that configure is only looking in the SDK and not in /usr/local...

+++ FREETYPE_BASE_NAME=freetype

+++ FREETYPE_CFLAGS=

+++ FREETYPE_LIBS=

+++ FREETYPE_BUNDLE_LIB_PATH=

+++ test xtrue = xfalse

+++ BUNDLE_FREETYPE=

+++ test x '!=' x

+++ test x '!=' x

+++ test x '!=' x

+++ test x '!=' x

+++ test x = x

+++ test xmacosx = xwindows

+++ BUNDLE_FREETYPE=no

+++ test x/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk = x

+++ test x '!=' xyes

+++ test xmacosx = xwindows

+++ FREETYPE_BASE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include

+++ POTENTIAL_FREETYPE_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib

+++ METHOD='well-known location'

+++ FOUND_FREETYPE=yes

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/ft2build.h

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/freetype2

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/freetype2/ft2build.h

+++ FOUND_FREETYPE=no

+++ test xno = xyes

+++ test xno = xyes

+++ test xno '!=' xyes

+++ FREETYPE_BASE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/X11

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/X11/include

+++ POTENTIAL_FREETYPE_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/X11/lib

+++ METHOD='well-known location'

+++ FOUND_FREETYPE=yes

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/X11/include/ft2build.h

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/X11/include/freetype2

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/X11/include/freetype2/ft2build.h

+++ FOUND_FREETYPE=no

+++ test xno = xyes

+++ test xno = xyes

+++ test xno '!=' xyes

+++ FREETYPE_BASE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include

+++ POTENTIAL_FREETYPE_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/lib

+++ METHOD='well-known location'

+++ FOUND_FREETYPE=yes

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include/ft2build.h

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include/freetype2

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include/freetype2/ft2build.h

+++ FOUND_FREETYPE=no

+++ test xno = xyes

+++ test xno = xyes

+++ test xmacosx = xmacosx

+++ test xno '!=' xyes

+++ FREETYPE_BASE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/opt/X11

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/opt/X11/include

+++ POTENTIAL_FREETYPE_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/opt/X11/lib

+++ METHOD='well-known location'

+++ FOUND_FREETYPE=yes

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/opt/X11/include/ft2build.h

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/opt/X11/include/freetype2

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/opt/X11/include/freetype2/ft2build.h

+++ FOUND_FREETYPE=no

+++ test xno = xyes

+++ test xno = xyes

+++ test xno '!=' xyes

+++ FREETYPE_BASE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr

+++ test x64 = x64

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include

+++ POTENTIAL_FREETYPE_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/x86_64-linux-gnu

+++ METHOD='well-known location'

+++ FOUND_FREETYPE=yes

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/ft2build.h

+++ POTENTIAL_FREETYPE_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/freetype2

+++ test -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/freetype2/ft2build.h

+++ FOUND_FREETYPE=no

+++ test xno = xyes

+++ test xno = xyes

+++ test xno '!=' xyes

+++ MISSING_DEPENDENCY=freetype

+++ test xmacosx = xwindows.cygwin

+++ test xmacosx = xwindows.msys

+++ PKGHANDLER_COMMAND=

+++ case $PKGHANDLER in

+++ brew_help freetype

+++ case $1 in

+++ PKGHANDLER_COMMAND='brew install freetype'

+++ test 'xbrew install freetype' '!=' x

+++ HELP_MSG='You might be able to fix this by running '\''brew install freetype'\''.'

+++ as_fn_error 0 'Could not find freetype! You might be able to fix this by running '\''brew install freetype'\''. ' 62636 5

+++ as_status=0

+++ test 0 -eq 0

+++ as_status=1

+++ test 5

+++ as_lineno=62636

+++ as_lineno_stack=as_lineno_stack=

+++ printf '%s\n' 'configure:62636: error: Could not find freetype! You might be able to fix this by running '\''brew install freetype'\''. '

+++ printf '%s\n' 'configure: error: Could not find freetype! You might be able to fix this by running '\''brew install freetype'\''. '

configure: error: Could not find freetype! You might be able to fix this by running 'brew install freetype'.

+++ as_fn_exit 1

+++ set +e

+++ as_fn_set_status 1

+++ return 1

+++ exit 1

+ exit_status=1

/Volumes/A/JDK/jdk9/common/autoconf/generated-configure.sh: line 82: 5: Bad file descriptor

+ rm -f core '*.core' 'core.conftest.*'

+ rm -f -r 'conftest*' confdefs.h 'conf29603*'

+ exit 1

++ echo 1

++ exec

+++ cat /var/folders/kr/m7872s7x5t3f8twyftzrj0zm0000gn/T/jdk-build-configure.tmp.XXXXXX.YV3rVGeJ/rc

++ conf_result_code=1

++ test 1 -eq 0

++ echo configure exiting with result code 1

configure exiting with result code 1

++ exit 1

+ rm -rf /var/folders/kr/m7872s7x5t3f8twyftzrj0zm0000gn/T/jdk-build-configure.tmp.XXXXXX.YV3rVGeJ

Comments
Post Details
Added on Apr 21 2017
1 comment
931 views