-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all: add support for FreeBSD / aarch64 #24715
Comments
I will plus this |
I made an attempt: https://github.com/myfreeweb/go/commit/04a920776cbee1428cb698503e1c99784475cf53 I wonder if it's possible to take my patches to the standard library and use gccgo with them? |
@myfreeweb Patches like adding build tags here and there are likely the same for gccgo and gc. But gccgo has no equivalent to runtime/sys_freebsd_arm64.s. |
Anyone working on this? |
I'm also interested in this but haven't looked to see how much effort would be involved. |
I try. "go version" is work, but src/make.bash not work.
my fixes are,
|
For now zerrors_freebsd_arm64.go and ztypes_freebsd_arm64.go is just a copy of the freebsd/amd64 version of the files. Regenerate once bootstrapping a compiler works. Updates golang/go#24715 DO NOT REVIEW DO NOT SUBMIT Change-Id: I90a7e3ea0c0b6ecab4033f2908331b7be164a236
Updates golang/go#24715 DO NOT REVIEW DO NOT SUBMIT For now zerrors_freebsd_arm64.go and ztypes_freebsd_arm64.go are just copie of the freebsd/amd64 version of the files. Regenerate once bootstrapping a compiler works. Change-Id: I90a7e3ea0c0b6ecab4033f2908331b7be164a236
I fix to pass argc/argv.
|
Taken from golang#24715 (comment) Change-Id: I78f863bf2f9975e392067c494b0abd1bcb9af764
@tklauser what's the status here? do these patches enable cross compilation for freebsd-arm64 already? |
@ziprandom yes, building a bootstrap toolchain should already work. |
nice! and what's missing before this can be merged? |
@ziprandom I think we'll need to get Go building completely on |
Change https://golang.org/cl/155978 mentions this issue: |
This wasn't actually generated on freebsd/arm64 yet. It's mostly a copy of the amd64 files for now. Updates golang/go#24715 Change-Id: If24c3c5803a4708f0b26d738f690cbea1694ca88 Reviewed-on: https://go-review.googlesource.com/c/155978 Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
Taken from golang#24715 (comment) Change-Id: I78f863bf2f9975e392067c494b0abd1bcb9af764
Change https://golang.org/cl/156499 mentions this issue: |
This wasn't actually generated on freebsd/arm64 yet. It's mostly a copy of the amd64 files for now. Updates golang/go#24715 Change-Id: Iee8c12c29f1d74780948553047bc693668dde0b3 Reviewed-on: https://go-review.googlesource.com/c/156499 Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
golang 1.12 is released. |
With @tklauser
Known issues:
|
FWIW, I'm also working on it :) https://github.com/MikaelUrankar/go/tree/freebsd-aarch64
|
Change https://golang.org/cl/181618 mentions this issue: |
Change https://golang.org/cl/203420 mentions this issue: |
Change https://golang.org/cl/203421 mentions this issue: |
This should fix TestSlowBotAliases on tip. Updates golang/go#24715 Updates golang/go#34501 Change-Id: I80f99a5c24ef0860717605816a753fe6625aff17 Reviewed-on: https://go-review.googlesource.com/c/build/+/203421 Run-TryBot: Tobias Klauser <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
Updates golang/go#24715 Change-Id: I9f1aeac0d3b5f625e0f68b6bad17445a41a87b22 Reviewed-on: https://go-review.googlesource.com/c/build/+/203420 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
There still seem to be some issues with cgo, see https://golang.org/cl/199919:
Not sure whether these are the same as the cgo issues @dmgk and @MikaelUrankar saw. Or maybe these are some changes I forgot to pick up during rebase of https://golang.org/cl/198544. |
Yes, it looks similar to the ld.lld issue. We need a linker from binutils (bfd or gold) or from llvm trunk. |
Based on work by Mikaël Urankar (@MikaelUrankar). Updates #24715 Updates #35197 Change-Id: I91144101043d67d3f8444bf8389c9606abe2a66c Reviewed-on: https://go-review.googlesource.com/c/go/+/199919 Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
It's ok with lld10 : ld -v |
The respective CLs have been submitted and the Thanks to everybody who contributed! |
Change https://golang.org/cl/205798 mentions this issue: |
Updates golang/go#24715 Change-Id: I8eb3f6372d69718b6f453e5415cdf16aa00ccae6 Reviewed-on: https://go-review.googlesource.com/c/build/+/198597 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
This should fix TestSlowBotAliases on tip. Updates golang/go#24715 Updates golang/go#34501 Change-Id: I80f99a5c24ef0860717605816a753fe6625aff17 Reviewed-on: https://go-review.googlesource.com/c/build/+/203421 Run-TryBot: Tobias Klauser <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
Updates golang/go#24715 Change-Id: I9f1aeac0d3b5f625e0f68b6bad17445a41a87b22 Reviewed-on: https://go-review.googlesource.com/c/build/+/203420 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
Change https://golang.org/cl/210119 mentions this issue: |
Updates #24715 Change-Id: Ie6421cf2d599740bbb0576bcc37bd8ddf5af3961 Reviewed-on: https://go-review.googlesource.com/c/go/+/210119 Reviewed-by: Brad Fitzpatrick <[email protected]>
Change https://golang.org/cl/220426 mentions this issue: |
Change https://golang.org/cl/220427 mentions this issue: |
Updates #24715 Updates #37345 Change-Id: I787a9b2ab1c68e1d379aac0a31bdf6217f04f911 Reviewed-on: https://go-review.googlesource.com/c/go/+/220426 Reviewed-by: Dmitri Shuralyov <[email protected]>
…res FreeBSD 12.0 or later Updates #24715 Updates #37345 Change-Id: I787a9b2ab1c68e1d379aac0a31bdf6217f04f911 Reviewed-on: https://go-review.googlesource.com/c/go/+/220426 Reviewed-by: Dmitri Shuralyov <[email protected]> (cherry picked from commit 28c501b) Reviewed-on: https://go-review.googlesource.com/c/go/+/220427
I am curious if there is any plan to support kqueue directly.
There is huge disadvantage in using a shim, for porting epoll based stuff.
Perhaps some examples/demos could be worked out.
…On 9/10/19, YAMAMOTO, Shigeru ***@***.***> wrote:
Hi @MikaelUrankar , I check out your branch and do bootstrap.bash.
result in my environment:
```
***@***.***>: git clone https://github.com/MikaelUrankar/go.git
Cloning into 'go'...
remote: Enumerating objects: 388741, done.
remote: Total 388741 (delta 0), reused 0 (delta 0), pack-reused 388741
Receiving objects: 100% (388741/388741), 187.74 MiB | 6.17 MiB/s, done.
Resolving deltas: 100% (308966/308966), done.
Updating files: 100% (8711/8711), done.
***@***.***>: cd go/src/
***@***.***>: git checkout -b freebsd-aarch64
origin/freebsd-aarch64
Branch 'freebsd-aarch64' set up to track remote branch 'freebsd-aarch64'
from 'origin'.
Switched to a new branch 'freebsd-aarch64'
***@***.***>: rm -fr ../bin ../pkg ../../go-freebsd-arm64-bootstrap*
; GOROOT_BOOTSTRAP=/usr/local/go GOOS=freebsd GOARCH=arm64 TAR=gtar bash
bootstrap.bash >& ../../go.bootstrap.log &
[1] 9977
***@***.***>:
[1]+ Exit 2 GOROOT_BOOTSTRAP=/usr/local/go GOOS=freebsd
GOARCH=arm64 TAR=gtar bash bootstrap.bash &> ../../go.bootstrap.log
***@***.***>:
***@***.***>: tail ../../go.bootstrap.log
runtime.badmorestackgsignal: relocation target runtime.write not defined
runtime.needm: relocation target runtime.write not defined
runtime.badsystemstack: relocation target runtime.write not defined
# cmd/vet
runtime.gwrite: relocation target runtime.write not defined
runtime.badmorestackg0: relocation target runtime.write not defined
runtime.badmorestackgsignal: relocation target runtime.write not defined
runtime.needm: relocation target runtime.write not defined
runtime.badsystemstack: relocation target runtime.write not defined
go tool dist: FAILED:
/home/shigeru/git/github.com/MikaelUrankar/go-freebsd-arm64-bootstrap/pkg/tool/freebsd_amd64/go_bootstrap
install -gcflags=all= -ldflags=all= std cmd: exit status 2
***@***.***>:
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#24715 (comment)
|
@advancedwebdeveloper kqueue is used by the runtime on platforms that offer it. |
Go 1.10 works for me on FreeBSD-CURRENT / arm, but I’d love an arm64 port.
The text was updated successfully, but these errors were encountered: