Skip to content

compile/arm64: - undefined: hooks [windows] #37220

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
resssoft opened this issue Feb 14, 2020 · 3 comments
Closed

compile/arm64: - undefined: hooks [windows] #37220

resssoft opened this issue Feb 14, 2020 · 3 comments
Labels
FrozenDueToAge OS-Windows WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@resssoft
Copy link

What version of Go are you using (go version)?

go version go1.13.8 windows/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
set GO111MODULE=
set GOARCH=386
set GOBIN=
set GOCACHE=C:\Users\UserName\AppData\Local\go-build
set GOENV=C:\Users\UserName\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\UserName\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set GO386=sse2
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m32 -fmessage-length=0 -fdebug-prefix-map=C:\Users\UserName\AppData\Local\Temp\go-build321695466=/tmp/go-build -gno-record-gcc-switches

What did you do?

install mingw-w64 from sourceforge.net

go get "github.com/go-vgo/robotgo" Output
# github.com/go-vgo/robotgo
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:53:10: undefined: hook.AddEvent
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:65:2: undefined: hook.StopEvent
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:70:19: undefined: hook.Event
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:71:9: undefined: hook.Start
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:76:2: undefined: hook.End
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:85:7: undefined: hook.Start
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:98:18: undefined: hook.KeyHold
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:106:18: undefined: hook.KeyUp
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\keycode.go:14:16: undefined: Map
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\keycode.go:25:15: undefined: Map
C:\Users\UserName\go\src\github.com\go-vgo\robotgo\hook.go:106:18: too many errors
gcc -v Output
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/8.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-8.2.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-8.2.0-5' --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-isl=/mingw --enable-libgomp --disable-libvtv --enable-nls --disable-build-format-warnings
Thread model: win32
gcc version 8.2.0 (MinGW.org GCC-8.2.0-5)

Compile for 386

go1.13.8.windows-386
Install mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz from http://www.mingw.org/

go get "github.com/go-vgo/robotgo" Output
# github.com/robotn/gohook
C:\Users\UserName\AppData\Local\Temp\go-build569959594\b043\_x003.o: In function `eb_port_create':
C:/Users/UserName/go/src/github.com/robotn/gohook/chan/eb_chan.h:382: undefined reference to `sched_yield'
C:\Users\UserName\AppData\Local\Temp\go-build569959594\b043\_x003.o: In function `eb_port_free':
C:/Users/UserName/go/src/github.com/robotn/gohook/chan/eb_chan.h:350: undefined reference to `sched_yield'
C:/Users/UserName/go/src/github.com/robotn/gohook/chan/eb_chan.h:341: undefined reference to `sched_yield'
C:\Users\UserName\AppData\Local\Temp\go-build569959594\b043\_x003.o: In function `cleanup_ops':
C:/Users/UserName/go/src/github.com/robotn/gohook/chan/eb_chan.h:858: undefined reference to `sched_yield'
C:/Users/UserName/go/src/github.com/robotn/gohook/chan/eb_chan.h:858: undefined reference to `sched_yield'
C:\Users\UserName\AppData\Local\Temp\go-build569959594\b043\_x003.o:C:/Users/UserName/go/src/github.com/robotn/gohook/chan/eb_chan.h:643: more undefined references to `sched_yield' follow
collect2.exe: error: ld returned 1 exit status
@AlexRouSg
Copy link
Contributor

AlexRouSg commented Feb 14, 2020

See go-vgo/robotgo#198

It's either a issue with your config or mingw version. If nothing helps, report it to https://github.com/robotn/gohook as it is not a Go issue.

@dmitshur dmitshur added OS-Windows WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Feb 15, 2020
@AlexRouSg
Copy link
Contributor

To test if it's a enviroment issue, I ran both go get github.com/robotn/gohook and go get github.com/go-vgo/robotgo on windows and they completed fine.

For reference I'm using https://sourceforge.net/projects/mingw-w64/ and go version go1.13.8 windows/amd64
Tested both in module and gopath mode.

@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge OS-Windows WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants