Ticket #197 (closed defect: released)

Opened 16 months ago

Last modified 15 months ago

Can't build SWIG on Windows, thus can't build bindings

Reported by: charlie Owned by: newbugs
Priority: normal Milestone:
Component: Build system Version: SVN trunk
Severity: normal Keywords:
Cc: Blocked By:
Operating System: Microsoft Windows Blocking:

Description

We can't successfully build the imported version of SWIG on a Windows system using MSYS. Following the instructions at http://www.swig.org/Doc1.3/Windows.html#swig_exe causes a bug just like this: http://thread.gmane.org/gmane.comp.programming.swig.devel/17218

The workaround is to import the generated files from another system with a working SWIG (for example, xapian-bindings/python/modern).

Change History

Changed 16 months ago by olly

Is your SVN tree under a directory containing a space character? That's not supported.

If not, check the end of line characters in the generated file config.status. The shell might not be happy with CR+LF, so if it has CR strip them out and see if that works, e.g. using:

perl -pi -e 's/\r//g' config.status

If that's the issue, we can probably address it.

Changed 16 months ago by olly

  • status changed from new to assigned

Changed 16 months ago by olly

Does this tip help?

http://article.gmane.org/gmane.comp.programming.swig.devel/17467

Not doing that would probably lead to config.status containing carriage returns, with the symptoms you suggest.

Changed 16 months ago by olly

This is probably now fixed in Xapian SVN (r9346). Can you try that?

Changed 15 months ago by olly

Ping!

I believe that this should work with the version of SWIG which Xapian's SVN now pulls in. Charlie: can you confirm?

Changed 15 months ago by charlie

Yes, I can now build Swig successfully (sorry for the delay, busy with other things). However I still haven't verified I can build the bindings; I'll try tomorrow and if so close the bug.

Changed 15 months ago by charlie

  • status changed from assigned to closed
  • resolution set to fixed

Bindings now build successfully on Windows using the supplied SWIG.

Changed 15 months ago by olly

  • resolution changed from fixed to released

Changed 15 months ago by trac

  • platform set to Microsoft Windows
Note: See TracTickets for help on using tickets.