[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


--- Comment #3 from Albert Strasheim <fullung at gmail.com> 2010-11-03 06:31:33 CDT ---
The crypto/rsa code is here:


But I don't think that's going to help you directly.

The Windows-specific code in Go is here:


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
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:


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