[Bug 204883] lang/go: fix build on armv6hf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 28 14:14:14 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204883

            Bug ID: 204883
           Summary: lang/go: fix build on armv6hf
           Product: Ports & Packages
           Version: Latest
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jlaffaye at FreeBSD.org
          Reporter: mmoll at freebsd.org
                CC: freebsd-arm at FreeBSD.org
             Flags: maintainer-feedback?(jlaffaye at FreeBSD.org)
          Assignee: jlaffaye at FreeBSD.org
                CC: freebsd-arm at FreeBSD.org

Created attachment 163630
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=163630&action=edit
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. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list