From owner-freebsd-ppc@freebsd.org Fri Oct 30 16:38:08 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2AE25A21632 for ; Fri, 30 Oct 2015 16:38:08 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from vms173025pub.verizon.net (vms173025pub.verizon.net [206.46.173.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08D231C41; Fri, 30 Oct 2015 16:38:07 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from lenoil1 ([96.255.168.17]) by vms173025.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NX100FBTI1NQP60@vms173025.mailsrvcs.net>; Fri, 30 Oct 2015 10:37:00 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WpDWSorv c=1 sm=1 tr=0 a=TXQDfM1T7tsaHFmtCUVSow==:117 a=o1OHuDzbAAAA:8 a=oR5dmqMzAAAA:8 a=kj9zAlcOel0A:10 a=5lJygRwiOn0A:10 a=1XWaLZrsAAAA:8 a=6I5d2MoRAAAA:8 a=pGLkceISAAAA:8 a=COfzQ7OkAAAA:8 a=QPYUEKL6enfu8XwqEygA:9 a=NdVUfB1UxblC5eIb:21 a=uq6dSsfOsh7wK4t6:21 a=CjuIK1q_8ugA:10 From: "Curtis Hamilton" To: "'Steve Wills'" , "'Justin Hibbits'" Cc: "'FreeBSD PowerPC ML'" References: <002a01d11001$a4b126e0$ee1374a0$@verizon.net> <003701d1102a$ee366c70$caa34550$@verizon.net> <00f701d1129c$b82b0400$28810c00$@verizon.net> <563370BF.8010602@FreeBSD.org> In-reply-to: <563370BF.8010602@FreeBSD.org> Subject: RE: OpenJDK for PowerPC64 Date: Fri, 30 Oct 2015 11:36:48 -0400 Message-id: <012c01d11328$caef1220$60cd3660$@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-index: AQKRkMsb+GvouUjCqm4Yxd05iNTYtAHpldllAV94MsUBawMSHgIHk2b5Ak5uG5ucutzLMA== Content-language: en-us X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 16:38:08 -0000 Steve, I'll work on the patch. In the meantime, if you'd like to give them a try, I've built OpenJDK7/8 Zero VM for powerpc64. It's available at the below URL: https://drive.google.com/folderview?id=0Bz7VO-WP3rlpM3BabUd6ejlya3c&usp=shar ing -Curtis -----Original Message----- From: Steve Wills [mailto:swills@FreeBSD.org] Sent: Friday, October 30, 2015 9:30 AM To: Curtis Hamilton ; 'Justin Hibbits' Cc: 'FreeBSD PowerPC ML' Subject: Re: OpenJDK for PowerPC64 I recently tried to build lang/gcc on powerpc with the JAVA option on and got what I think are similar errors with libtool. If you could provide a patch for what you had to change to get it to work, that'd be most appreciated. It built fine without the JAVA option, but I did have to turn on the BOOTSTRAP option in both cases to get it to build on powerpc. Though it does add a considerable amount of build time, I think something like this in lang/gcc: OPTIONS_DEFAULT_powerpc64= BOOTSTRAP might be called for. If we can get the JAVA stuff working, I might even consider making that default if that would mean it would be usable as a bootstrap for lang/openjdk[78]. Or maybe we leave it off by default, but use it to build a powerpc version of java/bootstrap-openjdk. Steve On 10/29/2015 18:54, Curtis Hamilton wrote: > It's been a while, but I'll have to take a look and see if I > documented the changes I made, other than adding java to the list of > the build languages in the "Makefile". Changing the makefile was > simple, but I remember that not every version of GCC would build GCJ. > GCC48 and GCC49 failed with internal compiler errors. I was able to build with GCC47 and GCC5, but there was an > issue during stage 3 of each build with libtool errors. To get past this > error I had to make changes to the build order of the GCJ libraries. > > Curtis > > -----Original Message----- > From: chmeeedalf@gmail.com [mailto:chmeeedalf@gmail.com] On Behalf Of > Justin Hibbits > Sent: Thursday, October 29, 2015 12:11 PM > To: Curtis Hamilton > Cc: FreeBSD PowerPC ML > Subject: Re: OpenJDK for PowerPC64 > > Thanks! Did you need to patch anything for gcc to build java, or did > you need to just tell it to build? I remember when I started looking > at it a few years ago there were some things needed, but I can't recall what I did. > It's not difficult to add java to the port for powerpc, so if your > changes were trivial, or you had no changes, that could be a good > first step for us to add this to the ports tree. > > - Justin > > On Mon, Oct 26, 2015 at 3:14 PM, Curtis Hamilton > > wrote: >> I don't have a wiki page. My initial success was in building the >> mercurial >> OpenJDK7 BSD-Port, using the attached build script and instructions >> obtained from the OpenJDK Wiki Darwin9Build >> (https://wiki.openjdk.java.net/display/BSDPort/Darwin9Build) section. >> Subsequently, I used information from the arm patch to modify the >> ports Makefile and build the ports distribution. Other than what's >> in the make file patch, no other patches were needed, as I used the >> mercurial build as the bootstrap. >> >> The key for non-x86 builds is the bootstrap. I used the GCC java >> tools and created a bootstrap (/usr/local/bootstrap-openjdk) using >> sym > links to the >> GCC java executables in /usr/local/bin. I can provide more details if >> needed, however, building GCC java was not as straight forward as it >> is not a configurable option for non-x86 GCC builds. I had to modify >> the port Makefile. >> >> Regards, >> >> Curtis >> >> >> -----Original Message----- >> From: chmeeedalf@gmail.com [mailto:chmeeedalf@gmail.com] On Behalf Of >> Justin Hibbits >> Sent: Monday, October 26, 2015 3:26 PM >> To: Curtis Hamilton >> Cc: FreeBSD PowerPC ML >> Subject: Re: OpenJDK for PowerPC64 >> >> On Mon, Oct 26, 2015 at 10:19 AM, Curtis Hamilton >> >> wrote: >>> Here is my contribution to all those interested in keeping the >>> PowerPC relevant. I've been successful in building OpenJDK7 using >>> Zero VM for PPC64. The binaries for openjdk7 for powerpc64 can be >>> found at the below >>> URL: >>> >>> https://drive.google.com/folderview?id=0Bz7VO-WP3rlpM3BabUd6ejlya3c& >>> u >>> s >>> p=shar >>> ing >>> >>> Give them a try and provide any feedback to the list. >>> >>> Enjoy! >>> >>> BTW: OpenJDK8 may soon be on the way! >> >> That's fantastic! I'll try this soon on my G5. Do you have any wiki >> page with build steps, or even better a port change to add this to ports? >> >> - Justin > > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >