Skip to content

x/mobile: ./gobind failed: exit status 1 #73007

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
Edw590 opened this issue Mar 23, 2025 · 2 comments
Closed

x/mobile: ./gobind failed: exit status 1 #73007

Edw590 opened this issue Mar 23, 2025 · 2 comments
Labels
mobile Android, iOS, and x/mobile Other None of the above.
Milestone

Comments

@Edw590
Copy link

Edw590 commented Mar 23, 2025

Go version

go version go1.20.14 windows/amd64 (I know it's outdated. If anyone can tell me, I just need to know what I need to do to fix it. Was working fine yesterday. Not sure what changed)

Output of go env in your module/workspace:

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Edw590\AppData\Local\go-build
set GOENV=C:\Users\Edw590\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Edw590\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Edw590\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.14
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\Edw590\AppData\Local\Temp\go-build2980150774=/tmp/go-build -gno-record-gcc-switches

What did you do?

I compiled a library with the command:

gomobile bind^
 -tags=client^
 -target=android^
 -x^
 -v^
 -o="bin/MainLibraries.aar"^
 "ACD/ACD"^
 "GMan/GMan"^
 "GPTComm/GPTComm"^
 "OICComm/OICComm"^
 "SCLink/SCLink"^
 "SettingsSync/SettingsSync"^
 "SpeechQueue/SpeechQueue"^
 "TEHelper/TEHelper"^
 "ULHelper/ULHelper"^
 "Utils/ModsFileInfo"^
 "Utils/UtilsSWA"

What did you see happen?

The attached log:

log.txt

What did you expect to see?

A successful compilation

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Mar 23, 2025
@gopherbot gopherbot added this to the Unreleased milestone Mar 23, 2025
@Edw590 Edw590 changed the title x/mobile ./gobind failed: exit status 1 x/mobile: ./gobind failed: exit status 1 Mar 23, 2025
@gabyhelp gabyhelp added the Other None of the above. label Mar 23, 2025
@Edw590
Copy link
Author

Edw590 commented Mar 23, 2025

It's fixed! Not sure how though. But here's the various things I did (a few times until I did it right):

  • Ran go clean -cache -modcache and manually deleted the rest of all inside the [User]\go\pkg and scr folders
  • Reinstalled Go
  • Rebooted the computer
  • Removed gomobile and gobind and redownloaded them
  • Tried other things but I undid them and the compilation still worked in the end, so I'm excluding them from here

Not sure what fixed it though, because I did these things a few times as I said. But in the end it started compiling again.

@Edw590 Edw590 closed this as completed Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile Other None of the above.
Projects
None yet
Development

No branches or pull requests

3 participants