Re: build openjdk8 on ubuntu18.04.1
On 10/25/2018 07:03 AM, Zonghai Shang wrote: > 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'. This looks tad suspicious. Why there are no values in extra cflags? What is your full configure line? -Aleksey
Re: build openjdk8 on ubuntu18.04.1
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 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 >
Re: build openjdk8 on ubuntu18.04.1
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
build openjdk8 on ubuntu18.04.1
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