Andi Vajda wrote:
> 
> On Thu, 24 Aug 2006, Julien Anguenot wrote:
> 
>>> I have only tried the one in the mail message.
>>> I should try the one in bug 13212.
>>
>> I'm in so I'm going to give it a try.
> 
> I just noticed that the patch in bug 13212 has just been committed to
> the gcc trunk. This should be good news.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212#c36
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212#c37

Hi,

I compiled a gcc trunk (yesterday's checkout) yesterday night everything
went well for compilation and installation for the gcc itself.

It took a lot of time compared to former ones though.

[EMAIL PROTECTED] src]# du -sh build/
1.2G    build/

which is almost twice as big as the other ones. Do you know what they've
been adding ?

[EMAIL PROTECTED] src]# ../gcc-4.2.0/configure --enable-threads=posix
--prefix=/usr/local/gcc-4.2.0 --enable-languages=c,c++,java
[EMAIL PROTECTED] src]# make boostrap
[EMAIL PROTECTED] src]# make install

Here are the results with PyLucene.

With PyLucene-1.9.1
====================

Makefile extract ::


# Linux
PREFIX=/usr/local
PREFIX_PYTHON=$(PREFIX)
SWIG=/usr/bin/swig
GCJ_HOME=/usr/local/gcc-4.2.0
GCJ_VER=4
#DB=$(PYLUCENE)/db-$(DB_VER)
#PREFIX_DB=$(PREFIX)/BerkeleyDB.$(DB_LIB_VER)
ANT=ant

 - compilation PyLucene 1.9.1: ok

 - installation : almost ok. I had to create an empty
/usr/local/gcc-4.2.0/lib/security/libgcj.security because expected  by
the Makefile.

 - test PyLucene 1.9.1 : ko

[EMAIL PROTECTED] PyLucene-src-1.9.1]# make install
build of release/_PyLucene.so complete
mkdir -p /usr/local/lib/python2.4/site-packages
install PyLucene.py /usr/local/lib/python2.4/site-packages
install release/_PyLucene.so /usr/local/lib/python2.4/site-packages
mkdir -p /usr/local/lib/python2.4/site-packages/security
install /usr/local/gcc-4.2.0/lib/security/classpath.security
/usr/local/lib/python2.4/site-packages/security
install /usr/local/gcc-4.2.0/lib/security/libgcj.security
/usr/local/lib/python2.4/site-packages/security
[EMAIL PROTECTED] PyLucene-src-1.9.1]# export
LD_LIBRARY_PATH=/usr/local/gcc-4.2.0/lib
[EMAIL PROTECTED] PyLucene-src-1.9.1]# make test
find test -name 'test_*.py' | xargs -n 1 python
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s

OK
EE.
======================================================================
ERROR: testFilteredQuery (__main__.FilteredQueryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_FilteredQuery.py", line 85, in testFilteredQuery
    hits = self.searcher.search(filteredquery, Sort("sorter"))
  File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 2888,
in search
    def search(*args): return _PyLucene.Searcher_search(*args)
JavaError: java.lang.NullPointerException

======================================================================
ERROR: testFilteredQuery (__main__.FilteredQueryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_FilteredQuery.py", line 75, in tearDown
    self.searcher.close()
  File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 2866,
in close
    def close(*args): return _PyLucene.Searchable_close(*args)
JavaError: java.lang.NullPointerException

----------------------------------------------------------------------
Ran 2 tests in 0.010s

FAILED (errors=2)
EEEEEEEEException in thread "MultiSearcher thread #1" Exception in
thread "MultiSearcher thread #2" java.lang.NullPointerException
   at java.lang.String.intern(natString.cc:175)
   at org.apache.lucene.search.SortField.<init>(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.MultiSearcherThread.run(_PyLucene.so)
Ejava.lang.NullPointerException
   at java.lang.String.intern(natString.cc:175)
   at org.apache.lucene.search.SortField.<init>(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.MultiSearcherThread.run(_PyLucene.so)
Exargs: python: terminated by signal 6
make: *** [test] Error 123
[EMAIL PROTECTED] PyLucene-src-1.9.1]#

With PyLucene 2.0.0-1
======================

Makefile ::

# Linux (with gcc 3.4.4 and libgcj statically linked)
PREFIX=/usr/local
PREFIX_PYTHON=/usr/local
GCJ_HOME=/usr/local/gcc-4.2.0
GCJ_LIBDIR=$(GCJ_HOME)/lib
#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

 - compilation ok.
 - installation : almost ok. I had to create an empty
/usr/local/gcc-4.2.0/lib/security/libgcj.security because expected  by
the Makefile.

  - tests ko

[EMAIL PROTECTED] PyLucene-src-2.0.0-1]# make install
build of release/_PyLucene.so complete
mkdir -p /usr/local/lib/python2.4/site-packages
install PyLucene.py /usr/local/lib/python2.4/site-packages
install release/_PyLucene.so /usr/local/lib/python2.4/site-packages
mkdir -p /usr/local/lib/python2.4/site-packages/security
install /usr/local/gcc-4.2.0/lib/security/classpath.security
/usr/local/lib/python2.4/site-packages/security
install /usr/local/gcc-4.2.0/lib/security/libgcj.security
/usr/local/lib/python2.4/site-packages/security
[EMAIL PROTECTED] PyLucene-src-2.0.0-1]#
[EMAIL PROTECTED] PyLucene-src-2.0.0-1]# export
LD_LIBRARY_PATH=/usr/local/gcc-4.2.0/lib
[EMAIL PROTECTED] PyLucene-src-2.0.0-1]# make test
find test -name 'test_*.py' | xargs -n 1 /usr/local/bin/python
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s

OK
EE.
======================================================================
ERROR: testFilteredQuery (__main__.FilteredQueryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_FilteredQuery.py", line 97, in testFilteredQuery
    hits = self.searcher.search(filteredquery, Sort("sorter"))
JavaError: java.lang.NullPointerException

======================================================================
ERROR: testFilteredQuery (__main__.FilteredQueryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_FilteredQuery.py", line 87, in tearDown
    self.searcher.close()
JavaError: java.lang.NullPointerException

----------------------------------------------------------------------
Ran 2 tests in 0.007s

FAILED (errors=2)
EEEEEEEEException in thread "MultiSearcher thread #1" Exception in
thread "MultiSearcher thread #2" java.lang.NullPointerException
   at java.lang.String.intern(natString.cc:175)
   at org.apache.lucene.search.SortField.<init>(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.MultiSearcherThread.run(_PyLucene.so)
Ejava.lang.NullPointerException
   at java.lang.String.intern(natString.cc:175)
   at org.apache.lucene.search.SortField.<init>(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.Sort.setSort(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.IndexSearcher.search(_PyLucene.so)
   at org.apache.lucene.search.MultiSearcherThread.run(_PyLucene.so)
Exargs: /usr/local/bin/python: terminated by signal 6
make: *** [test] Error 123
[EMAIL PROTECTED] PyLucene-src-2.0.0-1]#

That's it.

        J.
-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to