From owner-freebsd-java@FreeBSD.ORG Fri Aug 10 10:20:06 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EF2F16A41A for ; Fri, 10 Aug 2007 10:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 766AA13C48A for ; Fri, 10 Aug 2007 10:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7AAK6mh001909 for ; Fri, 10 Aug 2007 10:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7AAK6tu001908; Fri, 10 Aug 2007 10:20:06 GMT (envelope-from gnats) Date: Fri, 10 Aug 2007 10:20:06 GMT Message-Id: <200708101020.l7AAK6tu001908@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Tobias Grosser Cc: Subject: Re: ports/113467: Multiple "missing return value" errors building JDK on current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tobias Grosser List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 10:20:06 -0000 The following reply was made to PR ports/113467; it has been noted by GNATS. From: Tobias Grosser To: bug-followup@FreeBSD.org, robbak@gmail.com Cc: Subject: Re: ports/113467: Multiple "missing return value" errors building JDK on current Date: Fri, 10 Aug 2007 11:50:11 +0200 I think I found a workaround for this problem. Have a look at: http://lists.freebsd.org/pipermail/freebsd-java/2007-August/006554.html The solution I found was to decrease optimization by replacing every occurence of "-O2" or "-O3" in the files: - ports/java/jdk15/work/j2se/make/common/Defs-bsd.gmk - ports/java/jdk15/work/hotspot/build/bsd/makefiles/gcc.make with "-O1" and bootstrap using linux-sun-jdk15. With decreased optimization the jdk15 port compiles fine. I tried to compile the jdk15 with optimization using the new compiled java/jdk15 to bootstrap, but again the compile errors from above broke the build. With decreased opimization it works again. Could you try, if this solves the problem for you?