+ Cherry, who also expressed interest in the darwin/arm problem.
On Wed, Oct 23, 2019 at 9:14 PM Than McIntosh <
th...@google.com> wrote:
>
> Hi again,
>
> For this error:
>
> >> # crypto/aes.test ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in
> _runtime.rodata from /var/folders/qq/qxn86k813bn9fjxydm095rxw0000gp/T/workdir-host-darwin-amd64-zenly-ios/tmp/go-link-786726690/go.o.
> To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
>
> I would be happy to look into it, but maybe you could supply a detailed reproducer? It's not clear to me from the trybot log exactly how the code is being built. I assume I can do this on my regular old macbook?
>
Reproduced on my macOS 10.14.6 with Xcode 10.3:
$ GOARCH=arm CGO_ENABLED=1
CC_FOR_TARGET=$(pwd)/../misc/ios/clangwrap.sh ./all.bash
Building Go cmd/dist using /Users/elias/go1.10.1.
Building Go toolchain1 using /Users/elias/go1.10.1.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for host, darwin/amd64.
Building packages and commands for target, darwin/arm.
# cmd/addr2line
ld: warning: PIE disabled. Absolute addressing (perhaps
-mdynamic-no-pic) not allowed in code signed PIE, but used in
_runtime.rodata from
/var/folders/_7/lnt35k555hl2bs7fjygkhgx00000gp/T/go-link-351080933/go.o.
To fix this warning, don't compile with -mdynamic-no-pic or link with
-Wl,-no_pie
# cmd/buildid
ld: warning: PIE disabled. Absolute addressing (perhaps
-mdynamic-no-pic) not allowed in code signed PIE, but used in
_runtime.rodata from
/var/folders/_7/lnt35k555hl2bs7fjygkhgx00000gp/T/go-link-569321767/go.o.
To fix this warning, don't compile with -mdynamic-no-pic or link with
-Wl,-no_pie
# cmd/api
ld: warning: PIE disabled. Absolute addressing (perhaps
-mdynamic-no-pic) not allowed in code signed PIE, but used in
_runtime.rodata from
/var/folders/_7/lnt35k555hl2bs7fjygkhgx00000gp/T/go-link-945236012/go.o.
To fix this warning, don't compile with -mdynamic-no-pic or link with
-Wl,-no_pie
# cmd/cgo
...
-- elias