From owner-freebsd-java@FreeBSD.ORG Tue Jun 4 08:44:54 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E52C148B for ; Tue, 4 Jun 2013 08:44:54 +0000 (UTC) (envelope-from xzpeter@gmail.com) Received: from mail-pb0-x22b.google.com (mail-pb0-x22b.google.com [IPv6:2607:f8b0:400e:c01::22b]) by mx1.freebsd.org (Postfix) with ESMTP id C46101211 for ; Tue, 4 Jun 2013 08:44:54 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id ma3so6976637pbc.16 for ; Tue, 04 Jun 2013 01:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=p5p/uoGchJXR+nTRSoKL8w2nfQmob7pLUNuJYaVW8cI=; b=zIfHCv6K5mZ/Q3H51LsQ3Fs1WERSfjxKaKfq5hJTx8L1nSDwHg6LRqo2K3b9/pFYxn 0oclQmbi7PTpMZK24T6o1RH26D8D2RSpTit1g3fUox2VzxSRkAKai1SQRt7y34C0Frp5 f8ovxyNFU8+lKtOArsbp9b/oTtKCmGr+6NeZP0o3e3waKJwItkQAcDcx2VJbh5pfkOad 14Y572lY6T+s586qG4cOsQR3mIWU9ez1t8ZoGEqffTzSLk5lYCzo+TzGNjSV/JbLoqdM bQ4ICNgs0X+yIx/wwzLn+4qPXYRhcCOwM2XbxnioC3dE6NWDSPgIU17vHQ8qaOEBgxUn Q+Qg== X-Received: by 10.68.135.231 with SMTP id pv7mr27083346pbb.108.1370335494619; Tue, 04 Jun 2013 01:44:54 -0700 (PDT) Received: from [10.0.0.116] ([222.129.232.198]) by mx.google.com with ESMTPSA id kv2sm62437976pbc.28.2013.06.04.01.44.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 01:44:54 -0700 (PDT) Message-ID: <51ADA907.1020801@gmail.com> Date: Tue, 04 Jun 2013 16:44:55 +0800 From: Xu Zhe User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: java@freebsd.org Subject: How to build openjdk7 for customized FreeBSD system Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 08:44:55 -0000 Hi, all, I have posted several mails in the list, asking for different kinds of build errors when I met during the process of building openjdk7 on a customized FreeBSD 8.2 system. Today I found the root cause of all the problems. That is, the system needs one initial bootstrap Java SDK to build the openjdk7, but the tragedy is that, *all* the bootstrap JDKs are binaries. These binaries could run on our system, but will met strange issue since the system is heavily hacked in the kernel and libc part, and it's never generic at all. So here is the problem... I will never have a working Java environment as the bootstrap JDK on the hacked system. I need another generic system to help, who has a good working JDK. So please ignore all the strange errors I posted. Now I want to ask a more generic question, which I suppose is the only way to finish my porting work: How should I build all the C codes in openjdk7 on my hacked system, while build the rest Java codes on another system? Thanks in advance! Peter