Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2014 23:38:21 -0500
From:      Jimmy Kelley <ljboiler@gmail.com>
To:        freebsd-java@freebsd.org
Cc:        Huang Wen Hui <huanghwh@gmail.com>
Subject:   Re: openjdk-7u55 bug
Message-ID:  <5359e6bf.c3ef320a.19c2.76ab@mx.google.com>
In-Reply-To: <mailpost.1398389023.6175918.55217.mailing.freebsd.java@FreeBSD.cs.nctu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
I am seeing the same error, and have filed a PR (no patch).  I noticed that there
is no problem in either the current openjdk6 or openjdk8 port with the same code.

Jimmy

> Hi,
> I could not run this simple sample code under STALBE-10 or 10.0-RELEASE:
> 
> package cn.org.gddsn.test;
> 
> public class TestExec1 {
>  public static void main(String argv[]) {
>    try {
>      Runtime runtime = Runtime.getRuntime();
>      Process process = runtime.exec("/usr/bin/touch /tmp/d.txt");
>      process.waitFor();
> 
>      // XXX Fixed
>      process.getErrorStream().close();
>      process.getInputStream().close();
>      process.getOutputStream().close();
>      process.destroy();
> 
>    } catch (Exception e) {
>      System.out.println("Got " + e);
>      e.printStackTrace(System.out);
>      return;
>    }
>    System.out.println("Done!");
>  }
> }
> 
> 
> 
> /usr/local/openjdk7.bad/bin/java -cp . cn/org/gddsn/test/TestExec1
> Got java.io.IOException: Cannot run program "/usr/bin/touch": error=2, No
> such file or directory
> java.io.IOException: Cannot run program "/usr/bin/touch": error=2, No such
> file or directory
>    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
>    at java.lang.Runtime.exec(Runtime.java:617)
>    at java.lang.Runtime.exec(Runtime.java:450)
>    at java.lang.Runtime.exec(Runtime.java:347)
>    at cn.org.gddsn.test.TestExec1.main(TestExec1.java:7)
> Caused by: java.io.IOException: error=2, No such file or directory
>    at java.lang.UNIXProcess.forkAndExec(Native Method)
>    at java.lang.UNIXProcess.<init>(UNIXProcess.java:184)
>    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
>    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
>    ... 4 more
> 
> openjdk-7u51 is OK.
> 
> Cheers,
> Huang Wenhui
> 
> 
> 2014-04-22 7:05 GMT+08:00 Huang Wen Hui <huanghwh@gmail.com>:
> 
>> Hi,
>>
>>
>> 2014-04-22 4:57 GMT+08:00 Jung-uk Kim <jkim@freebsd.org>:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On 2014-04-21 14:57:42 -0400, Mike Jakubik wrote:
>>> > On 04/20/14 22:10, Huang Wen Hui wrote:
>>> >> Hi, Build on STABLE-10, got this error:
>>> >>
>>> >> c++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I.
>>> >> -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims
>>> >>
>>> >>
>>> - -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm
>>> >>
>>> -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled
>>> >>
>>> >>
>>> - -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/cpu/x86/vm
>>> >> -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os_cpu/bsd_x86/vm
>>> >>
>>> >>
>>> - -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/bsd/vm
>>> >> -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/posix/vm
>>> >> -I../generated -DHOTSPOT_RELEASE_VERSION="\"24.55-b03\""
>>> >> -DHOTSPOT_BUILD_TARGET="\"product\""
>>> >> -DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"amd64\"
>>> >> -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -DLIBICONV_PLUG
>>> >> -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86
>>> >> -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86
>>> >> -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc
>>> >> -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -m64
>>> >> -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86
>>> >> -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86
>>> >> -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc
>>> >> -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -pthread
>>> >> -m64 -pipe -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -D_LP64=1
>>> >> -fno-omit-frame-pointer -DINCLUDE_TRACE=1 -Wpointer-arith
>>> >> -Wconversion -Wsign-compare   -DLIBICONV_PLUG -c -fpch-deps -MMD
>>> >> -MP -MF ../generated/dependencies/precompiled.hpp.gch.d -x
>>> >> c++-header
>>> >>
>>> /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled/precompiled.hpp
>>> >>
>>> >>
>>> >>
>>> - -o precompiled.hpp.gch
>>> >> c++: error: unknown argument: '-fpch-deps'
>>> >>
>>> >
>>> > FYI. Same problem here, also on 10-stable.
>>>
>>> This problem should be fixed with r351714.
>>>
>> Yes, the problem is fixed.  But if use 7u55 to build openjdk-7u55, got
>> this error:
>>
>>   Sanity check passed.
>> gmake \
>>         SKIP_FASTDEBUG_BUILD=true \
>>         SKIP_DEBUG_BUILD=true \
>>          \
>>         generic_build_repo_series
>> gmake[3]: Entering directory `/usr/ports/java/openjdk7/work/openjdk'
>> /bin/mkdir -p ./build/bsd-amd64/j2sdk-image
>> /bin/mkdir -p
>> /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools
>>
>>
>> ########################################################################
>> ########################################################################
>> ##### Entering langtools for target(s) all                         #####
>> ########################################################################
>>
>> (cd  ./langtools/make && \
>>   gmake JDK_TOPDIR=/usr/ports/java/openjdk7/work/openjdk/jdk
>> JDK_MAKE_SHARED_DIR=/usr/ports/java/openjdk7/work/openjdk/jdk/make/common/shared
>> EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7
>> MILESTONE=fcs BUILD_NUMBER=b13 JDK_BUILD_NUMBER=b13
>> FULL_VERSION=1.7.0_55-b13 PREVIOUS_JDK_VERSION=1.6. JDK_VERSION=1.7.0_55
>> JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7
>> JDK_MICRO_VERSION=0_55 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6
>> PREVIOUS_MICRO_VERSION= ARCH_DATA_MODEL=64 COOKED_BUILD_NUMBER=13
>> ANT_HOME="/usr/ports/java/openjdk7/work/apache-ant-1.9.3"
>> ALT_OUTPUTDIR=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools
>> ALT_BOOTDIR=/usr/local/openjdk7 all)
>> gmake[4]: Entering directory
>> `/usr/ports/java/openjdk7/work/openjdk/langtools/make'
>> JAVA_HOME=/usr/local/openjdk7
>> ANT_OPTS=-Djava.io.tmpdir='/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build/ant-tmp'
>> /usr/ports/java/openjdk7/work/apache-ant-1.9.3/bin/ant
>> -Djdk.version=1.7.0_55 -Dfull.version='1.7.0_55-b13'  -Drelease=1.7.0_55
>> -Dbuild.number=b13 -Djavac.target=7 -Djavac.source=7
>> -Dboot.java.home=/usr/local/openjdk7
>> -Dimport.jdk=/usr/ports/java/openjdk7/work/openjdk/jdk
>> -Dbuild.dir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build
>> -Ddist.dir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist
>> build
>> Buildfile: /usr/ports/java/openjdk7/work/openjdk/langtools/make/build.xml
>>
>> -def-pcompile:
>>     [javac] Compiling 2 source files to
>> /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build/toolclasses
>>
>> BUILD FAILED
>> /usr/ports/java/openjdk7/work/openjdk/langtools/make/build.xml:860: Error
>> running /usr/local/openjdk7/bin/javac compiler
>>
>> Total time: 0 seconds
>> gmake[4]: *** [build] Error 1
>> gmake[4]: Leaving directory
>> `/usr/ports/java/openjdk7/work/openjdk/langtools/make'
>> gmake[3]: *** [langtools-build] Error 2
>>
>> gmake[3]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk'
>> gmake[2]: *** [build_product_image] Error 2
>> gmake[2]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk'
>> *** Error code 1
>>
>> Stop.
>> make[1]: stopped in /usr/ports/java/openjdk7
>> *** Error code 1
>>
>> Stop.
>> make: stopped in /usr/ports/java/openjdk7
>>
>> Cheers,
>> Huang Wenhui
>>
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5359e6bf.c3ef320a.19c2.76ab>