You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/09/24 02:37:33 UTC
[jira] Resolved: (LUCENE-471) gcj ant target doesn't work on
windows
[ https://issues.apache.org/jira/browse/LUCENE-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-471.
--------------------------------
Resolution: Fixed
I compiled lucene with gcj, it builds fine.
However, many tests fail. gcj's classpath appears to be a dead project, and personally i won't go anywhere near their source code.
I don't recommend using lucene with gcj.
> gcj ant target doesn't work on windows
> --------------------------------------
>
> Key: LUCENE-471
> URL: https://issues.apache.org/jira/browse/LUCENE-471
> Project: Lucene - Java
> Issue Type: Bug
> Components: Build
> Affects Versions: CVS Nightly - Specify date in submission
> Environment: Windows with MinGW (http://www.mingw.org/) and unixutils (http://unxutils.sourceforge.net/)
> Reporter: Michele Bini
> Priority: Minor
> Attachments: win-makefile.diff, win-mmap.diff
>
>
> In order to fix it I made two changes, both really simple.
> First I added to org/apache/lucene/store/GCJIndexInput.cc some code to use windows memory-mapped I/O instead than unix mmap().
> Then I had to rearrange the link order in the Makefile in order to avoid unresolved symbol errors. Also to build repeatedly I had to instruct make to ignore the return code for the mkdir command as on windows it fails if the directory already exists.
> I'm attaching two patches corresponding to the changes; please note that with the patches applied, the gcj target still works on linux. Both patches apply cleanly to the current svn head.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org