Skip to content

go get failed in windows 64 #190

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

Closed
bruceauyeung opened this issue Sep 5, 2016 · 10 comments
Closed

go get failed in windows 64 #190

bruceauyeung opened this issue Sep 5, 2016 · 10 comments

Comments

@bruceauyeung
Copy link

os: windows 7 64bit
go: 1.7 windows amd64
gcc: gcc (tdm64-1) 5.1.0

error messages:

runtime

D:\go\src\runtime\lfstack_amd64.go:16: lfstackPack redeclared in this block
previous declaration at D:\go\src\runtime\lfstack_64bit.go:37
D:\go\src\runtime\lfstack_amd64.go:20: lfstackUnpack redeclared in this block
previous declaration at D:\go\src\runtime\lfstack_64bit.go:41
D:\go\src\runtime\os_windows.go:14: _NSIG redeclared in this block
previous declaration at D:\go\src\runtime\os2_windows.go:18
D:\go\src\runtime\os_windows.go:104: _AddVectoredExceptionHandler redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: _CloseHandle redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: _CreateEventA redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: _CreateIoCompletionPort redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: _CreateThread redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: _CreateWaitableTimerA redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: _CryptAcquireContextW redeclared in this block
previous declaration at D:\go\src\runtime\os1_windows.go:92
D:\go\src\runtime\os_windows.go:104: too many errors

@bruceauyeung
Copy link
Author

sorry, the error mentioned above was caused by incorrect golang installation. but after i reinstalled my golang, there was another error:

go build github.com/andlabs/ui

github.com/andlabs/ui

D:/go-path-ext/src/github.com/andlabs/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In function msgbox': E:/github.com/andlabs/libui/windows/stddialogs.cpp:113: undefined reference to__imp_TaskDialog'
collect2.exe: error: ld returned 1 exit status

@Notaurious
Copy link

Same issue here. Trying to do a go get and receiving:

go get github.com/andlabs/ui

github.com/andlabs/ui

C:/go_lib/src/github.com/andlabs/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In function msgbox': E:/github.com/andlabs/libui/windows/stddialogs.cpp:113: undefined reference to__imp_TaskDialog'
collect2.exe: error: ld returned 1 exit status

@andlabs
Copy link
Owner

andlabs commented Oct 14, 2016

@redhatlinux10 that log is from an attempt to build package runtime. How did you install Go? Is this an upgrade from a previous version?

@TarabyteCoding see #147

@andlabs
Copy link
Owner

andlabs commented Oct 21, 2016

@redhatlinux10 did you extract a Go source tarball over another Go source tarball? #185

@bruceauyeung
Copy link
Author

@andlabs the first error was caused by directly extracting tarball into already existed golang installation directory, and i realized that, so i delete the whole original directory and then the first error disappeared. but the second error cames.

@andlabs
Copy link
Owner

andlabs commented Nov 2, 2016

So now you get the TaskDialog error?

@silverkorn
Copy link

I'm also having the issue [...]/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In function msgbox': [...]/libui/windows/stddialogs.cpp:113: undefined reference to__imp_TaskDialog'`.

Info:
go version go1.6.2 windows/amd64

Environment:
Go installed manually to C:\Users\USERNAME\Apps\Go\.
GOROOT=C:\Users\USERNAME\Apps\Go
GOPATH=C:\Users\USERNAME\Development\Standalone\GoTest

@andlabs
Copy link
Owner

andlabs commented Jan 9, 2017

Again, install the latest MinGW-w64. If that one still does not fix it, please let me know. It must be the -w64 version, not normal MinGW.

@andlabs andlabs closed this as completed Jan 9, 2017
@andlabs andlabs reopened this Jan 9, 2017
@silverkorn
Copy link

Ok, it worked with the latest MinGW-w64 from MSYS2 (GCC 6.2.0).
I've been trying with the latest TDM-GCC (GCC 5.1.0) but, indeed, it's a bit old and it doesn't work.

@andlabs
Copy link
Owner

andlabs commented Mar 26, 2018

Merged with #279.

@andlabs andlabs closed this as completed Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants