Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-java@g.o
From: Hanno Meyer-Thurow <h.mth@...>
Subject: work on gcj for gentoo
Date: Tue, 21 Feb 2006 16:04:25 +0100
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@g.o mailing list


Replies:
Re: work on gcj for gentoo
-- Hanno Meyer-Thurow
Re: work on gcj for gentoo
-- Hanno Meyer-Thurow
Re: work on gcj for gentoo
-- Andrew Cowie
Re: work on gcj for gentoo
-- Hanno Meyer-Thurow
Re: work on gcj for gentoo
-- Joshua Nichols
Re: work on gcj for gentoo
-- Karl Trygve Kalleberg
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Netbeans 5.0 and Profiler
Next by thread:
Re: work on gcj for gentoo
Previous by date:
Re: Gentoo Java / Apache Tomcat choices vs FreeBSD
Next by date:
Re: work on gcj for gentoo


Updated Jun 17, 2009

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.