From owner-freebsd-java@FreeBSD.ORG Fri Aug 10 15:56:58 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C17A816A41B for ; Fri, 10 Aug 2007 15:56:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 436EF13C4E5 for ; Fri, 10 Aug 2007 15:56:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l7AFuvmP027700; Fri, 10 Aug 2007 11:56:57 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Matt Date: Fri, 10 Aug 2007 11:56:51 -0400 User-Agent: KMail/1.6.2 References: <20070803053142.GA4434@misty.eyesbeyond.com> <46BB9860.4050105@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200708101156.55080.jkim@FreeBSD.org> Cc: freebsd-java@FreeBSD.org, Rene Ladan Subject: Re: JDK 1.6.0 patchset 1 "Brumby" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 15:56:58 -0000 On Friday 10 August 2007 08:50 am, Matt wrote: > On 8/9/07, Rene Ladan wrote: > > Jung-uk Kim schreef: > > > On Sunday 05 August 2007 11:34 am, Rene Ladan wrote: > > >> I tried installing this on my i386 FreeBSD-CURRENT SMP box > > >> (2007-08-04 06:32 UTC) using diablo-jdk15 as bootstrap. The > > >> build first failed because of GCC 4.2 warnings-as-errors about > > >> deprecated string conversions. After commenting out a -Werror > > >> in work/hotspot/build/bsd/makefiles/gcc.make , the > > >> hotspot-fastdebug server built fine, but it failed in > > >> test_gamma. I've attached the hs_err log. > > > > > > The attached patch should fix the build problem on -CURRENT. > > > > Got it. > > > > > Your error log shows that you set JAVA_HOME wrong: > > > > > > Environment Variables: > > > JAVA_HOME=/usr/local/diablo-jdk1.5.0 > > > > Building with diablo-jdk15 is supported? > > > > After moving the patch to files/ and removing work/ , rebuilding > > the port now lets the gamma tests succeed. But now it fails with > > an AssertionError when zipping up rt.jar. The build log > > including some additional information is available at > > http://home.tiscali.nl/rladan/freebsd/AssertionError.bz2 (35kB). > > See suggestion noted in > > http://lists.freebsd.org/pipermail/freebsd-java/2007-August/006579. >html > > The optimization reduction noted there fixed my build issues on > current for both jdk16 and jdk15. It is very strange but I can believe that. GCC 4.2.x has many optimization bugs. Some problems were fixed in 4.2.1 but there are some serious regressions like these: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32328 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32716 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32992 Complex, C++ intensive, and optimization flag sensitive applications, e.g., JDK and OpenOffice.org, may be affected by them without being noticed. :-( Jung-uk Kim