Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-7

compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      PyLucene 3.0.2, Python 2.6.6, Java 6, MinGW/msys, Windows XP, Subversion not installed, GCC 4.5.0

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              janssen Bill Janssen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: