Page MenuHomeFreeBSD

lang/go: port to powerpc64
AbandonedPublic

Authored by mikael on May 21 2019, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 3:54 PM
Unknown Object (File)
Thu, May 2, 3:54 PM
Unknown Object (File)
Thu, May 2, 3:54 PM
Unknown Object (File)
Thu, May 2, 3:54 PM
Unknown Object (File)
Thu, May 2, 3:54 PM
Unknown Object (File)
Thu, May 2, 3:54 PM
Unknown Object (File)
Thu, May 2, 12:54 PM
Unknown Object (File)
Jan 30 2024, 3:23 PM
Subscribers

Details

Summary

it only supports power8 or power9

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

===>  License BSD3CLAUSE accepted by the user
===>   go112-1.12.4 depends on file: /usr/local/sbin/pkg - found
=> go-freebsd-ppc64-bootstrap.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/go-freebsd-ppc64-bootstrap.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/go-freebsd-ppc64-bootstrap.tar.gz: Not Found
=> Attempting to fetch http://mikael.urankar.free.fr/FreeBSD/go/go-freebsd-ppc64-bootstrap.tar.gz
fetch: http://mikael.urankar.free.fr/FreeBSD/go/go-freebsd-ppc64-bootstrap.tar.gz: size mismatch: expected 120377463, actual 120361266
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
mikael edited the summary of this revision. (Show Details)
mikael edited the test plan for this revision. (Show Details)

enable cgo

Currently errors are:

Building Go cmd/dist using /usr/local/go112.
cmd/dist
# _/tmp/usr/ports/lang/go/work/go/src/cmd/dist
runtime.(*cpuProfile).add: relocation target runtime.osyield not defined
runtime.lock: relocation target runtime.osyield not defined
runtime.(*mheap).sysAlloc: relocation target runtime.munmap not defined
runtime.sysReserveAligned: relocation target runtime.munmap not defined
runtime.sysAlloc: relocation target runtime.mmap not defined
runtime.sysReserve: relocation target runtime.mmap not defined
runtime.sysMap: relocation target runtime.mmap not defined
runtime.(*mspan).ensureSwept: relocation target runtime.osyield not defined
runtime.(*mspan).sweep: relocation target runtime.mmap not defined
runtime.(*mspan).scavenge: relocation target runtime.madvise not defined
runtime.recordspan: relocation target runtime.munmap not defined
runtime.netpollinit: relocation target runtime.kqueue not defined
runtime.netpollinit: relocation target runtime.closeonexec not defined
runtime.netpollopen: relocation target runtime.kevent not defined
runtime.netpoll: relocation target runtime.kevent not defined
runtime.sysctlnametomib: relocation target runtime.sysctl not defined
runtime.getncpu: relocation target runtime.sysctl not defined
runtime.getncpu: relocation target runtime.cpuset_getaffinity not defined
runtime.getPageSize: relocation target runtime.sysctl not defined
runtime.futexsleep1: relocation target runtime.sys_umtx_op not defined
runtime.futexwakeup: relocation target runtime.sys_umtx_op not defined

I'm looking at it to see if I can fix it.

Currently errors are:

Building Go cmd/dist using /usr/local/go112.
cmd/dist
# _/tmp/usr/ports/lang/go/work/go/src/cmd/dist
runtime.(*cpuProfile).add: relocation target runtime.osyield not defined
runtime.lock: relocation target runtime.osyield not defined
runtime.(*mheap).sysAlloc: relocation target runtime.munmap not defined
runtime.sysReserveAligned: relocation target runtime.munmap not defined
runtime.sysAlloc: relocation target runtime.mmap not defined
runtime.sysReserve: relocation target runtime.mmap not defined
runtime.sysMap: relocation target runtime.mmap not defined
runtime.(*mspan).ensureSwept: relocation target runtime.osyield not defined
runtime.(*mspan).sweep: relocation target runtime.mmap not defined
runtime.(*mspan).scavenge: relocation target runtime.madvise not defined
runtime.recordspan: relocation target runtime.munmap not defined
runtime.netpollinit: relocation target runtime.kqueue not defined
runtime.netpollinit: relocation target runtime.closeonexec not defined
runtime.netpollopen: relocation target runtime.kevent not defined
runtime.netpoll: relocation target runtime.kevent not defined
runtime.sysctlnametomib: relocation target runtime.sysctl not defined
runtime.getncpu: relocation target runtime.sysctl not defined
runtime.getncpu: relocation target runtime.cpuset_getaffinity not defined
runtime.getPageSize: relocation target runtime.sysctl not defined
runtime.futexsleep1: relocation target runtime.sys_umtx_op not defined
runtime.futexwakeup: relocation target runtime.sys_umtx_op not defined

I'm looking at it to see if I can fix it.

With my last modification?

@pkubaj: I fixed a few bugs, can you give it another try?