From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FBZ2V-00049Z-VI for garchives@archives.gentoo.org; Tue, 21 Feb 2006 15:02:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1LF2NAF026369; Tue, 21 Feb 2006 15:02:23 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1LF2NA6021626 for ; Tue, 21 Feb 2006 15:02:23 GMT Received: from smtp08.web.de ([217.72.192.226]) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FBZ1y-0006dD-TZ for gentoo-java@lists.gentoo.org; Tue, 21 Feb 2006 15:02:23 +0000 Received: from [84.136.111.41] (helo=anomalie.manna.org) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.105 #340) id 1FBZ1x-0004nL-00; Tue, 21 Feb 2006 16:02:22 +0100 Date: Tue, 21 Feb 2006 16:04:25 +0100 From: Hanno Meyer-Thurow To: gentoo-java@lists.gentoo.org Cc: world.root@gmail.com Subject: [gentoo-java] work on gcj for gentoo Message-Id: <20060221160425.b1478bdc.h.mth@web.de> X-Mailer: Sylpheed version 2.1.9 (GTK+ 2.8.9; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: h.mth@web.de X-Sender: h.mth@web.de X-Archives-Salt: ac563b47-73a9-41b8-8c93-55a8a8b2d10e X-Archives-Hash: 556d543e7911efa42e37aab1bb662e24 Hi list! I would like to work on gcj for Gentoo. I spoke with Andrew Cowie. He suggested me to send my ideas and questions to this list to discuss. I know gcj is tricky. It has various issues. Still, it is quite interesting to work on gcj. But as gcj is in portage right now it is hard to use for an ebuild writer like myself. Just two main issues: * dependency tracking * JDK-like environment However, I may write my ideas and questions: I thought in a gcj-4.1 / ecj combination. Use ecj to bytecompile Java source to jar with gcj as backend. Then use gcj to create native executables or libraries out of that jar files. Creating a database via gcj-dbtool for jar / native code resolution. If possible Java to native. The steps to take to get there * get gcj-jdk in portage * use ecj as gcjs bytecompiler * handle it via Gentoos java config (gcj bytecompile is broken, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18131) (later) * Java to native compilation * utilize gcj-dbtool for jar / native code resolution (Whatever way it is wanted.) To stay sane we want to hack the ant-core dependency out of eclipse-ecj package. Just try to compile ant-core with gcj. I have ugly hacks (gcc PR19870) for ant-core-1.6.2 to bytecompile with gcj. No way. Then I have to get ant-core-1.6.5 to bytecompile with gcj / ecj which fails right now - did not yet investigate any further. After these steps are done we have the base (for interested ones to test gcj). I am no Java programmer. I do packaging stuff and ugly hacking. ;) I will try to integrate gcj into Gentoos next Java config utility. Just not to do the work of integration twice. What I did already: * tweaked Andrew's gcj-jdk ebuild -> ebuild / eclass split * gcj-ecj ebuild -> Java to native: ecj binary The very next steps should be: * better gcj-jdk ebuild * fix ant-core issue with ecj Then, get back to plan. Reference - my overlay for these two ebuilds: http://geki.ath.cx/hacks/gcj-overlay-2.tar.bz2 Thanks in advance for help! Regards, Hanno -- gentoo-java@gentoo.org mailing list