Problem building JDK 8
Hadi
hadilashkari at gmail.com
Mon Jan 5 14:55:37 UTC 2015
Martin Buchholz <martinrb at ...> writes:
>
> Others don't seem to have this problem - you can try looking at
> config.log and elsewhere trying to figure out what went wrong.
>
> On Fri, Dec 19, 2014 at 1:08 AM, Cédric Champeau
> <cedric.champeau at ...> wrote:
> > Hi everyone,
> >
> > Some of you may know that we try to test Groovy builds against the latest
> > versions of the JDK. For that, we have setup a CI build of OpenJDK 7, 8 and
> > 9. However, the JDK 8 builds have been failing for several months now (sorry
> > I didn't have much time to investigate this specific subject, so I rely on
> > EA builds instead, which gives us late but valuable feedback).
> >
> > Basically, in the JDK 8 build log (JDK 9 doesn't have the issue), I can read
> > this in the logs:
> >
> > [02:00:17]: [Step 1/2] configure: error: Could not find freetype! You
> > might be able to fix this by running 'sudo apt-get install
> > libfreetype6-dev'.
> >
> > However if I try to do so, I see that freetype *is* installed:
> >
> > # apt-get install libfreetype6-dev
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > libfreetype6-dev is already the newest version.
> >
> > The server is running Ubuntu 14.04.1 LTS, which gcc 4.8.2, which is supposed
> > to "work flawlessly" from what I read here:
> > https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms
> >
> > We build from http://hg.openjdk.java.net/jdk8u/jdk8u
> >
> > Thanks for your help!
> >
> > --
> > Cédric Champeau
> > SpringSource - Pivotal
> > http://twitter.com/CedricChampeau
> > http://melix.github.io/blog
> > http://spring.io/ http://www.gopivotal.com/
> >
>
>
Hey,
I have the same issue!! I recently upgraded from UBUNTU 12.04 to UBUNTU
14.04. Then I cloned jdk8u tree and installed these packages:
build-essential zip unzip openjdk-7-jdk libX11-dev libxext-dev
libxrender-dev libxtst-dev libxt-dev libcups2-dev libfreetype6-dev
libcups2-dev libasound2-dev ccache g++-4.7-multilib libffi-dev
But after running `bash configure` I get the same error:
configure: error: Could not find freetype! You might be able to fix this by
running 'sudo apt-get install libfreetype6-dev'.
configure exiting with result code 1
You see that I installed libfreetype6-dev. This is a part of config.log as
you requested:
## --------- ##
## Platform. ##
## --------- ##
hostname = srv25887.screweb.com
uname -m = x86_64
uname -r = 3.13.0-43-generic
uname -s = Linux
uname -v = #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
## ----------- ##
## Core tests. ##
## ----------- ##
.
.
.
configure:29378: result: no
configure:30037: checking if compiler supports "-m64"
configure:30053: /usr/bin/gcc-4.8 -c -m64 conftest.c >&5
configure:30053: $? = 0
configure:30079: /usr/bin/g++-4.8 -c -m64 conftest.cpp >&5
configure:30079: $? = 0
configure:30093: result: yes
configure:30106: checking if compiler supports "-m64"
configure:30122: /usr/bin/gcc-4.8 -c -m64 conftest.c >&5
configure:30122: $? = 0
configure:30148: /usr/bin/g++-4.8 -c -m64 conftest.cpp >&5
configure:30148: $? = 0
configure:30162: result: yes
configure:30176: checking for broken SuSE 'ld' which only understands
anonymous version tags in executables
configure:30181: result: no
configure:30206: checking if we should generate debug symbols
configure:30231: result: true
configure:30237: checking if we should zip debug-info files
configure:30246: result: yes
configure:30334: checking what is not needed on Linux?
configure:30337: result: pulse
configure:30416: checking for Mac OS X Java Framework
configure:30422: result: no
configure:30456: checking for X
configure:30564: /usr/bin/g++-4.8 -E conftest.cpp
configure:30564: $? = 0
configure:30595: /usr/bin/g++-4.8 -o conftest conftest.cpp -lX11 >&5
configure:30595: $? = 0
configure:30645: result: libraries , headers
configure:30744: /usr/bin/g++-4.8 -o conftest conftest.cpp -lX11 >&5
configure:30744: $? = 0
configure:30842: checking for gethostbyname
configure:30842: /usr/bin/g++-4.8 -o conftest conftest.cpp >&5
configure:30842: $? = 0
configure:30842: result: yes
configure:30939: checking for connect
configure:30939: /usr/bin/g++-4.8 -o conftest conftest.cpp >&5
configure:30939: $? = 0
configure:30939: result: yes
configure:30988: checking for remove
configure:30988: /usr/bin/g++-4.8 -o conftest conftest.cpp >&5
configure:30988: $? = 0
configure:30988: result: yes
configure:31037: checking for shmat
configure:31037: /usr/bin/g++-4.8 -o conftest conftest.cpp >&5
configure:31037: $? = 0
configure:31037: result: yes
configure:31095: checking for IceConnectionNumber in -lICE
configure:31120: /usr/bin/g++-4.8 -o conftest conftest.cpp -lICE >&5
configure:31120: $? = 0
configure:31129: result: yes
configure:31210: checking for X11/extensions/shape.h
configure:31210: /usr/bin/gcc-4.8 -c conftest.c >&5
configure:31210: $? = 0
configure:31210: result: yes
configure:31210: checking for X11/extensions/Xrender.h
configure:31210: /usr/bin/gcc-4.8 -c conftest.c >&5
configure:31210: $? = 0
configure:31210: result: yes
configure:31210: checking for X11/extensions/XTest.h
configure:31210: /usr/bin/gcc-4.8 -c conftest.c >&5
configure:31210: $? = 0
configure:31210: result: yes
configure:31210: checking for X11/Intrinsic.h
configure:31210: /usr/bin/gcc-4.8 -c conftest.c >&5
configure:31210: $? = 0
configure:31210: result: yes
configure:31463: checking cups/cups.h usability
configure:31463: /usr/bin/g++-4.8 -c conftest.cpp >&5
configure:31463: $? = 0
configure:31463: result: yes
configure:31463: checking cups/cups.h presence
configure:31463: /usr/bin/g++-4.8 -E conftest.cpp
configure:31463: $? = 0
configure:31463: result: yes
configure:31463: checking for cups/cups.h
configure:31463: result: yes
configure:31463: checking cups/ppd.h usability
configure:31463: /usr/bin/g++-4.8 -c conftest.cpp >&5
configure:31463: $? = 0
configure:31463: result: yes
configure:31463: checking cups/ppd.h presence
configure:31463: /usr/bin/g++-4.8 -E conftest.cpp
configure:31463: $? = 0
configure:31463: result: yes
configure:31463: checking for cups/ppd.h
configure:31463: result: yes
configure:34287: error: Could not find freetype! You might be able to fix
this by running 'sudo apt-get install libfreetype6-dev'.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_ALSA_CFLAGS_set=
ac_cv_env_ALSA_CFLAGS_value=
ac_cv_env_ALSA_LIBS_set=
ac_cv_env_ALSA_LIBS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_FREETYPE_CFLAGS_set=
ac_cv_env_FREETYPE_CFLAGS_value=
ac_cv_env_FREETYPE_LIBS_set=
ac_cv_env_FREETYPE_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBFFI_CFLAGS_set=
ac_cv_env_LIBFFI_CFLAGS_value=
ac_cv_env_LIBFFI_LIBS_set=
ac_cv_env_LIBFFI_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OBJCFLAGS_set=
ac_cv_env_OBJCFLAGS_value=
ac_cv_env_OBJC_set=
ac_cv_env_OBJC_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_connect=yes
ac_cv_func_gethostbyname=yes
ac_cv_func_remove=yes
ac_cv_func_shmat=yes
ac_cv_have_x='have_x=yes ac_x_includes='\'''\'' ac_x_libraries='\'''\'''
ac_cv_header_X11_Intrinsic_h=yes
ac_cv_header_X11_extensions_XTest_h=yes
ac_cv_header_X11_extensions_Xrender_h=yes
ac_cv_header_X11_extensions_shape_h=yes
ac_cv_header_cups_cups_h=yes
ac_cv_header_cups_ppd_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_ICE_IceConnectionNumber=yes
ac_cv_objext=o
ac_cv_path_BASENAME=/usr/bin/basename
ac_cv_path_BASH=/bin/bash
ac_cv_path_CAT=/bin/cat
ac_cv_path_CHECK_MAKE=/usr/bin/make
ac_cv_path_CHMOD=/bin/chmod
ac_cv_path_CMP=/usr/bin/cmp
ac_cv_path_COMM=/usr/bin/comm
ac_cv_path_CP=/bin/cp
ac_cv_path_CPIO=/bin/cpio
ac_cv_path_CUT=/usr/bin/cut
ac_cv_path_DATE=/bin/date
ac_cv_path_DF=/bin/df
ac_cv_path_DIFF=/usr/bin/diff
ac_cv_path_DIRNAME=/usr/bin/dirname
ac_cv_path_ECHO=/bin/echo
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_EXPR=/usr/bin/expr
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_FILE=/usr/bin/file
ac_cv_path_FIND=/usr/bin/find
ac_cv_path_GREP=/bin/grep
ac_cv_path_HEAD=/usr/bin/head
ac_cv_path_HG=/usr/bin/hg
ac_cv_path_JAVAC_CHECK=/usr/bin/javac
ac_cv_path_JAVA_CHECK=/usr/bin/java
ac_cv_path_LDD=/usr/bin/ldd
ac_cv_path_LN=/bin/ln
ac_cv_path_LS=/bin/ls
ac_cv_path_MKDIR=/bin/mkdir
ac_cv_path_MKTEMP=/bin/mktemp
ac_cv_path_MV=/bin/mv
ac_cv_path_NAWK=/usr/bin/nawk
ac_cv_path_POTENTIAL_CC=/usr/bin/gcc
ac_cv_path_POTENTIAL_CXX=/usr/bin/g++
ac_cv_path_PRINTF=/usr/bin/printf
ac_cv_path_READELF=/usr/bin/readelf
ac_cv_path_READLINK=/bin/readlink
ac_cv_path_RM=/bin/rm
ac_cv_path_SED=/bin/sed
ac_cv_path_SH=/bin/sh
ac_cv_path_SORT=/usr/bin/sort
ac_cv_path_STAT=/usr/bin/stat
ac_cv_path_TAIL=/usr/bin/tail
ac_cv_path_TAR=/bin/tar
ac_cv_path_TEE=/usr/bin/tee
ac_cv_path_TIME=/usr/bin/time
ac_cv_path_TOUCH=/usr/bin/touch
ac_cv_path_TR=/usr/bin/tr
ac_cv_path_UNAME=/bin/uname
ac_cv_path_UNIQ=/usr/bin/uniq
ac_cv_path_UNZIP=/usr/bin/unzip
ac_cv_path_WC=/usr/bin/wc
ac_cv_path_WHICH=/usr/bin/which
ac_cv_path_XARGS=/usr/bin/xargs
ac_cv_path_ZIP=/usr/bin/zip
ac_cv_prog_AWK=gawk
ac_cv_prog_BDEPS_FTP=wget
ac_cv_prog_BDEPS_UNZIP=unzip
ac_cv_prog_CPP='/usr/bin/gcc-4.8 -E'
ac_cv_prog_CXXCPP='/usr/bin/g++-4.8 -E'
ac_cv_prog_PKGHANDLER=apt-get
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_NM=nm
ac_cv_prog_ac_ct_OBJCOPY=objcopy
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_sizeof_int_p=8
ac_cv_target=x86_64-unknown-linux-gnu
More information about the build-dev
mailing list