[Bug 25014] Unit test from Google Go crypto/rsa package fails and crashes
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Nov 3 06:31:34 CDT 2010
http://bugs.winehq.org/show_bug.cgi?id=25014
--- Comment #3 from Albert Strasheim <fullung at gmail.com> 2010-11-03 06:31:33 CDT ---
The crypto/rsa code is here:
http://code.google.com/p/go/source/browse/src/pkg/crypto/rsa/
But I don't think that's going to help you directly.
The Windows-specific code in Go is here:
http://code.google.com/p/go/source/browse/src/pkg/syscall
http://code.google.com/p/go/source/browse/src/pkg/runtime/windows
You can checkout the whole Go source tree with:
cd $HOME
hg clone https://go.googlecode.com/hg/ go
To do a Windows build on Linux (I'm on Fedora 14... F13's mingw-binutils is
broken), you need to do:
yum install mingw32-w32api mingw32-binutils mingw32-cpp mingw32-gcc
mingw32-runtime wine
export GOROOT=$HOME/go
cd $GOROOT
wget http://codereview.appspot.com/download/issue2515043_9001.diff
hg patch --no-commit issue2515043_9001.diff
cd src
rm -rf ~/.wine
WINEARCH=win32 HOST_AR=i686-pc-mingw32-ar GOHOSTARCH=386 CC=i686-pc-mingw32-gcc
GOOS=windows GOARCH=386 MAKEFLAGS=-j1 ./make.bash
This should build the Go Windows binaries into $GOROOT/bin and the Go packages
into $GOROOT/pkg.
Now you can do
cd $GOROOT/src/pkg/crypto/rsa
WINEARCH=win32 GOHOSTARCH=386 GOOS=windows GOARCH=386 MAKEFLAGS=-j1 make test
This will produce an 8.out.exe, which is the unit test.
The relevant thread on golang-dev:
http://groups.google.com/group/golang-dev/browse_thread/thread/d299bc7c074df32d
Let me know if you need any other information.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list