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 "
From https://golang.org/doc/install/source. So there you see why I set it to 5.The Go compilers support three instruction sets. There are important differences in the quality of the compilers for the different architectures.
amd64 (a.k.a. x86-64); 6g,6l,6c,6a
A mature implementation. The compiler has an effective optimizer (registerizer) and generates good code (although gccgo can do noticeably better sometimes).386 (a.k.a. x86 or x86-32); 8g,8l,8c,8a
Comparable to the amd64 port.arm (a.k.a. ARM); 5g,5l,5c,5a
Supports Linux, FreeBSD and NetBSD binaries. Less widely used than the other ports.
go version
reports
go version go1.4 freebsd/arm
Yes, I'd love to do that. Where is it described how I do that?Excellent. If it properly builds and works could you please create a PR for it? The port can then be modified so it'll work on ARM too.
Even better! Getting a port to build doesn't necessarily mean it will actually workInstalled andgo version
reportsIn other words, it seems to be working.Code:go version go1.4 freebsd/arm
https://bugs.freebsd.org/bugzilla/Yes, I'd love to do that. Where is it described how I do that?
poudriere jail -c -j pitest -v 10.1-STABLE
fails with[00:00:00] ====>> FREEBSD_HOST from config invalid; defaulting to http://ftp.freebsd.org
[00:00:00] ====>> Fetching base.txz for FreeBSD 10.1-STABLE arm.armv6
fetch: http://ftp.freebsd.org/pub/FreeBSD/snapshots/arm.armv6/arm.armv6/10.1-STABLE/base.txz: Not Found
fetch: http://ftp.freebsd.org/pub/FreeBSD/snapshots/arm.armv6/arm.armv6/10.1-STABLE/base.txz: Not Found
[00:00:00] ====>> Error: Failed to fetch from http://ftp.freebsd.org/pub/FreeBSD/snapshots/arm.armv6/arm.armv6/10.1-STABLE/base.txz
[00:00:00] ====>> Error while creating jail, cleaning up.
[00:00:00] ====>> Removing pitest jail... done
make build 2>&1 | tee -a build.log
).