solaris jdk build configure problem

Erik Joelsson erik.joelsson at oracle.com
Wed Mar 2 11:31:47 UTC 2016


The build failure here looks like javac server is having trouble. A 
possible workaround is to configure using --disable-javac-server.

/Erik

On 2016-03-02 12:01, prasanta sadhukhan wrote:
> I tried setting --with-native-debug-symbols=internal which worked 
> during configure. But while build, I am getting a hang while 
> generating java.security. It stays there for an hour or so. Any idea why?
> Whole log is below: BTW, can you also please let me know how to 
> download/use devkit?
>
>
> prasanta at solaris-prasanta:~/jdk9/client$ gmake
> Compiling 5 files for BUILD_GENMODULESLIST
> Building target 'default' in configuration 
> 'solaris-x86_64-normal-server-fastdebug'
> Compiling 8 files for BUILD_TOOLS_LANGTOOLS
> Compiling 16 properties into resource bundles for jdk.compiler
> Parsing 1 properties into enum-like class for jdk.compiler
> Compiling 19 properties into resource bundles for jdk.javadoc
> Compiling 9 properties into resource bundles for jdk.jdeps
> Compiling 1 properties into resource bundles for jdk.jshell
> Compiling 1028 files for BUILD_INTERIM_LANGTOOLS
> Creating buildtools/interim_langtools.jar
> Compiling 43 files for BUILD_INTERIM_JIMAGE
> Starting server. Command: /opt/jdk1.8.0_60/bin/java -d64 -Xms512M 
> -Xmx2048M 
> -Xbootclasspath/p:/export/home/prasanta/jdk9/client/build/solaris-x86_64-normal-server-fastdebug/buildtools/interim_langtools.jar 
> -cp 
> /export/home/prasanta/jdk9/client/build/solaris-x86_64-normal-server-fastdebug/buildtools/interim_langtools.jar 
> com.sun.tools.sjavac.Main 
> --startserver:portfile=/export/home/prasanta/jdk9/client/build/solaris-x86_64-normal-server-fastdebug/make-support/javacservers/server.port,poolsize=1,keepalive=120
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 161 files for BUILD_TOOLS_JDK
> Trying to connect. Attempt 1 of 3
> Connected
> [server] Note: Some input files use unchecked or unsafe operations.
> [server] Note: Recompile with -Xlint:unchecked for details.
> Creating genSocketOptionRegistry from 1 file(s)
> Creating genUnixConstants from 1 file(s)
> Creating genSolarisConstants from 1 file(s)
> Compiling 11 properties into resource bundles for java.base
> Compiling 6 properties into resource bundles for java.base
> Compiling 100 properties into resource bundles for java.desktop
> Compiling 2819 files for java.base
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 1828 files for java.xml
> Trying to connect. Attempt 1 of 3
> Connected
> [server] Note: Some input files use or override a deprecated API.
> [server] Note: Recompile with -Xlint:deprecation for details.
> [server] Note: Some input files use unchecked or unsafe operations.
> [server] Note: Recompile with -Xlint:unchecked for details.
> Compiling 13 files for java.prefs
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 16 files for java.datatransfer
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 11 properties into resource bundles for java.logging
> Compiling 33 files for java.logging
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 2820 files for java.desktop
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 24 files for java.activation
> Trying to connect. Attempt 1 of 3
> Connected
> [server] Note: Some input files use unchecked or unsafe operations.
> [server] Note: Recompile with -Xlint:unchecked for details.
> Compiling 5 files for java.annotations.common
> Trying to connect. Attempt 1 of 3
> Connected
> Compiling 4 files for BUILD_BREAKITERATOR
> Trying to connect. Attempt 1 of 3
> Connected
> Generating blacklisted certs
> Creating support/jce/policy/unlimited/US_export_policy.jar
> Creating support/jce/policy/limited/local_policy.jar
> Creating support/jce/policy/unlimited/local_policy.jar
> Generating java.security
>
> Regards
> Prasanta
> On 3/2/2016 1:25 PM, Erik Joelsson wrote:
>> Easiest is to do as David suggests and use the devkit. If you want to 
>> build without devkit, please install gobjcopy through the package 
>> manager. You can also work around the problem by setting 
>> --with-native-debug-symbols=internal, which will skip the moving of 
>> debug information into external files. It used to be that configure 
>> silently ignored when objcopy was missing, but that has recently been 
>> fixed.
>>
>> /Erik
>>
>> On 2016-03-02 07:41, prasanta sadhukhan wrote:
>>> Hi All,
>>>
>>> I got a fresh clone of jdk9 workspace today and trying to configure 
>>> for build in my solaris 11.2 system. But it fails citing 
>>> /*"configure: error: Unable to find objcopy, cannot enable native 
>>> debug symbols"
>>> */I had used the same system in the past with jdk9 sometime in 
>>> Nov-Dec and it built fine that time. Is there anything I need to 
>>> setup more with current jdk9 repo?
>>>
>>> bash configure --enable-debug --disable-warnings-as-errors
>>>
>>> Running custom generated-configure.sh
>>> configure: Configuration created at Wed Mar  2 12:06:06 IST 2016.
>>> configure: configure script generated at timestamp 1456260269.
>>> checking for basename... /usr/bin/basename
>>> checking for bash... /usr/bin/bash
>>> checking for cat... /usr/bin/cat
>>> checking for chmod... /usr/bin/chmod
>>> checking for cmp... /usr/bin/cmp
>>> checking for comm... /usr/bin/comm
>>> checking for cp... /usr/bin/cp
>>> checking for cut... /usr/bin/cut
>>> checking for date... /usr/bin/date
>>> checking for gdiff... /usr/bin/gdiff
>>> checking for dirname... /usr/bin/dirname
>>> checking for echo... /usr/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... /usr/bin/ln
>>> checking for ls... /usr/bin/ls
>>> checking for mkdir... /usr/bin/mkdir
>>> checking for mktemp... /usr/bin/mktemp
>>> checking for mv... /usr/bin/mv
>>> checking for nawk... /usr/bin/nawk
>>> checking for printf... /usr/bin/printf
>>> checking for rm... /usr/bin/rm
>>> checking for rmdir... /usr/bin/rmdir
>>> checking for sh... /usr/bin/sh
>>> checking for sort... /usr/bin/sort
>>> checking for tail... /usr/bin/tail
>>> checking for tar... /usr/bin/tar
>>> checking for tee... /usr/bin/tee
>>> checking for touch... /usr/bin/touch
>>> checking for tr... /usr/bin/tr
>>> checking for uname... /usr/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... gawk
>>> checking for grep that handles long lines and -e... /usr/bin/ggrep
>>> checking for egrep... /usr/bin/ggrep -E
>>> checking for fgrep... /usr/bin/ggrep -F
>>> checking for a sed that does not truncate output... /usr/bin/gsed
>>> checking for cygpath... no
>>> checking for greadlink... no
>>> checking for readlink... /usr/bin/readlink
>>> checking for df... /usr/bin/df
>>> checking for cpio... /usr/bin/cpio
>>> checking for nice... /usr/bin/nice
>>> checking build system type... x86_64-pc-solaris2.11
>>> checking host system type... x86_64-pc-solaris2.11
>>> checking target system type... x86_64-pc-solaris2.11
>>> checking openjdk-build os-cpu... solaris-x86_64
>>> checking openjdk-target os-cpu... solaris-x86_64
>>> checking compilation type... native
>>> checking for top-level directory... /export/home/prasanta/jdk9/client
>>> checking for presence of closed sources... yes
>>> 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 parfait... not enabled
>>> 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... 
>>> solaris-x86_64-normal-server-fastdebug
>>> checking for apt-get... no
>>> checking for yum... no
>>> checking for port... no
>>> checking for pkgutil... no
>>> checking for pkgadd... pkgadd
>>> checking for gmake... /usr/bin/gmake
>>> configure: Testing potential make at /usr/bin/gmake, found using 
>>> gmake in PATH
>>> configure: Using GNU make at /usr/bin/gmake (version: GNU Make 3.82)
>>> checking if make --output-sync is supported... no
>>> checking if find supports -delete... no
>>> checking for unzip... /usr/bin/unzip
>>> checking for zip... /usr/bin/zip
>>> checking for ldd... /usr/bin/ldd
>>> checking for otool... no
>>> checking for greadelf... no
>>> checking for readelf... no
>>> checking for hg... /usr/bin/hg
>>> checking for stat... /usr/bin/stat
>>> checking for time... /usr/bin/time
>>> checking for gpatch... /usr/bin/gpatch
>>> checking if bash supports pipefail... yes
>>> checking if bash supports errexit (-e)... yes
>>> checking for pkg-config... /usr/bin/pkg-config
>>> checking pkg-config is at least version 0.9.0... yes
>>> checking headful support... include support for both headful and 
>>> headless
>>> checking for version string... 
>>> 9-internal+0-2016-03-02-120607.prasanta.client
>>> checking for javac... /opt/jdk1.8.0_60/bin/javac
>>> checking for java... /opt/jdk1.8.0_60/bin/java
>>> configure: Found potential Boot JDK using java(c) in PATH
>>> checking for Boot JDK... /opt/jdk1.8.0_60
>>> checking Boot JDK version... java version "1.8.0_60" Java(TM) SE 
>>> Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit 
>>> Server VM (build 25.60-b23, 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 jar in Boot JDK... ok
>>> checking for jarsigner in Boot JDK... ok
>>> checking if Boot JDK is 32 or 64 bits... 64
>>> configure: Using default toolchain solstudio (Oracle Solaris Studio)
>>> checking for cc... /opt/solarisstudio12.4/bin/cc
>>> checking resolved symbolic links for CC... no symlink
>>> configure: Using solstudio C compiler version 5.13 [cc: Sun C 5.13 
>>> SunOS_i386 2014/10/20]
>>> 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... no
>>> checking whether /opt/solarisstudio12.4/bin/cc accepts -g... yes
>>> checking for /opt/solarisstudio12.4/bin/cc option to accept ISO 
>>> C89... none needed
>>> checking for CC... /opt/solarisstudio12.4/bin/CC
>>> checking resolved symbolic links for CXX... no symlink
>>> configure: Using solstudio C++ compiler version 5.13 [CC: Sun C++ 
>>> 5.13 SunOS_i386 2014/10/20]
>>> checking whether we are using the GNU C++ compiler... no
>>> checking whether /opt/solarisstudio12.4/bin/CC accepts -g... yes
>>> checking how to run the C preprocessor... 
>>> /opt/solarisstudio12.4/bin/cc -E
>>> checking how to run the C++ preprocessor... 
>>> /opt/solarisstudio12.4/bin/CC -E
>>> checking for as... /usr/ccs/bin/as
>>> checking for ar... ar
>>> configure: Rewriting AR to "/usr/ccs/bin/ar"
>>> checking for strip... /usr/ccs/bin/strip
>>> checking for nm... /usr/ccs/bin/nm
>>> checking for gnm... no
>>> checking for gobjcopy... no
>>> checking for objcopy... no
>>> checking for gobjdump... no
>>> checking for objdump... 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 compiler supports "-m64"... yes
>>> checking if compiler supports "-m64"... yes
>>> checking if native warnings are errors... no
>>> checking what type of native debug symbols to use... zipped
>>> configure: error: Unable to find objcopy, cannot enable native debug 
>>> symbols
>>> configure exiting with result code 1
>>>
>>>
>>> Regards
>>> Prasanta
>>
>




More information about the build-dev mailing list