Skip to content
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

go/build: add more GOARCH values? #18586

Closed
bradfitz opened this issue Jan 10, 2017 · 5 comments
Closed

go/build: add more GOARCH values? #18586

bradfitz opened this issue Jan 10, 2017 · 5 comments

Comments

@bradfitz
Copy link
Contributor

bradfitz commented Jan 10, 2017

(Moving discussion in https://go-review.googlesource.com/c/35031/ to here)

Should we add m68k and alpha to gc's GOARCH list?

/cc @ianlancetaylor @minux

@bradfitz bradfitz added this to the Go1.9Maybe milestone Jan 10, 2017
@minux
Copy link
Member

minux commented Jan 10, 2017 via email

@ianlancetaylor ianlancetaylor changed the title go/build: add more GOOS values? go/build: add more GOARCH values? Jan 10, 2017
@ianlancetaylor
Copy link
Contributor

I changed the title from GOOS to GOARCH.

If Go continues to catch on, we have to realistically consider the possibility that people will expect it to run on every architecture that supports GNU/Linux or NetBSD. That is quite a few architectures that we don't currently list: alpha, arc, avr32, blackfix, c6x, cris, frv, h8300, hexagon, ia64, m32r, m68k, metag, microblaze, mn10300, nios2, openrisc, parisc, score, sh, tile, unicore32, vax, xtensa. And of course new ones appear from time to time.

I think we need to drop the idea of knowing all possible GOARCH values., and just rely on +build constraints for new ports.

@minux
Copy link
Member

minux commented Jan 18, 2017 via email

@bradfitz
Copy link
Contributor Author

Sounds like we're not going to add more well-known GOOS/GOARCH values and be more explicit going forward. Closing.

@glaubitz
Copy link

Just as a heads-up: There is still a very active community on these old architectures in the field of retro-computing, especially around the m68k architecture.

There are still people and small companies making new hardware and there are also new, FPGA-based CPU designs being released. There are, for example, Amigas accelerators with 68060-compatible CPUs which are clocked with 600 MHz and more.

In Debian, we support a large number of architectures, including obscure ones and the vast majority of packages build just fine. Debian unstable with the latest kernel runs perfectly on old m68k hardware.

I am currently hacking on gccgo on m68k and sh. The former has alignment issues which makes Go binaries crash while the latter has not been added to libgo yet, I already sent a patch for sh though.

@golang golang locked and limited conversation to collaborators Dec 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants