On 4/12/2015 3:06 PM, Masamichi HOSODA wrote:
On 4/11/2015 2:08 PM, Masamichi HOSODA wrote:


I've tried on my cygwin64 environment.
Maybe environment variable TMP is the cause.
Would you try the attached patch?

The version for 32 bit seems to have other problems.
I see segfaults but I need to rebuild and investigate

How about lilypond-2.19.18?
If I understand correctry,
lilypond-2.19.16 is fixed some issues for newer gcc on 32 bit windows etc.

It seems so.
I built lilypond-2.19.18 (32bit) and passed all "make check" steps.

Attached the patches I am using, to remove the
dos_to_posix CYGWIN specific usage.
Not clear why it was needed in the past, it is not needed
in a pure cygwin enviroment and cygwin_conv_to_posix_path
is deprecated on 32bit and not available on 64bit.


The build also works for

$ lilypond --png -danti-alias-factor=4 lily-487dce2c.ly
GNU LilyPond 2.19.18
Processing `lily-487dce2c.ly'
Parsing...
Renaming input to: `out-www/quantize-start-midi.ly'
Interpreting music...
Preprocessing graphical objects...
Interpreting music...
MIDI output to `lily-487dce2c.midi'...
Calculating line breaks...
Drawing systems...
Layout output to `lily-487dce2c.eps'...
Converting to PNG...
Layout output to `lily-487dce2c-1.eps'...
Writing lily-487dce2c-systems.texi...
Writing lily-487dce2c-systems.tex...
Writing lily-487dce2c-systems.count...
Success: compilation successfully completed

I will update the cygwin package accordingly.
Previous announce was
https://cygwin.com/ml/cygwin-announce/2015-04/msg00011.html

Thanks and Regards
Marco
--- origsrc/lilypond-2.18.2/flower/file-name.cc 2015-04-07 12:13:53.707008700 
+0200
+++ src/lilypond-2.18.2/flower/file-name.cc     2015-04-10 21:24:05.029598100 
+0200
@@ -145,12 +145,6 @@
 
 File_name::File_name (string file_name)
 {
-#ifdef __CYGWIN__
-  /* All system functions would work, even if we do not convert to
-     posix file_name, but we would think that \foe\bar\baz.ly is in
-     the cwd.  */
-  file_name = dos_to_posix (file_name);
-#endif
 #ifdef __MINGW32__
   file_name = slashify (file_name);
 #endif
--- origsrc/lilypond-2.19.18/flower/file-name.cc        2015-04-12 
17:16:05.887389800 +0200
+++ src/lilypond-2.19.18/flower/file-name.cc    2015-04-12 17:27:26.518319700 
+0200
@@ -33,9 +33,11 @@
 #include <sys/stat.h>
 #endif
 
+/*
 #ifdef __CYGWIN__
 #include <sys/cygwin.h>
 #endif
+*/
 
 #ifndef ROOTSEP
 #define ROOTSEP ':'
@@ -49,21 +51,6 @@
 #define EXTSEP '.'
 #endif
 
-#ifdef __CYGWIN__
-static string
-dos_to_posix (const string &file_name)
-{
-  char buf[PATH_MAX] = "";
-  char s[PATH_MAX] = {0};
-  file_name.copy (s, PATH_MAX - 1);
-  /* ugh: char const* argument gets modified.  */
-  int fail = cygwin_conv_to_posix_path (s, buf);
-  if (!fail)
-    return buf;
-  return file_name;
-}
-#endif /* __CYGWIN__ */
-
 /** Use slash as directory separator.  On Windows, they can pretty
     much be exchanged.  */
 #if 0
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to