You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by "Bill Janssen (JIRA)" <ji...@apache.org> on 2010/10/05 23:26:32 UTC
[jira] Created: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5
on Windows XP with MinGW/msys
compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys
------------------------------------------------------------------
Key: PYLUCENE-7
URL: https://issues.apache.org/jira/browse/PYLUCENE-7
Project: PyLucene
Issue Type: Bug
Environment: PyLucene 3.0.2, Python 2.6.6, Java 6, MinGW/msys, Windows XP, Subversion not installed, GCC 4.5.0
Reporter: Bill Janssen
Compile of PyLucene fails:
c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHON -DJCC_VER="2.6" -D_jcc_shared -D_java_generics -D_dll_lucene=__declspec(dllexport) "-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program Files\Java\jdk1.6.0_21\include\win32" -Ibuild\_lucene -Ic:\UpLib\1.7.10\Lib\site-packages\jcc\sources -Ic:\Python26\include -Ic:\Python26\PC -c build\_lucene\__init__.cpp -o build\temp.win32-2.6\Release\build\_lucene\__init__.o -fno-strict-aliasing -Wno-write-strings
In file included from build\_lucene\__init__.cpp:2073:0:
build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected unqualified-id before numeric constant
build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected ';' before numeric constant
Warning: renaming static method 'toString' on class java.lang.Long to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'isInfinite' on class java.lang.Double to 'isInfinite_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'isNaN' on class java.lang.Double to 'isNaN_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Double to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'getCurrentSegmentFileName' on class org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Boolean to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Short to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Integer to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'getCommitUserData' on class org.apache.lucene.index.IndexReader to 'getCommitUserData_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Byte to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Character to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'fileModified' on class org.apache.lucene.store.FSDirectory to 'fileModified_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'listAll' on class org.apache.lucene.store.FSDirectory to 'listAll_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'isInfinite' on class java.lang.Float to 'isInfinite_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'isNaN' on class java.lang.Float to 'isNaN_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Float to 'toString_' since it is shadowed by non-static method of same name.
error: command 'gcc' failed with exit status 1
make: *** [compile] Error 1
The offending lines appear to be:
static CachingWrapperFilter$DeletesMode *DYNAMIC;
static CachingWrapperFilter$DeletesMode *IGNORE;
static CachingWrapperFilter$DeletesMode *RECACHE;
Not sure what the problem is.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (PYLUCENE-7) compile fails for 3.0.2 with GCC
4.5 on Windows XP with MinGW/msys
Posted by Andi Vajda <va...@apache.org>.
On Tue, 5 Oct 2010, Bill Janssen (JIRA) wrote:
> compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys
> ------------------------------------------------------------------
>
> Key: PYLUCENE-7
> URL: https://issues.apache.org/jira/browse/PYLUCENE-7
> Project: PyLucene
> Issue Type: Bug
> Environment: PyLucene 3.0.2, Python 2.6.6, Java 6, MinGW/msys, Windows XP, Subversion not installed, GCC 4.5.0
> Reporter: Bill Janssen
>
>
> Compile of PyLucene fails:
>
> c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHON -DJCC_VER="2.6" -D_jcc_shared -D_java_generics -D_dll_lucene=__declspec(dllexport) "-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program Files\Java\jdk1.6.0_21\include\win32" -Ibuild\_lucene -Ic:\UpLib\1.7.10\Lib\site-packages\jcc\sources -Ic:\Python26\include -Ic:\Python26\PC -c build\_lucene\__init__.cpp -o build\temp.win32-2.6\Release\build\_lucene\__init__.o -fno-strict-aliasing -Wno-write-strings
> In file included from build\_lucene\__init__.cpp:2073:0:
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected unqualified-id before numeric constant
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected ';' before numeric constant
> Warning: renaming static method 'toString' on class java.lang.Long to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Double to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Double to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Double to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCurrentSegmentFileName' on class org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Boolean to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Short to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Integer to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCommitUserData' on class org.apache.lucene.index.IndexReader to 'getCommitUserData_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Byte to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Character to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'fileModified' on class org.apache.lucene.store.FSDirectory to 'fileModified_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'listAll' on class org.apache.lucene.store.FSDirectory to 'listAll_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Float to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Float to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Float to 'toString_' since it is shadowed by non-static method of same name.
> error: command 'gcc' failed with exit status 1
> make: *** [compile] Error 1
>
> The offending lines appear to be:
>
> static CachingWrapperFilter$DeletesMode *DYNAMIC;
> static CachingWrapperFilter$DeletesMode *IGNORE;
> static CachingWrapperFilter$DeletesMode *RECACHE;
>
> Not sure what the problem is.
It's most likely a problem of words being #define'ed to some number.
These should be added to the reserved word list.
Could you please to isolate which of the three is actually reserved ?
(I suspect one of the first two).
Thanks !
Andi..
[jira] Commented: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5
on Windows XP with MinGW/msys
Posted by "Bill Janssen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PYLUCENE-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918364#action_12918364 ]
Bill Janssen commented on PYLUCENE-7:
-------------------------------------
The set of predefined GCC macros on MinGW doesn't include IGNORE, and it isn't specified on the command line, and it isn't a C++ reserved word. But it seems to be defined as a macro somewhere...
> compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys
> ------------------------------------------------------------------
>
> Key: PYLUCENE-7
> URL: https://issues.apache.org/jira/browse/PYLUCENE-7
> Project: PyLucene
> Issue Type: Bug
> Environment: PyLucene 3.0.2, Python 2.6.6, Java 6, MinGW/msys, Windows XP, Subversion not installed, GCC 4.5.0
> Reporter: Bill Janssen
>
> Compile of PyLucene fails:
> c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHON -DJCC_VER="2.6" -D_jcc_shared -D_java_generics -D_dll_lucene=__declspec(dllexport) "-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program Files\Java\jdk1.6.0_21\include\win32" -Ibuild\_lucene -Ic:\UpLib\1.7.10\Lib\site-packages\jcc\sources -Ic:\Python26\include -Ic:\Python26\PC -c build\_lucene\__init__.cpp -o build\temp.win32-2.6\Release\build\_lucene\__init__.o -fno-strict-aliasing -Wno-write-strings
> In file included from build\_lucene\__init__.cpp:2073:0:
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected unqualified-id before numeric constant
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected ';' before numeric constant
> Warning: renaming static method 'toString' on class java.lang.Long to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Double to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Double to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Double to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCurrentSegmentFileName' on class org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Boolean to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Short to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Integer to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCommitUserData' on class org.apache.lucene.index.IndexReader to 'getCommitUserData_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Byte to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Character to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'fileModified' on class org.apache.lucene.store.FSDirectory to 'fileModified_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'listAll' on class org.apache.lucene.store.FSDirectory to 'listAll_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Float to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Float to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Float to 'toString_' since it is shadowed by non-static method of same name.
> error: command 'gcc' failed with exit status 1
> make: *** [compile] Error 1
> The offending lines appear to be:
> static CachingWrapperFilter$DeletesMode *DYNAMIC;
> static CachingWrapperFilter$DeletesMode *IGNORE;
> static CachingWrapperFilter$DeletesMode *RECACHE;
> Not sure what the problem is.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (PYLUCENE-7) compile fails for 3.0.2 with GCC
4.5 on Windows XP with MinGW/msys
Posted by Andi Vajda <va...@apache.org>.
>
> Adding "--reserved IGNORE" to the GENERATE definition in the Makefile fixes this.
>
Sorry, just saw this, ignore my previous response.
Andi..
[jira] Commented: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5
on Windows XP with MinGW/msys
Posted by "Bill Janssen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PYLUCENE-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918248#action_12918248 ]
Bill Janssen commented on PYLUCENE-7:
-------------------------------------
Adding "--reserved IGNORE" to the GENERATE definition in the Makefile fixes this.
> compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys
> ------------------------------------------------------------------
>
> Key: PYLUCENE-7
> URL: https://issues.apache.org/jira/browse/PYLUCENE-7
> Project: PyLucene
> Issue Type: Bug
> Environment: PyLucene 3.0.2, Python 2.6.6, Java 6, MinGW/msys, Windows XP, Subversion not installed, GCC 4.5.0
> Reporter: Bill Janssen
>
> Compile of PyLucene fails:
> c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHON -DJCC_VER="2.6" -D_jcc_shared -D_java_generics -D_dll_lucene=__declspec(dllexport) "-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program Files\Java\jdk1.6.0_21\include\win32" -Ibuild\_lucene -Ic:\UpLib\1.7.10\Lib\site-packages\jcc\sources -Ic:\Python26\include -Ic:\Python26\PC -c build\_lucene\__init__.cpp -o build\temp.win32-2.6\Release\build\_lucene\__init__.o -fno-strict-aliasing -Wno-write-strings
> In file included from build\_lucene\__init__.cpp:2073:0:
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected unqualified-id before numeric constant
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected ';' before numeric constant
> Warning: renaming static method 'toString' on class java.lang.Long to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Double to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Double to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Double to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCurrentSegmentFileName' on class org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Boolean to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Short to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Integer to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCommitUserData' on class org.apache.lucene.index.IndexReader to 'getCommitUserData_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Byte to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Character to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'fileModified' on class org.apache.lucene.store.FSDirectory to 'fileModified_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'listAll' on class org.apache.lucene.store.FSDirectory to 'listAll_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Float to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Float to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Float to 'toString_' since it is shadowed by non-static method of same name.
> error: command 'gcc' failed with exit status 1
> make: *** [compile] Error 1
> The offending lines appear to be:
> static CachingWrapperFilter$DeletesMode *DYNAMIC;
> static CachingWrapperFilter$DeletesMode *IGNORE;
> static CachingWrapperFilter$DeletesMode *RECACHE;
> Not sure what the problem is.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5
on Windows XP with MinGW/msys
Posted by "Andi Vajda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PYLUCENE-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Vajda resolved PYLUCENE-7.
-------------------------------
Resolution: Fixed
This was fixed on August 10th, 2010 in rev 984226.
> compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys
> ------------------------------------------------------------------
>
> Key: PYLUCENE-7
> URL: https://issues.apache.org/jira/browse/PYLUCENE-7
> Project: PyLucene
> Issue Type: Bug
> Environment: PyLucene 3.0.2, Python 2.6.6, Java 6, MinGW/msys, Windows XP, Subversion not installed, GCC 4.5.0
> Reporter: Bill Janssen
>
> Compile of PyLucene fails:
> c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHON -DJCC_VER="2.6" -D_jcc_shared -D_java_generics -D_dll_lucene=__declspec(dllexport) "-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program Files\Java\jdk1.6.0_21\include\win32" -Ibuild\_lucene -Ic:\UpLib\1.7.10\Lib\site-packages\jcc\sources -Ic:\Python26\include -Ic:\Python26\PC -c build\_lucene\__init__.cpp -o build\temp.win32-2.6\Release\build\_lucene\__init__.o -fno-strict-aliasing -Wno-write-strings
> In file included from build\_lucene\__init__.cpp:2073:0:
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected unqualified-id before numeric constant
> build\_lucene\/org/apache/lucene/search/CachingWrapperFilter$DeletesMode.h:38:62: error: expected ';' before numeric constant
> Warning: renaming static method 'toString' on class java.lang.Long to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Double to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Double to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Double to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCurrentSegmentFileName' on class org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Boolean to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Short to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Integer to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'getCommitUserData' on class org.apache.lucene.index.IndexReader to 'getCommitUserData_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Byte to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Character to 'toString_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'fileModified' on class org.apache.lucene.store.FSDirectory to 'fileModified_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'listAll' on class org.apache.lucene.store.FSDirectory to 'listAll_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isInfinite' on class java.lang.Float to 'isInfinite_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'isNaN' on class java.lang.Float to 'isNaN_' since it is shadowed by non-static method of same name.
> Warning: renaming static method 'toString' on class java.lang.Float to 'toString_' since it is shadowed by non-static method of same name.
> error: command 'gcc' failed with exit status 1
> make: *** [compile] Error 1
> The offending lines appear to be:
> static CachingWrapperFilter$DeletesMode *DYNAMIC;
> static CachingWrapperFilter$DeletesMode *IGNORE;
> static CachingWrapperFilter$DeletesMode *RECACHE;
> Not sure what the problem is.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.