From owner-freebsd-java@FreeBSD.ORG Sun Jun 2 12:47:17 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2CDF5BDC; Sun, 2 Jun 2013 12:47:17 +0000 (UTC) (envelope-from xzpeter@gmail.com) Received: from mail-pb0-x22d.google.com (mail-pb0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) by mx1.freebsd.org (Postfix) with ESMTP id F1103115F; Sun, 2 Jun 2013 12:47:16 +0000 (UTC) Received: by mail-pb0-f45.google.com with SMTP id mc17so4471020pbc.4 for ; Sun, 02 Jun 2013 05:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=YcXjBR0wnJMSQ/kLRrGi1Q/hDo+b63bgEAM4Jup2d+0=; b=AZI+KU4cykfs5JiT6H9YbTJOormeDaqFaj92ywfC3zAqJDsnpD5m/4maKHJCfAYO8q lZsdkxsrwWKn3veTFJLyNSiX+Dox0Yp8RkX7E7cgM4778gGIxjFdVcDWVU/OiUZLDapg On51a6WvWbDSBt2C6lSF3UKsi75rXKqxUFT2HqdSU7DizmqbqBIuqf8fZYYujEKJS+It AFc2pPc0XUMgXWELUxfDv8PhkVUlKLpNCFqgp/EkSsvXwn02UjZAlBfpNVvp5H+L90Dh TZEq8MNePXsn9xR7YuTWMZNLVKJ2XEskYlERfYQJm1nuTjOY0JEQPCgt+/pyTPXEbNIr ypWw== X-Received: by 10.66.118.129 with SMTP id km1mr20160796pab.112.1370177236543; Sun, 02 Jun 2013 05:47:16 -0700 (PDT) Received: from Peters-MacAir.local ([117.79.232.143]) by mx.google.com with ESMTPSA id xz1sm28067729pab.5.2013.06.02.05.47.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Jun 2013 05:47:16 -0700 (PDT) Message-ID: <51AB3EC9.5040902@gmail.com> Date: Sun, 02 Jun 2013 20:47:05 +0800 From: Xu Zhe User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Ronald Klop Subject: Re: JVM panic when build openjdk7 on private FreeBSD 8.2 References: <51A6A2ED.5070009@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Chris Rees , java@freebsd.org, FreeBSD Mailing List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 12:47:17 -0000 于 6/2/13 6:29 AM, Ronald Klop 写道: > On Thu, 30 May 2013 02:53:01 +0200, Xu Zhe wrote: > >> 于 5/30/13 1:42 AM, Chris Rees 写道: >>> On 29 May 2013 09:28, Peter Xu wrote: >>>> Hi, all, >>>> >>>> I got strange issue when trying to build opendjk7 using ports >>>> utility on a >>>> private-built FreeBSD 8.2 system. Here is the output of make: >>>> >>> >>> >>> I'm going to suggest that you upgrade to FreeBSD 8.3-- it's not a big >>> jump, so it shouldn't break anything. >>> >>> Unfortunately ports can't be tested on unsupported versions, and 8.3 >>> has been out over a year now. >>> >>> However, I've added java@ in case they have any suggestions. >>> >>> Chris >> Hi, Chris, >> >> Thanks for the mail. >> >> The problem is, the target FreeBSD 8.2 system has been heavily hacked >> (on both kernel and libc, as far as I know), and they have been doing >> system test for months. If we (or say they) do the swtich, the >> porting of the kernel part will be huge, and test results in the past >> months will be wasted. So I suppose that is not the working solution >> for my case. :( >> >> BTW, I would appreciate if anyone can tell me why build java need >> java support? > > I don't know the internals of building Java, but with compilers it is > generally a chicken-and-egg-problem. How do you compile the compiler? > The compiler javac is written in Java, so you need java to build it. > But you can build a pkg of java on another machine and copy it. > Or it might work to use a ports tree of FreeBSD 8.2. > http://svnweb.freebsd.org/ports/tags/RELEASE_8_2_0/ > > Didn't try, buy might be worth a try. > > Ronald. I have tried to use the old port but still failed after being good for a while. What I got are vast quantities of errors like this: ../../../src/share/classes/java/lang/reflect/Field.java:1028: cannot find symbol private transient Map, Annotation> declaredAnnotations; ^ symbol: class Annotation location: class Field ../../../src/share/classes/java/lang/reflect/Field.java:1028: cannot find symbol private transient Map, Annotation> declaredAnnotations; ^ symbol: class Annotation location: class Field ../../../src/share/classes/java/lang/reflect/Field.java:1030: cannot find symbol private synchronized Map, Annotation> declaredAnnotations() { ^ symbol: class Annotation location: class Field ../../../src/share/classes/java/lang/reflect/Field.java:1030: cannot find symbol private synchronized Map, Annotation> declaredAnnotations() { ^ symbol: class Annotation location: class Field I wanted to change another version of JVM to test the build process, but this (/usr/local/diablo-jdk1.6.0/bin/java) seems the only one I can get in the old port tree... I tried to build openjdk6 first (then I may try use this JVM1.6 to build my 1.7 version if possible), but got familiar error during java code compilation, which told me something like 'cannot find class'. Why not people just write Java compiler in C... :( Or shall I test to build the java-part of openjdk7 on another host (maybe any computer with openjdk1.7 installed) ? Though I still don't know how to do that. Peter