Skip to content
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

x/mobile: universe.objc.h file copy fails on case-sensitive system #28335

Closed
tadovas opened this issue Oct 23, 2018 · 1 comment
Closed

x/mobile: universe.objc.h file copy fails on case-sensitive system #28335

tadovas opened this issue Oct 23, 2018 · 1 comment
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@tadovas
Copy link

tadovas commented Oct 23, 2018

Please answer these questions before submitting your issue. Thanks!

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

go version go1.11 linux/amd64

Does this issue reproduce with the latest release?

yes

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build230554153=/tmp/go-build -gno-record-gcc-switches"

What did you do?

gomobile bind -x -v -work --target=ios/arm64

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

Successful gomobile bind on linux

What did you see instead?

gomobile bind tries to copy universe.objc.h file (instead of generated Universe.objc.h).
cp $WORK/src/gobind/universe.objc.h mobile.framework/Versions/A/Headers/universe.objc.h
This works on darwin (somehow), but obviously fails on linux machines (because of upper/lower case mismatch.
It's a single line fix. PR is coming

@gopherbot
Copy link

Change https://golang.org/cl/144117 mentions this issue: gomobile: Start universe filename uppercase

@ALTree ALTree changed the title x/mobile x/mobile: universe.objc.h file copy fails on case-sensitive system Oct 23, 2018
@ALTree ALTree added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 23, 2018
@golang golang locked and limited conversation to collaborators Oct 26, 2019
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
…file

Fixes golang/go#28335

Change-Id: Ia6ef4a5e9c426d810770459632ab276eea9cab8f
GitHub-Last-Rev: 47d9c16
GitHub-Pull-Request: golang#24
Reviewed-on: https://go-review.googlesource.com/c/144117
Reviewed-by: Elias Naur <elias.naur@gmail.com>
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
…file

Fixes golang/go#28335

Change-Id: Ia6ef4a5e9c426d810770459632ab276eea9cab8f
GitHub-Last-Rev: 47d9c16
GitHub-Pull-Request: golang#24
Reviewed-on: https://go-review.googlesource.com/c/144117
Reviewed-by: Elias Naur <elias.naur@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants