Comments (10)
You need rebuild w32.a
In source w32 directory ...github.com\AllenDang\w32 type:
go build
go install
from w32.
I still have the problem. Note that it's using w32.a from gopath\pkg instead of temp.
d:\>cd %GOPATH%\src\github.com\AllenDang\w32
d:\Dev\go\gopath\src\github.com\AllenDang\w32>go build
d:\Dev\go\gopath\src\github.com\AllenDang\w32>go install
d:\Dev\go\gopath\src\github.com\AllenDang\w32>
D:\Dev\go\Bogues\bugw32> go build
# _/D_/Dev/go/Bogues/bugw32
d:\dev\go\gopath\pkg\windows_amd64/github.com/AllenDang/w32.a(_all.o): malformed pe file: No error
D:\Dev\go\Bogues\bugw32>
from w32.
Try delete w32.a and again build.
Show output 'go env'
from w32.
I deleted w32.a and tried again without success.
D:\>cd %GOPATH%\src\github.com\AllenDang\w32
d:\Dev\go\gopath\src\github.com\AllenDang\w32>go build
d:\Dev\go\gopath\src\github.com\AllenDang\w32>go install
d:\Dev\go\gopath\src\github.com\AllenDang\w32>cd D:\Dev\go\Bogues\bugw32
D:\Dev\go\Bogues\bugw32>go build
# _/D_/Dev/go/Bogues/bugw32
d:\dev\go\gopath\pkg\windows_amd64/github.com/AllenDang/w32.a(_all.o): malformed pe file: No error
C:\Users\bbigras>go env
set GOARCH=amd64
set GOBIN=
set GOCHAR=6
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=d:\dev\go\gopath
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
from w32.
My output 'go env' same as your except GOPATH. I have windows 7 64-bit too.
Show output 'go build -x'
from w32.
In source directory of w32
git show
commit 26c1073
Merge: a118f5e 8f5e4f1
Author: Allen Dang [email protected]
Date: Wed Jan 8 18:35:57 2014 -0800
Hash sum of w32.a are:
MD5: 78097926da64befcb2d40a0cff1f84ad
SHA1: "3b08eeaeb3ddf7d208f4000c83e72fdde5f07147"
from w32.
Show output 'go build -x'
D:\Dev\go\Bogues\bugw32>go build -x
WORK=C:\Users\bbigras\AppData\Local\Temp\go-build175372299
mkdir -p $WORK\_\D_\Dev\go\Bogues\bugw32\_obj\
cd D:\Dev\go\Bogues\bugw32
"C:\\Go\\pkg\\tool\\windows_amd64\\6g.exe" -o "C:\\Users\\bbigras\\AppData\\Local\\Temp\\go-build175372299\\_\\D_\\Dev\\go\\Bogues\\bugw32.a" -trimpath "C:\\Users\\bbigras\\AppData\\Local\\Temp\\go-build175372299" -p _/D_/Dev/go/Bogues/bugw32 -complete -D _/D_/Dev/go/Bogues/bugw32 -I "C:\\Users\\bbigras\\AppData\\Local\\Temp\\go-build175372299" -I "d:\\dev\\go\\gopath\\pkg\\windows_amd64" -pack "D:\\Dev\\go\\Bogues\\bugw32\\bugw32.go"
cd .
"C:\\Go\\pkg\\tool\\windows_amd64\\6l.exe" -o bugw32.exe -L "C:\\Users\\bbigras\\AppData\\Local\\Temp\\go-build175372299" -L "d:\\dev\\go\\gopath\\pkg\\windows_amd64" -extld=gcc "C:\\Users\\bbigras\\AppData\\Local\\Temp\\go-build175372299\\_\\D_\\Dev\\go\\Bogues\\bugw32.a"
# _/D_/Dev/go/Bogues/bugw32
d:\dev\go\gopath\pkg\windows_amd64/github.com/AllenDang/w32.a(_all.o): malformed pe file: No error
In source directory of w32
git show
D:\Dev\go\gopath\src\github.com\AllenDang\w32 [master...origin/master]> git show
commit 26c1073cd3bf2ac2752e5ccc5d9c2a4341d158ba
Merge: a118f5e 8f5e4f1
Author: Allen Dang <[email protected]>
Date: Wed Jan 8 18:35:57 2014 -0800
Hash sum of w32.a are:
MD5: 78097926da64befcb2d40a0cff1f84ad
SHA1: "3b08eeaeb3ddf7d208f4000c83e72fdde5f07147"
D:\Dev\go\gopath\pkg\windows_amd64\github.com\AllenDang>md5sum w32.a
a5dfbcef5195fe4452a1749aaee1f125 *w32.a
D:\Dev\go\gopath\pkg\windows_amd64\github.com\AllenDang>sha1sum w32.a
77563d7c3a780b7b381cd3e415447784c83546da *w32.a
from w32.
You have another go :-). Try reinstall go. I have no idea. May be your w32.a for x86 arch? My w32.a start with:
__.PKGDEF 0 0 0 644 108696 `
go object windows amd64 go1.3 X:precisestack
$$
package w32
from w32.
My w32.a starts with:
!<arch>
__.PKGDEF 0 0 0 644 109200 `
go object windows amd64 go1.3 X:precisestack
$$
package w32
I'm using gcc version 4.7.1 (tdm64-1)
but I'll try the Mingw-builds
or Win-builds
from http://mingw-w64.sourceforge.net/download.php.
from w32.
I don't have the problem anymore with the Win-builds gcc version.
gcc version 4.8.2 (GCC)
Sorry for the noise.
from w32.
Related Issues (20)
- Unable to install after 1 May merges HOT 1
- Could not determine kind of name for C.DWORD and C.INPUT HOT 7
- mobiles HOT 2
- why this package need cgo?
- add RedrawWindow and RDW_FRAME
- Does this package need panic when error is return or just return the error? HOT 1
- Cannot run in windows7 64bit。why?How can fix it? HOT 4
- I've gotten an error "0x3b02 User stopped resource enumeration." while I used the ExtractIcon HOT 1
- failed install on Windows 10 Home 64 bit HOT 5
- user32.go:1039:10: cannot use flag (type uint32) as type uintptr in argument to procRedrawWindow.Call HOT 7
- restart gracefully
- cannot use flag (type uint32) as type uintptr in argument to procRedrawWindow.Call HOT 2
- Unable to Use for cross compiling HOT 1
- GPL HOT 1
- I Tried to pull the package and i got a error HOT 1
- how to check current user language (locale)
- how do i use go to call DLL
- [The solution] user32.go:1039:10: cannot use flag (type uint32) as type uintptr in argument to procRedrawWindow.Call HOT 5
- Is there an example of the call of readeventlog? Thank you
- Callback example
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from w32.