gst-doc fails to generate documentation for package on Windows

Project:GNU Smalltalk
Component:Build
Category:bug
Priority:normal
Assigned:Unassigned
Status:active
Description

I am trying to build gst with a recent mingw and TCL/TK bindings.
Looks like there is a problem with how the path separators are generated (note no \):

C:\MinGW\msys\1.0\home\tkack\smalltalk-master\doc\..packagesbloxtkBloxBasic.st

Failed part:
../gst-tool.exe  gst-package -I ../gst.im --kernel-dir ../kernel  ../packages/bl
ox/tk/package.xml \
          --load --list-files=BloxTK | \
          sed s,^,-f, | \
          xargs ../gst-tool.exe  gst-doc -I ../gst.im --kernel-dir ../kernel -n
BLOX -o ./blox.texi BLOX.* || \
          rm -f ./blox.texi
gst-doc: could not open C:\MinGW\msys\1.0\home\tkack\smalltalk-master\doc\..packagesbloxtkBloxBasic.st
test -f ./blox.texi && touch ./gst-libs.texi
make[2]: *** [blox.texi] Error 1
make[2]: Leaving directory `/home/tkack/smalltalk-master/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tkack/smalltalk-master'
make: *** [all] Error 2

Updates

#1 submitted by Tim Käck on Mon, 11/01/2010 - 12:14

Since you guys might have limited access to mingw/msys environments here is some more detail:


tkack@TKACKT7400 ~/smalltalk-master/doc
$ ../gst-tool.exe gst-package -I ../gst.im --kernel-dir ../kernel ../packages/blox/tk/package.xml --load --list-files=BloxTK
..\packages\blox\tk\BloxBasic.st
..\packages\blox\tk\BloxWidgets.st
..\packages\blox\tk\BloxText.st
..\packages\blox\tk\BloxCanvas.st
..\packages\blox\tk\BloxExtend.st
..\packages\blox\tk\Blox.st

$ ../gst-tool.exe gst-package -I ../gst.im --kernel-dir ../kernel ../packages/blox/tk/package.xml --load --list-files=BloxTK | sed s,^,-f,
-f..\packages\blox\tk\BloxBasic.st
-f..\packages\blox\tk\BloxWidgets.st
-f..\packages\blox\tk\BloxText.st
-f..\packages\blox\tk\BloxCanvas.st
-f..\packages\blox\tk\BloxExtend.st
-f..\packages\blox\tk\Blox.st

tkack@TKACKT7400 ~/smalltalk-master/doc
$ ../gst-tool.exe  gst-doc -I ../gst.im --kernel-dir ../kernel -n BLOX -o ./blo
x.texi BLOX.* -f..\packages\blox\tk\BloxBasic.st
gst-doc: could not open C:\MinGW\msys\1.0\home\tkack\smalltalk-master\doc\..packagesbloxtkBloxBasic.st

Tried to convert to / slashes:

$ ../gst-tool.exe  gst-doc -I ../gst.im --kernel-dir ../kernel -n BLOX -o ./blox.texi BLOX.* -f ../packages/blox/tk/BloxBasic.st
gst-doc: Invalid index -390: index out of range

Hope it helps

#2 submitted by Paolo Bonzini on Mon, 11/01/2010 - 12:58
Title:gst-doc fails to generate documentation for package» gst-doc fails to generate documentation for package on Windows

I don't know yet about the second failure, but the first happens because xargs treats backslashes specially. I'll just kill the usage of xargs.

User login