Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jan 2015 20:31:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196623] lang/go: Won't build on armv6 because of limitation in Makefile
Message-ID:  <bug-196623-13@https.bugs.freebsd.org/bugzilla/>

Next in thread | Raw E-Mail | Index | Archive | Help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196623

            Bug ID: 196623
           Summary: lang/go: Won't build on armv6 because of limitation in
                    Makefile
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jlaffaye@FreeBSD.org
          Reporter: contact@erikano.net
             Flags: maintainer-feedback?(jlaffaye@FreeBSD.org)
          Assignee: jlaffaye@FreeBSD.org

Hello,

I was trying to build go from ports on my Raspberry Pi running FreeBSD 10.1 and
at first, it told me "go-1.4,1 is only for i386 amd64, while you are running
armv6".

I made a forum post about it at
https://forums.freebsd.org/threads/go-1-4-1-is-only-for-i386-amd64-while-you-are-running-armv6.49901/

It turned out that with minor changes to the Makefile, go was able to build,
install and run on my armv6 computer.

Here is my change of the Makefile:

27c27
< ONLY_FOR_ARCHS=   i386 amd64
---
> ONLY_FOR_ARCHS=   armv6
31,38c31,32
< .if ${ARCH} == "i386"
< GOARCH=386
< GOOBJ=8
< PLIST_SUB+=   I386_ONLY=""
< PLIST_SUB+=   AMD64_ONLY="@comment "
< .else
< GOARCH=amd64
< GOOBJ=6
---
> GOARCH=arm
> GOOBJ=5
40,41c34
< PLIST_SUB+=   AMD64_ONLY=""
< .endif
---
> PLIST_SUB+=   AMD64_ONLY="@comment "

As you can see, I removed i386 and amd64, which is obviously not what I want
you to do in the actual ports, but I was hoping that you could make similar
changes to what I did.

This is my first time reporting something to FreeBSD so my appologies if I've
done anything wrong.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer jlaffaye@FreeBSD.org

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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?bug-196623-13>