[pylucene-dev] Collecting from unknown thread.

Andi Vajda vajda at osafoundation.org
Tue Jun 27 14:22:49 PDT 2006


On Tue, 27 Jun 2006, Lennart Regebro wrote:

> Ah, OK. I really know nothing about gcc/gcj. It seemed to me that gcc and gcj 
> versions weren't connected, but maybe they are then... The latest version of 
> gcj for Ubuntu is 4.1, but the latest of gcc is 4.0, and there are gcc 3.3 
> and 3.4 available, but not gcj 3.x...
>
> It's quite confusing. :)
>

Indeed and the magic combination varies from platform to platform. To run on 
Gentoo Linux with gcj 4.1.0, you need a patch. Maybe that got checked in for 
4.1.1, I don't know.

Anyway, unless you have lots of time to explore, the gcc/gcj 3.4.6/Ubuntu 
6.06 combination seems to work well. If you find another one, let us know.

For the record, these are the combinations known to work:

   - Mac OS X 10.3/10.4 PowerPC: gcc/gcj 3.4.x with x >= 3
   - Mac OS X 10.3/10.4 PowerPC: gcc/gcj 4.1.0 built with darwinports
   - Mac OS X 10.4 Intel gcc/gcj 4.0.2 with patches by Sandro Tolaini
   - Linux Gentoo 2005: gcc/gcj 3.4.x with x >= 2
   - Linux Gentoo 2005: gcc/gcj 4.1.0 with a patch from Bryce McKinley
   - Linux Ubuntu 6.06: gcc/gcj 3.4.6
   - FreeBSD: gcc/gcj 4.1.0
   - Windows: gcc/gcj 3.4.x with x >= 2

In addition, if you hit the dreaded 'too many root sets' error, you might 
want to closely follow the instructions in PyLucene's INSTALL and define 
LARGE_CONFIG in gcj's boehm-gc/include/private/gc_priv.h. It's been a problem 
on Mac for a long time and it just happened to me on Windows as well.
Building gcc/gcj for Windows is best done on Linux via a cross-compiler and 
can take many trials and errors before functioning. For all gcc/gcj building 
questions, please refer to the java at gcc.gnu.org mailing list.

Andi..


More information about the pylucene-dev mailing list