golang/go

x/mobile: gomobile cross-device link error on final .app mv

Open

#31,836 opened on May 4, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationhelp wantedmobile

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Does this issue reproduce with the latest release?

Yes.

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

What did you do?

Ran gomobile build -target ios.

The full command I ran is env __IPHONEOS__=1 env CGO_CPPFLAGS="-I/usr/local/include/SDL2/ -DSDL_DISABLE_IMMINTRIN_H=1 -DTARGET_OS_IPHONE -D__IPHONEOS__" gomobile build -target=ios/arm -tags static -x -v -bundleid net.kettek.gosdlrender but this is inconsequential to the reason why the failure occurred.

What did you expect to see?

A successful mv operation before removal of the $WORK directory.

What did you see instead?

** BUILD SUCCEEDED **

mv $WORK/build/Release-iphoneos/main.app render.app
rm -r -f "$WORK"
gomobile: rename /var/folders/m_/fjkzltc90_53qbckvq23bync0000gn/T/gomobile-work-342798608/build/Release-iphoneos/main.app render.app: cross-device link

** The cross-device link error, as far as I know, has to do with the fact my root partition is on a different filesystem than my Users partition -- the root is HFS+ and the Users is ZFS. This should be fixable by issuing a cp command rather than a mv. **

Contributor guide