On Wed, 28 Oct 2009, Andi Vajda wrote:

On Oct 28, 2009, at 2:45, Manolo Padron Martinez <manol...@gmail.com> wrote:

What is the version of your gcc ?
I did the same build today on Ubuntu Gutsy 64 bits without any problem.

gcc (Debian 4.3.2-1.1) 4.3.2
g++ (Debian 4.3.2-1.1) 4.3.2

Here are a few things you could try, in no particular order:

So I installed Debian 5 (Lenny) myself onto a virtual machine and built JCC
and PyLucene 2.9.1 from the trunk of the 2.9 branch.

- gcc 4.2

Using gcc 4.2 worked fine. I had to ensure the /usr/bin/g++ and /usr/bin/gcc links point at /usr/bin/g++-4.2 and /usr/bin/gcc-4.2 respectively.

I then moved the links to the 4.3 versions and rebuilt JCC and PyLucene again. The build succeeded as well. In other words, the problem didn't reproduce.

In both cases, the tests passed (make test).
I guess, I can't reproduce the problem.

I noticed that both compilers use large amounts of memory when compiling these large C++ files. Maybe you don't have enough memory on your system. I gave mine 512mb and it swapped like mad. I then gave it 1gb of RAM and the builds completed fine.

If that's indeed the problem, get JCC to generate smaller but more numerous files by increasing NUM_FILES. Just guessing here as to what you be the problem on your side.

Andi..

Reply via email to