From owner-freebsd-java@FreeBSD.ORG Tue Jan 13 19:15:54 2009 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 F03D21065B87 for ; Tue, 13 Jan 2009 19:15:54 +0000 (UTC) (envelope-from kjkoster@kjkoster.org) Received: from www.kjkoster.org (kjkoster.org [80.101.182.197]) by mx1.freebsd.org (Postfix) with ESMTP id 822F78FC1E for ; Tue, 13 Jan 2009 19:15:53 +0000 (UTC) (envelope-from kjkoster@kjkoster.org) Received: from [192.168.0.1] (mac [192.168.0.1]) by www.kjkoster.org (8.14.3/8.14.3) with ESMTP id n0DJIufp081285; Tue, 13 Jan 2009 20:19:04 +0100 (CET) (envelope-from kjkoster@kjkoster.org) Message-Id: <9205CDBD-A78B-465E-A559-1762D1223FFC@kjkoster.org> From: Kees Jan Koster To: Milos Negovanovic In-Reply-To: <20090113165119.GD542@googlemail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 13 Jan 2009 20:15:44 +0100 References: <20090113124656.GB542@googlemail.com> <48AD78A1-3463-4342-A76E-497762B222E6@kjkoster.org> <20090113133624.GC542@googlemail.com> <20090113165119.GD542@googlemail.com> X-Mailer: Apple Mail (2.930.3) Cc: netbsd-java@NetBSD.org, freebsd-java@freebsd.org Subject: Re: lang/sun-jdk15 on amd64 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: Tue, 13 Jan 2009 19:15:56 -0000 Dear Milos, >> No idea, sorry. I always use the native build, because if I run into >> problems, they can be fixed by the Java porting team. The linux >> package >> is not open to such fixes. > > How do you manage to build native jdk? It depends on linux emulated > jdk > package (which core dumps for me). Hum. You ran into the bootstrap problem. Blech, I remember that one from way back when I hacked at the DEC Alpha port a little. Technically, building the JDK depends on any working JVM, not the linux one per se. There are two paths for you to take; find a working JVM for your box and edit the port dependency so that it uses that JVM, or do the bootstrap on another machine. I'm not sure what version of the JDK you need to bootstrap the JVM build. First path speaks for itself, I think. Second path is more likely to work, but very fiddly. First run the build until it cores. Then see the last command that the build tried to run. That command is most likely "${your-bootstrap-java-home}/bin/javac ..." What you can do is copy the extracted and half-built JDK sources onto (say) a Linux/amd64 system, then issue the failed command manually, then drag the half- built tree back to the target machine and continue the build. You can optimize this procedure if you study the command and its dependent files. I have done it in the past and it's not really as hard as it sounds. This is all from memory, so please check with Greg Lewis and the java porting team on how to proceed. They know a lot more tricks than I do. -- Kees Jan http://java-monitor.com/forum/ kjkoster@kjkoster.org 06-51838192 The secret of success lies in the stability of the goal. -- Benjamin Disraeli