getArgc Bug on Fedora cross compile for windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

getArgc Bug on Fedora cross compile for windows

Mathieu Suen-2
Hi All,

First merry christmas.

Then I have a little issue in a cross compile version of gst.
I try to cross compile gst for Windows from Fedora.
 Every thing is find up to the make install (I am not sure that this is
necessary).

During the make install I have a issue on:
XZIP="/home/mathk/Downloads/smalltalk-3.2.3/+build/winewrapper.exe /usr/bin/zip"
/home/mathk/Downloads/smalltalk-3.2.3/+build/winewrapper.exe ./gst-tool.exe
gst-package --kernel-dir "../kernel" --image gst.im --srcdir ..
--target-directory=/inst/share/smalltalk --destdir "" Announcements.star

After investigating a bit, this is due to the #getArgc / #getArgv: which does
not concider  parameter like "".
To reproduce the bug here is the script:

$ cat argTest.st
Eval [
        Smalltalk getArgc printNl
]

If you execute it the expected output is:

./gst.exe ./argTest.st  -a foo ""
2

But the actual output is:
./gst.exe ./argTest.st  -a foo ""
1

That might be due to wine or somthing like this.
Any idea are welcome

Thanks

Mathk





_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: getArgc Bug on Fedora cross compile for windows

Paolo Bonzini-2
On 12/27/2010 02:48 PM, Mathieu Suen wrote:
> Hi All,
>
> First merry christmas.
>
> Then I have a little issue in a cross compile version of gst.
> I try to cross compile gst for Windows from Fedora.
>   Every thing is find up to the make install (I am not sure that this is
> necessary).

Thanks for the bug report.  To finish the cross compilation you need to
a DESTDIR install that prepares the directories that will be installed
under Windows:

    make install DESTDIR=`pwd`/destdir

Then you can copy the directory to the Windows machine.  The presence of
the destdir will work around the bug, too.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk