Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2015 14:14:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204883] lang/go: fix build on armv6hf
Message-ID:  <bug-204883-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: mmoll@freebsd.org
                CC: freebsd-arm@FreeBSD.org
             Flags: maintainer-feedback?(jlaffaye@FreeBSD.org)
          Assignee: jlaffaye@FreeBSD.org
                CC: freebsd-arm@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204883-13>