From owner-freebsd-ports@FreeBSD.ORG Sun Jun 2 14:16:46 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 29CA824B; Sun, 2 Jun 2013 14:16:46 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id DC3D81454; Sun, 2 Jun 2013 14:16:45 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id aq17so7867286iec.5 for ; Sun, 02 Jun 2013 07:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aU3q/w3DCbQnR1srWHtXtP/iEWqO8Aey2YpibRn8qq0=; b=onxW0s8lC8WQLiQJUmM2Xif8ymx/KW27ojFu4gpIxqFwVk+eBVA4xMS/+5YyQ6Wf0d kEnV+Y+RRxQDZrMpuiiMY60FEr9zVb4uxJRWyAd24/VmAh/EfCy/OWi6eGtHlrwo7661 lJ1ePv87O2+/gBekEmDnQd8Lbje2KLbBNPNmdvqmiQ5gxXd4NTI0Y49mh9hXNmHZZtFG MASjmjziSAWVUrSITLzi91dRcx+5/cvMPXqt55TyM6tmYyxw7Zlz/F2r94KihMdPi8Os KRK85AmVMKTOabBAC/oux9iyOFd/n6NZ40FbDHAR/mBP5WoMgu0+c1xkCjelSboz2m0A ifNA== MIME-Version: 1.0 X-Received: by 10.43.106.202 with SMTP id dv10mr8483063icc.37.1370182605040; Sun, 02 Jun 2013 07:16:45 -0700 (PDT) Received: by 10.64.71.101 with HTTP; Sun, 2 Jun 2013 07:16:44 -0700 (PDT) Received: by 10.64.71.101 with HTTP; Sun, 2 Jun 2013 07:16:44 -0700 (PDT) In-Reply-To: <51AB3EC9.5040902@gmail.com> References: <51A6A2ED.5070009@gmail.com> <51AB3EC9.5040902@gmail.com> Date: Sun, 2 Jun 2013 15:16:44 +0100 Message-ID: Subject: Re: JVM panic when build openjdk7 on private FreeBSD 8.2 From: Chris Rees To: Peter Xu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Chris Rees , java@freebsd.org, FreeBSD Mailing List , Ronald Klop X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 14:16:46 -0000 On 2 Jun 2013 13:47, "Xu Zhe" wrote: > > =E4=BA=8E 6/2/13 6:29 AM, Ronald Klop =E5=86=99=E9=81=93: >> >> On Thu, 30 May 2013 02:53:01 +0200, Xu Zhe wrote: >> >> >>> =E4=BA=8E 5/30/13 1:42 AM, Chris Rees =E5=86=99=E9=81=93: >>>> >>>> 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. Ports-mgmt/portdowngrade has a -r option, which will recursively allow you to install a port + its dependencies at a lower version. Try that on it perhaps? Chris