Hi! Please run:
apt build-dep openjdk-8 as root before you continue. If that doesn’t help, try with “openjdk-9”, “openjdk-10” or “openjdk-11”. Cheers, Adrian > On Oct 25, 2018, at 7:03 AM, Zonghai Shang <y...@apache.org> wrote: > > Here is my config: > > Running generated-configure.sh > configure: Configuration created at Thu Oct 25 11:35:50 HKT 2018. > configure: configure script generated at timestamp 1539613812. > checking for basename... /usr/bin/basename > checking for bash... /bin/bash > checking for cat... /bin/cat > checking for chmod... /bin/chmod > checking for cmp... /usr/bin/cmp > checking for comm... /usr/bin/comm > checking for cp... /bin/cp > checking for cut... /usr/bin/cut > checking for date... /bin/date > checking for gdiff... no > checking for diff... /usr/bin/diff > checking for dirname... /usr/bin/dirname > checking for echo... /bin/echo > checking for expr... /usr/bin/expr > checking for file... /usr/bin/file > checking for find... /usr/bin/find > checking for head... /usr/bin/head > checking for ln... /bin/ln > checking for ls... /bin/ls > checking for mkdir... /bin/mkdir > checking for mktemp... /bin/mktemp > checking for mv... /bin/mv > checking for nawk... /usr/bin/nawk > checking for printf... /usr/bin/printf > checking for rm... /bin/rm > checking for sh... /bin/sh > checking for sort... /usr/bin/sort > checking for tail... /usr/bin/tail > checking for tar... /bin/tar > checking for tee... /usr/bin/tee > checking for touch... /usr/bin/touch > checking for tr... /usr/bin/tr > checking for uname... /bin/uname > checking for uniq... /usr/bin/uniq > checking for wc... /usr/bin/wc > checking for which... /usr/bin/which > checking for xargs... /usr/bin/xargs > checking for gawk... no > checking for mawk... mawk > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for fgrep... /bin/grep -F > checking for a sed that does not truncate output... /bin/sed > checking for cygpath... no > checking for greadlink... no > checking for readlink... /bin/readlink > checking for df... /bin/df > checking for SetFile... no > checking for cpio... /bin/cpio > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > checking openjdk-build os-cpu... linux-x86_64 > checking openjdk-target os-cpu... linux-x86_64 > checking compilation type... native > checking for top-level directory... /home/yiji/jvm/jdk8u > checking for presence of closed sources... no > checking if closed source is suppressed (openjdk-only)... no > checking which variant of the JDK to build... normal > checking which interpreter of the JVM to build... template > checking which variants of the JVM to build... server > checking which debug level to use... fastdebug > checking for sysroot... > checking for toolchain path... > checking for extra path... > checking where to store configuration... in default location > checking what configuration name to use... > linux-x86_64-normal-server-fastdebug > checking for apt-get... apt-get > checking for gmake... no > checking for make... /usr/bin/make > configure: Testing potential make at /usr/bin/make, found using make in PATH > configure: Using GNU make 3.81 (or later) at /usr/bin/make (version: GNU > Make 4.1) > checking if find supports -delete... yes > checking for unzip... /usr/bin/unzip > checking for zip... /usr/bin/zip > checking for ldd... /usr/bin/ldd > checking for readelf... /usr/bin/readelf > checking for hg... /usr/bin/hg > checking for stat... /usr/bin/stat > checking for time... /usr/bin/time > checking for pkg-config... /usr/bin/pkg-config > checking pkg-config is at least version 0.9.0... yes > checking for 7z... no > checking for unzip... unzip > checking for wget... wget > checking headful support... include support for both headful and headless > configure: Found potential Boot JDK using JAVA_HOME > checking for Boot JDK... /home/yiji/jvm/jdk1.7.0_80 > checking Boot JDK version... java version "1.7.0_80" Java(TM) SE Runtime > Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build > 24.80-b11, mixed mode) > checking for java in Boot JDK... ok > checking for javac in Boot JDK... ok > checking for javah in Boot JDK... ok > checking for javap in Boot JDK... ok > checking for jar in Boot JDK... ok > checking for rmic in Boot JDK... ok > checking for native2ascii in Boot JDK... ok > checking if Boot JDK is 32 or 64 bits... 64 > checking flags for boot jdk java command ... > checking flags for boot jdk java command for big workloads... -Xms64M > -Xmx1600M -XX:ThreadStackSize=1536 -XX:PermSize=32m -XX:MaxPermSize=160m > checking flags for boot jdk java command for small workloads... > -XX:+UseSerialGC -Xms32M -Xmx512M > configure: Using default toolchain gcc (GNU Compiler Collection) > checking for gcc... /usr/bin/gcc > checking resolved symbolic links for CC... /usr/bin/x86_64-linux-gnu-gcc-7 > checking if CC is disguised ccache... no, keeping CC > configure: Using gcc C compiler version 7.3.0 [gcc (Ubuntu > 7.3.0-27ubuntu1~18.04) 7.3.0] > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether /usr/bin/gcc accepts -g... yes > checking for /usr/bin/gcc option to accept ISO C89... none needed > checking for g++... /usr/bin/g++ > checking resolved symbolic links for CXX... /usr/bin/x86_64-linux-gnu-g++-7 > checking if CXX is disguised ccache... no, keeping CXX > configure: Using gcc C++ compiler version 7.3.0 [g++ (Ubuntu > 7.3.0-27ubuntu1~18.04) 7.3.0] > checking whether we are using the GNU C++ compiler... yes > checking whether /usr/bin/g++ accepts -g... yes > checking how to run the C preprocessor... /usr/bin/gcc -E > checking how to run the C++ preprocessor... /usr/bin/g++ -E > checking for ar... ar > configure: Rewriting AR to "/usr/bin/ar" > checking for strip... strip > configure: Rewriting STRIP to "/usr/bin/strip" > checking for otool... no > checking for nm... nm > configure: Rewriting NM to "/usr/bin/nm" > checking for gobjcopy... no > checking for objcopy... objcopy > configure: Rewriting OBJCOPY to "/usr/bin/objcopy" > checking for gobjdump... no > checking for objdump... objdump > configure: Rewriting OBJDUMP to "/usr/bin/objdump" > checking for broken SuSE 'ld' which only understands anonymous version tags > in executables... no > checking for jtreg... no > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking stdio.h usability... yes > checking stdio.h presence... yes > checking for stdio.h... yes > checking size of int *... 8 > checking for target address size... 64 bits > checking whether byte ordering is bigendian... no > checking if the C++ compiler supports "-std=gnu++98 -Werror"... yes > configure: WARNING: Ignoring CFLAGS(-Wno-error) found in environment. Use > --with-extra-cflags > configure: WARNING: Ignoring CXXFLAGS(-Wno-error) found in environment. Use > --with-extra-cxxflags > checking if the C compiler supports "-fno-delete-null-pointer-checks > -Werror"... yes > checking if the C++ compiler supports "-fno-delete-null-pointer-checks > -Werror"... yes > checking if both compilers support "-fno-delete-null-pointer-checks > -Werror"... yes > checking if the C compiler supports "-fno-lifetime-dse -Werror"... yes > checking if the C++ compiler supports "-fno-lifetime-dse -Werror"... yes > checking if both compilers support "-fno-lifetime-dse -Werror"... yes > checking if the C compiler supports "-m64"... yes > checking if the C++ compiler supports "-m64"... yes > checking if both compilers support "-m64"... yes > checking if the C compiler supports "-m64"... yes > checking if the C++ compiler supports "-m64"... yes > checking if both compilers support "-m64"... yes > checking if we should generate debug symbols... true > checking if we should zip debug-info files... yes > checking what type of native debug symbols to use (this will override > previous settings)... not specified > configure: --with-native-debug-symbols not specified. Using values from > --disable-debug-symbols and --disable-zip-debug-info > checking what is not needed on Linux?... pulse > checking for X... libraries , headers > checking for gethostbyname... yes > checking for connect... yes > checking for remove... yes > checking for shmat... yes > checking for IceConnectionNumber in -lICE... yes > checking for X11/extensions/shape.h... yes > checking for X11/extensions/Xrender.h... yes > checking for X11/extensions/XTest.h... yes > checking for X11/Intrinsic.h... yes > checking cups/cups.h usability... yes > checking cups/cups.h presence... yes > checking for cups/cups.h... yes > checking cups/ppd.h usability... yes > checking cups/ppd.h presence... yes > checking for cups/ppd.h... yes > checking for FREETYPE... yes > checking for freetype... yes (using pkg-config) > checking if we can compile and link with freetype... yes > checking if we should bundle freetype... no > checking for ALSA... yes > checking for main in -ljpeg... yes > checking for which giflib to use... bundled > checking for compress in -lz... yes > checking for which zlib to use... bundled > checking for cos in -lm... yes > checking for dlopen in -ldl... yes > checking if dynamic link of stdc++ is possible... yes > checking if static link of stdc++ is possible... yes > checking how to link with libstdc++... static > checking if elliptic curve crypto implementation is present... yes > checking for number of cores... 4 > checking for memory size... 3921 MB > checking for appropriate number of jobs to run in parallel... 3 > checking whether to use sjavac... no > checking that precompiled headers work... yes > checking is ccache enabled... no > checking if build directory is on local disk... yes > configure: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/config.status > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/spec.gmk > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot-spec.gmk > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/bootcycle-spec.gmk > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/compare.sh > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/spec.sh > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/Makefile > config.status: creating > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/config.h > > ==================================================== > A new configuration has been successfully created in > /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug > using configure arguments '--enable-debug --with-extra-cflags > --with-extra-cxxflags'. > > Configuration summary: > * Debug level: fastdebug > * JDK variant: normal > * JVM variants: server > * OpenJDK target: OS: linux, CPU architecture: x86, address length: 64 > > Tools summary: > * Boot JDK: java version "1.7.0_80" Java(TM) SE Runtime Environment > (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, > mixed mode) (at /home/yiji/jvm/jdk1.7.0_80) > * Toolchain: gcc (GNU Compiler Collection) > * C Compiler: Version 7.3.0 (at /usr/bin/gcc) > * C++ Compiler: Version 7.3.0 (at /usr/bin/g++) > > Build performance summary: > * Cores to use: 3 > * Memory limit: 3921 MB > > yiji > > Zonghai Shang <y...@apache.org> 于2018年10月25日周四 下午12:06写道: > >> Hi >> >> >> Building OpenJDK for target 'all' in configuration >> 'linux-x86_64-normal-server-fastdebug' >> >> ## Starting langtools >> Compiling 2 files for BUILD_TOOLS >> Compiling 32 properties into resource bundles >> Compiling 782 files for BUILD_BOOTSTRAP_LANGTOOLS >> Note: Some input files use or override a deprecated API. >> Note: Recompile with -Xlint:deprecation for details. >> Creating langtools/dist/bootstrap/lib/javac.jar >> Updating langtools/dist/lib/src.zip >> Compiling 785 files for BUILD_FULL_JAVAC >> Note: Some input files use or override a deprecated API. >> Note: Recompile with -Xlint:deprecation for details. >> Creating langtools/dist/lib/classes.jar >> ## Finished langtools (build time 00:00:31) >> >> ## Starting hotspot >> make[2]: warning: -jN forced in submake: disabling jobserver mode. >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> Creating Makefile ... >> Creating directory list ../shared_dirs.lst >> Creating flags.make ... >> Creating flags_vm.make ... >> Creating vm.make ... >> Creating adlc.make ... >> Creating jvmti.make ... >> Creating trace.make ... >> Creating sa.make ... >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> Creating Makefile ... >> Creating flags.make ... >> Creating flags_vm.make ... >> Creating vm.make ... >> Creating adlc.make ... >> Creating jvmti.make ... >> Creating trace.make ... >> Creating sa.make ... >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> Creating Makefile ... >> Creating flags.make ... >> Creating flags_vm.make ... >> Creating vm.make ... >> Creating adlc.make ... >> Creating jvmti.make ... >> Creating trace.make ... >> Creating sa.make ... >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> Creating Makefile ... >> Creating flags.make ... >> Creating flags_vm.make ... >> Creating vm.make ... >> Creating adlc.make ... >> Creating jvmti.make ... >> Creating trace.make ... >> Creating sa.make ... >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/archDesc.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/adlparse.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/arena.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/dfa.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/dict2.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/filebuff.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/forms.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/formsopt.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/formssel.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/main.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/opto/opcodes.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/output_c.cpp >> Compiling /home/yiji/jvm/jdk8u/hotspot/src/share/vm/adlc/output_h.cpp >> Making adlc >> warning: [options] bootstrap class path not set in conjunction with >> -source 1.6 >> warning: [options] bootstrap class path not set in conjunction with >> -source 1.6 >> 1 warning >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/jvmtifiles/jvmtiEnv.hpp >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/jvmtifiles/jvmtiEnter.cpp >> 1 warning >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/jvmtifiles/jvmtiEnterTrace.cpp >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/jvmtifiles/jvmtiEnvRecommended.cpp >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/jvmtifiles/bytecodeInterpreterWithChecks.cpp >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/jvmtifiles/jvmti.h >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/tracefiles/traceEventClasses.hpp >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/tracefiles/traceEventIds.hpp >> Generating >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/tracefiles/traceTypes.hpp >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> Making >> /home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/../generated/sa-jdi.jar >> warning: [options] bootstrap class path not set in conjunction with >> -source 1.6 >> Note: Some input files use unchecked or unsafe operations. >> Note: Recompile with -Xlint:unchecked for details. >> 1 warning >> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 >> INFO: ALT_OBJCOPY=/usr/bin/objcopy >> INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. >> INFO: STRIP_POLICY=min_strip >> INFO: ZIP_DEBUGINFO_FILES=1 >> Generating precompiled header precompiled.hpp.gch >> g++: error: yes: No such file or directory >> /home/yiji/jvm/jdk8u/hotspot/make/linux/makefiles/vm.make:309: recipe for >> target 'precompiled.hpp.gch' failed >> make[6]: *** [precompiled.hpp.gch] Error 1 >> /home/yiji/jvm/jdk8u/hotspot/make/linux/makefiles/top.make:119: recipe for >> target 'the_vm' failed >> make[5]: *** [the_vm] Error 2 >> /home/yiji/jvm/jdk8u/hotspot/make/linux/Makefile:297: recipe for target >> 'fastdebug' failed >> make[4]: *** [fastdebug] Error 2 >> make[3]: *** [generic_build2] Error 2 >> Makefile:230: recipe for target 'generic_build2' failed >> Makefile:177: recipe for target 'fastdebug' failed >> make[2]: *** [fastdebug] Error 2 >> HotspotWrapper.gmk:44: recipe for target >> '/home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/_hotspot.timestamp' >> failed >> make[1]: *** >> [/home/yiji/jvm/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot/_hotspot.timestamp] >> Error 2 >> /home/yiji/jvm/jdk8u//make/Main.gmk:109: recipe for target 'hotspot-only' >> failed >> make: *** [hotspot-only] Error 2 >> >> I am getting an error when compiling openjdk8 in ubuntu18.04.1: >> >> Generating precompiled header precompiled.hpp.gch >> g++: error: yes: No such file or directory >> /home/yiji/jvm/jdk8u/hotspot/make/linux/makefiles/vm.make:309: recipe for >> target 'precompiled.hpp.gch’ failed >> >> How can I solve it? thanks. >> >> yiji >>