Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 3753 invoked from network); 30 Nov 2010 02:54:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 02:54:57 -0000 Received: (qmail 33736 invoked by uid 500); 30 Nov 2010 02:54:57 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 33670 invoked by uid 500); 30 Nov 2010 02:54:56 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 33662 invoked by uid 99); 30 Nov 2010 02:54:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 02:54:56 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=MAY_BE_FORGED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.159.224.220] (HELO ovaltofu.org) (66.159.224.220) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 02:54:51 +0000 Received: from [67.218.109.139] (67-218-109-139.cust.layer42.net [67.218.109.139] (may be forged)) (authenticated bits=0) by ovaltofu.org (8.14.4/8.14.4) with ESMTP id oAU2sHr8021479 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 29 Nov 2010 18:54:23 -0800 (PST) Message-Id: <06BB440E-2E8C-41AC-BC5C-BADDD78B1785@apache.org> From: Andi Vajda To: "pylucene-dev@lucene.apache.org" In-Reply-To: <29194.1291084823@parc.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (7E18) Mime-Version: 1.0 (iPod Mail 7E18) Subject: Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7 Date: Mon, 29 Nov 2010 18:54:10 -0800 References: <39497.1290451990@parc.com> <43164.1290458744@parc.com> <43491.1290459535@parc.com> <12448.1291052748@parc.com> <9F46DFC5-BE40-4A65-A4D4-6F724D1B7BC2@apache.org> <14849.1291057135@parc.com> <27999.1291082934@parc.com> <29194.1291084823@parc.com> On Nov 29, 2010, at 18:40, Bill Janssen wrote: > Bill Janssen wrote: > >> Andi Vajda wrote: >> >>>>>>> I just tried this myself >>>>>> >>>>>> By "this", do you mean 64-bit Windows 7, or Python 2.7? >>>>> >>>>> Both. 64 bit Windows 7, with Python 2.7 and Java 1.6.0_22 both >>>>> 32-bit. >>>> OK, I'll try it again on Win 7. I'll use a checkout of the >>>> PyLucene >>>> trunk instead of a packaged tar file. >>> >>> Don't use trunk, use HEAD of whatever branch you normally use, 2_9, >>> 3_0, etc... The 2.9.4 and 3.0.3 releases are ready to go, pending >>> Lucene Core's. >> >> OK, I checked out branches/pylucene_3_0 on my Win 7 machine. Same >> problem. Here's the Makefile tranche: >> >> # Windows (Win32, Python 2.7, Java 1.6, ant 1.8.1, Java not on >> PATH) >> PREFIX_PYTHON=/c/Python27 >> ANT=JAVA_HOME="c:\\Program Files (x86)\\Java\\jdk1.6.0_22" "/c/ >> Program Files/apache-ant-1.8.1/bin/ant" >> PYTHON=$(PREFIX_PYTHON)/python.exe >> JCC=$(PYTHON) -m jcc --shared --find-jvm-dll >> NUM_FILES=3 >> >> JCC builds and installs fine, The Java code builds just fine, but >> when I >> get to generating PyLucene, I get this: >> >> $ make >> /c/Python27/python.exe -m jcc --shared --find-jvm-dll --jar lucene- >> java-3.0.3/build/lucene-core-3.0.3.jar --jar lucene-java-3.0.3/ >> build/contrib/snowball/lucene-snowball-3.0.3.jar --jar lucene- >> java-3.0.3/build/contrib/analyzers/common/lucene- >> analyzers-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/regex/ >> lucene-regex-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/memory/ >> lucene-memory-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/ >> highlighter/lucene-highlighter-3.0.3.jar --jar lucene-java-3.0.3/ >> build/contrib/queries/lucene-queries-3.0.3.jar --jar build/jar/ >> extensions.jar --package java.lang java.lang.System >> java.lang.Runtime --package java.util java.util.Arrays >> java.text.SimpleDateFormat java.text.DecimalFormat >> java.text.Collator --package java.io java.io.StringReader >> java.io.InputStreamReader java.io.FileInputStream --exclude >> org.apache.lucene.queryParser.Token --exclude >> org.apache.lucene.queryParser.TokenMgrError --exclude >> org.apache.lucene.queryParser.QueryParserTokenMa > nager --exclude org.apache.lucene.queryParser.ParseException -- > exclude org.apache.lucene.search.regex.JakartaRegexpCapabilities -- > exclude org.apache.regexp.RegexpTunnel --python lucene --mapping > org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/ > lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/ > lang/String;)Ljava/lang/String;' --rename > org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer > --version 3.0.3 --module python/collections.py --files 3 --build >> make: *** [compile] Error 255 >> $ > > Ran it under gdb, which provides this tidbit: > > (gdb) run > Starting program: c:\Python27/python.exe -m jcc --shared --compiler > mingw32 --jar lucene-java-3.0.3/build/lucene-core-3.0.3.jar --jar > lucene-java-3.0.3/build/contrib/snowball/lucene-snowball-3.0.3.jar -- > jar lucene-java-3.0.3/build/contrib/analyzers/common/lucene- > analyzers-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/regex/ > lucene-regex-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/memory/ > lucene-memory-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/ > highlighter/lucene-highlighter-3.0.3.jar --jar lucene-java-3.0.3/ > build/contrib/queries/lucene-queries-3.0.3.jar --jar build/jar/ > extensions.jar --package java.lang java.lang.System > java.lang.Runtime --package java.util java.util.Arrays > java.text.SimpleDateFormat java.text.DecimalFormat > java.text.Collator --package java.io java.io.StringReader > java.io.InputStreamReader java.io.FileInputStream --exclude > org.apache.lucene.queryParser.Token --exclude > org.apache.lucene.queryParser.TokenMgrError --exclude > org.apache.lucene.queryParse > r.QueryParserTokenManager --exclude > org.apache.lucene.queryParser.ParseException --exclude > org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude > org.apache.regexp.RegexpTunnel --python lucene --mapping > org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/ > lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/ > lang/String;)Ljava/lang/String;' --rename > org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer > --version 3.0.3 --module python/collections.py --files 3 --build > [New Thread 1556.0x9fc] > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x7740fabd in ntdll!TpWaitForAlpcCompletion () from C:\Windows > \system32\ntdll.dll > (gdb) warning: HEAP[python.exe]: > warning: Invalid address specified to RtlFreeHeap( 00380000, > 004314A8 ) > > (gdb) bt > #0 0x7740fabd in ntdll!TpWaitForAlpcCompletion () from C:\Windows > \system32\ntdll.dll > #1 0x0027f644 in ?? () > #2 0x773d26c4 in ntdll!RtlCreateUserStack () from C:\Windows > \system32\ntdll.dll > #3 0x004314a0 in ?? () > #4 0x77410b17 in ntdll!TpQueryPoolStackInformation () from C: > \Windows\system32\ntdll.dll > #5 0x00380000 in ?? () > #6 0x773ca8ff in ntdll!AlpcMaxAllowedMessageLength () from C: > \Windows\system32\ntdll.dll > #7 0x00380000 in ?? () > #8 0x77372a32 in ntdll!RtlEncodePointer () from C:\Windows > \system32\ntdll.dll > #9 0x004314a0 in ?? () > #10 0x75a014d1 in KERNEL32!BaseFlushAppcompatCache () from C:\Windows > \syswow64\kernel32.dll > #11 0x00380000 in ?? () > #12 0x74aa38bb in free () from C:\Windows\WinSxS > \x86_microsoft.vc90. > crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\msvcr90.dll > #13 0x00380000 in ?? () > #14 0x64d81bc6 in initVM(_object*, _object*, _object*) () from c: > \Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\_jcc.pyd > #15 0x64d9a0d4 in __initialize__(_object*, _object*, _object*) () > from c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc > \_jcc.pyd > #16 0x1e013ff8 in python27!PyCFunction_Call () from C:\Windows > \SysWOW64\python27.dll > #17 0x0233ded0 in ?? () > #18 0x01ddbdb0 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > (gdb) > > This doesn't look good... Try without --find-jvm-dll and setting the Path in the shell first. Andi.. > > Bill