-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: cannot build+run 32bit windows application with manifest #16050
Comments
I have no idea where the problem might be here. As far as I know Go itself doesn't do anything with manifest files at all. Can you add the output of |
The difference is that go-1.6 makes a step in between "compile" and "link", which is "pack". This is not done in go-1.7beta1 go-1.6: WORK=D:\Users\csd0117\AppData\Local\Temp\go-build730373938 go 1.7-beta1: WORK=D:\Users\csd0117\AppData\Local\Temp\go-build387435350 |
Thanks. I think this is an unexpected consequence of the fix for issue #14123. For you, CGO_ENABLED=1 for amd64 but CGO_ENABLED=0 for 386. You could probably make your case work by writing
I will see if I can fix this for 1.7. |
CL https://golang.org/cl/24032 mentions this issue. |
go version
)?go version go1.7beta1 windows/amd64
go env
)?windows amd64
I tried to compile a windows gui application for GOARCH=386 on a 64 bit windows 7.
The application uses a manifest file written by rsys.
Example:
go get github.com/lxn/walk
cd $GOPATH/src/github.com/lxn/walk/examples/drawing
GOARCH=386 go build && ./drawing.exe
In the example the manifest file (rsys.syso) is included in the github repository, so it is not needed to be regenerated.
It runs fine with with the native (64 bit) application, removing "GOARCH=386".
However the same work flow runs without errors with go1.6 (for both 368 and amd64), so I consider this as a regression.
the application running without errors.
2016/06/13 16:41:34 TTM_ADDTOOL failed
Stack:
goroutine 1 [running, locked to thread]:
runtime/debug.Stack(0x0, 0x0, 0x0)
C:/local/go/src/runtime/debug/stack.go:24 +0x80
github.com/lxn/walk.newErr(0x5a8716, 0x12, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/error.go:81 +0x28
github.com/lxn/walk.newError(0x5a8716, 0x12, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/error.go:85 +0x33
github.com/lxn/walk.(_ToolTip).AddTool(0x126be000, 0x67fc40, 0x126c0000, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/tooltip.go:120 +0xa4
github.com/lxn/walk.(_WidgetBase).init(0x126c0000, 0x67f340, 0x126c0000, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/widget.go:117 +0x4a
github.com/lxn/walk.InitWindow(0x384350, 0x126c0000, 0x67e460, 0x126ae6e0, 0x5abc8e, 0x1c, 0x50000000, 0x10000, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/window.go:428 +0x5a6
github.com/lxn/walk.InitWidget(0x67f340, 0x126c0000, 0x67e460, 0x126ae6e0, 0x5abc8e, 0x1c, 0x50000000, 0x10000, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/widget.go:96 +0xbd
github.com/lxn/walk.newCompositeWithStyle(0x67e460, 0x126ae6e0, 0x0, 0x67e460, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/composite.go:28 +0x117
github.com/lxn/walk.NewComposite(0x67efe0, 0x126ae6e0, 0x126ae6e0, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/composite.go:41 +0x59
github.com/lxn/walk.(*FormBase).init(0x126ae6e0, 0x384238, 0x126ae6e0, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/form.go:80 +0x5f
github.com/lxn/walk.InitWindow(0x67e460, 0x126ae6e0, 0x0, 0x0, 0x5ac0bf, 0x1d, 0xcf0000, 0x10000, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/window.go:420 +0x4db
github.com/lxn/walk.NewMainWindow(0x0, 0x0, 0x0)
D:/go/src/github.com/lxn/walk/mainwindow.go:34 +0x83
github.com/lxn/walk/declarative.MainWindow.Create(0x1266c260, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
D:/go/src/github.com/lxn/walk/declarative/mainwindow.go:41 +0x38
github.com/lxn/walk/declarative.MainWindow.Run(0x1266c260, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
D:/go/src/github.com/lxn/walk/declarative/mainwindow.go:132 +0x6f
main.main()
D:/go/src/github.com/lxn/walk/examples/drawing/drawing.go:34 +0x206
The text was updated successfully, but these errors were encountered: