[pylucene-dev] Re: Issue Compiling Trunk
Andi Vajda
vajda at osafoundation.org
Tue Jan 30 11:24:09 PST 2007
On Tue, 30 Jan 2007, Ron Davis wrote:
> I compiled gcc into user local in order for it not to conflict with any of
> the systems gcc tools:
>
> [root at s3 pylucene-trunk]# which gcj
> /usr/local/bin/gcj
> [root at s3 pylucene-trunk]# gcj --version
> gcj (GCC) 3.4.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
You said you were compiling the PyLucene trunk. This would imply that you're
compiling from Java Lucene sources as well. That part must be done with a JDK
other than gcj. On Linux, I've used Blackdown 1.4.2 with success. Sun's or
Apple's also work. Even though gcj can compile from .java to .class/.jar,
there any too may bugs with it to make it worthwhile.
If this is too complicated, you can compile PyLucene from its source tarballs.
They include the Lucene .jar files and allow you to skip the .java compilation
part.
Andi..
>
>
>
> On 1/30/07, Andi Vajda <vajda at osafoundation.org> wrote:
>>
>>
>> On Tue, 30 Jan 2007, Ron Davis wrote:
>>
>> > I assume that my config changes may help as well:
>> > # Linux (with gcc 3.4.4 and libgcj statically linked)
>> > PREFIX=/usr/local
>> > PREFIX_PYTHON=$(PREFIX)
>> > LIBDIR_NAME=lib
>> > GCJ_HOME=/usr/local
>> > GCJ_LIBDIR=$(GCJ_HOME)/$(LIBDIR_NAME)
>> > GCJ_STATIC=1
>> > #LIB_INSTALL=libstdc++.so.6 libgcc_s.so.1
>> > #DB=$(PYLUCENE)/db-$(DB_VER)
>> > #PREFIX_DB=$(PREFIX)/BerkeleyDB.$(DB_LIB_VER)
>> > ANT=ant
>> > PYTHON=$(PREFIX_PYTHON)/bin/python
>> >
>> >
>> > On 1/30/07, Ron Davis <ronaldwdavis at gmail.com> wrote:
>> >>
>> >> Working on compiling trunk on fedora core 6.
>> >>
>> >> Python: Python-2.4.3
>> >> PyLucene: Trunk version 317
>> >> GCC: 3.4.6
>> >>
>> >> Here is what i get:
>> >>
>> >> [root at s3 pylucene-trunk]# make all
>> >> /usr/local/bin/gcj --encoding=UTF-8 -O2 -fPIC -c -o
>> release/lucene.jar.o
>> >> lucene- java-2.0.0-480800
>> >> /build/lucene-core-2.0.0-480800.jar
>> >> org/apache/lucene/index/SegmentInfos.java: In class
>> >> `org.apache.lucene.index.SegmentInfos':
>> >> org/apache/lucene/index/SegmentInfos.java: In method
>> >> `org.apache.lucene.index.SegmentInfos.write(
>> >> org.apache.lucene.store.Directory)':
>> >> org/apache/lucene/index/SegmentInfos.java:216: error: verification
>> error
>> >> at PC=167
>> >> org/apache/lucene/index/SegmentInfos.java:216: error: might transfer
>> >> control into subroutine
>> >> make: *** [release/lucene.jar.o] Error 1
>> >> [root at s3 pylucene-trunk]#
>>
>> It looks like you hit a problem with gcj.
>> How did you get gcj ?
>> gcj 3.4.6 works well for me on Ubuntu. I'd expect it to work just as well
>> on
>> Red Hat.
>>
>> Are you sure it's gcj 3.4.6 ?
>> What does gcj --version return ?
>>
>> Andi..
>> _______________________________________________
>> pylucene-dev mailing list
>> pylucene-dev at osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
>>
>
>
>
> --
> Thanks Again,
>
> Ron Davis
> Home: 314-521-1945
> Cell: 314-393-3245
>
More information about the pylucene-dev
mailing list