All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries
@ 2018-11-07 20:12 Christian Stewart
  2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
  2018-11-07 22:27 ` [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Stewart @ 2018-11-07 20:12 UTC (permalink / raw)
  To: buildroot

Currently, GOARM is not specified correctly when compiling target binaries. This
results in incompatibility / illegal instruction issues on some ARM devices.

Signed-off-by: Christian Stewart <christian@paral.in>
---
 package/go/go.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/go/go.mk b/package/go/go.mk
index ec74ba397c..8423dc7eea 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -43,6 +43,7 @@ HOST_GO_ROOT = $(HOST_DIR)/lib/go
 HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH)
 HOST_GO_TARGET_ENV = \
 	GOARCH=$(GO_GOARCH) \
+	$(if $(GO_GOARM),GOARM=$(GO_GOARM)) \
 	GOROOT="$(HOST_GO_ROOT)" \
 	CC="$(TARGET_CC)" \
 	CXX="$(TARGET_CXX)" \
-- 
2.18.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go
  2018-11-07 20:12 [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
@ 2018-11-07 20:12 ` Christian Stewart
  2018-11-08 14:17   ` Anisse Astier
  2018-11-08 20:01   ` Thomas Petazzoni
  2018-11-07 22:27 ` [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
  1 sibling, 2 replies; 5+ messages in thread
From: Christian Stewart @ 2018-11-07 20:12 UTC (permalink / raw)
  To: buildroot

I am now maintaining / submitting regular patches for the Go toolchain as well.

Signed-off-by: Christian Stewart <christian@paral.in>
---
 DEVELOPERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 8d5ed199ce..b95f6c583c 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -468,6 +468,7 @@ F:	package/batman-adv/
 F:	package/docker-containerd/
 F:	package/docker-engine/
 F:	package/docker-proxy/
+F:	package/go/
 F:	package/mosh/
 F:	package/rtl8821au/
 F:	package/runc/
-- 
2.18.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries
  2018-11-07 20:12 [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
  2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
@ 2018-11-07 22:27 ` Christian Stewart
  1 sibling, 0 replies; 5+ messages in thread
From: Christian Stewart @ 2018-11-07 22:27 UTC (permalink / raw)
  To: buildroot

All,

On Wed, Nov 7, 2018 at 12:13 PM Christian Stewart <christian@paral.in> wrote:
> Currently, GOARM is not specified correctly when compiling target binaries. This
> results in incompatibility / illegal instruction issues on some ARM devices.

Withdrawing this patch, while investigating a SIGILL with Cgo,
possibly related to using thumb2 instructions on arm (when Go only
supports standard arm instructions).

See https://github.com/golang/go/issues/28642

Thanks,
Christian Stewart

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go
  2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
@ 2018-11-08 14:17   ` Anisse Astier
  2018-11-08 20:01   ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Anisse Astier @ 2018-11-08 14:17 UTC (permalink / raw)
  To: buildroot

Hi Christian,

On Wed, Nov 07, 2018 at 12:12:59PM -0800, Christian Stewart wrote:
> I am now maintaining / submitting regular patches for the Go toolchain as well.
> 
> Signed-off-by: Christian Stewart <christian@paral.in>
> ---
>  DEVELOPERS | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 8d5ed199ce..b95f6c583c 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -468,6 +468,7 @@ F:	package/batman-adv/
>  F:	package/docker-containerd/
>  F:	package/docker-engine/
>  F:	package/docker-proxy/
> +F:	package/go/
>  F:	package/mosh/
>  F:	package/rtl8821au/
>  F:	package/runc/
> -- 
> 2.18.1
> 

While the previous patch has been withdrawn, you still want this patch
applied, correct ?

Regards,

Anisse

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go
  2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
  2018-11-08 14:17   ` Anisse Astier
@ 2018-11-08 20:01   ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-11-08 20:01 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed,  7 Nov 2018 12:12:59 -0800, Christian Stewart wrote:
> I am now maintaining / submitting regular patches for the Go toolchain as well.
> 
> Signed-off-by: Christian Stewart <christian@paral.in>
> ---
>  DEVELOPERS | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-08 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07 20:12 [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
2018-11-08 14:17   ` Anisse Astier
2018-11-08 20:01   ` Thomas Petazzoni
2018-11-07 22:27 ` [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.