Bug 204883 - lang/go: fix build on armv6hf
Summary: lang/go: fix build on armv6hf
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: Julien Laffaye
URL:
Keywords:
Depends on: 204882
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-28 14:14 UTC by Michael Moll
Modified: 2017-02-18 21:08 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (jlaffaye)


Attachments
port Makefile patch (817 bytes, patch)
2015-11-28 14:14 UTC, Michael Moll
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moll freebsd_committer freebsd_triage 2015-11-28 14:14:13 UTC
Created attachment 163630 [details]
port Makefile patch

When building lang/go with a patch similar to the one in #204882 on real ARM h/w I got: "runtime: this system has multiple CPUs and must use atomic synchronization instructions. Recompile using GOARM=7."

For the background, please see https://github.com/golang/go/issues/12067

This is leading to an ugly situation, because (for FreeBSD) AMRv6 also includes ARMv7, while there are really some differences. I did set GOARM=7 in the Makefile and everything is fine for me, but this will lead to binaries not working on ARMv6 CPUs (i.e. the original RPi, while RPi 2 has ARMv7).

I also didn't test this on non-hf armv6.

Some ARM experts should weigh in here. :)