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
cmd/compile: implement powerpc 32-bit backend (ppc32) #22885
Comments
any update ¿? |
Updates will be posted here. There are no updates. I only see ten thumbs-up which is not really very many, though of course if someone volunteers to do the work and maintain a builder we will accept the port. |
I want to help to work with g4/g5 |
32-bit PowerPC would be the 4xx, 6xx, 7xx (G3, Broadway/Wii, etc), and 74xx (G4), in addition to a few others. The G5 is a POWER4+-based 64-bit PowerPC, which was supported until Go 1.9: see #19074 for more. We at Adélie have a ppc32 builder that could potentially be used for CI if this went anywhere. |
any update about go with 32 bit for g4/g3 ? |
I'm interested in create backend for ppc32, but currently I only have POWER8. I need to try build and run ppc32 binaries on my machine. |
Linux installs on 64-bit PowerPC can do 32-bit chroots. You can set up a distro that supports ppc32, like Adélie or Debian, into a chroot and work with it there. I don't know if you can cross-endian chroot; I think you will need to be using big-endian PowerPC on the host. |
I want to work with go in openbsd with powerpc g3/g4. |
I'm interested in ppc32 in order to use prometheus node_exporter on a Dell/Cumulus switch |
I'm interested in order to build restic backup on a MacMini PPC 7450. |
I'll make a note that if you're using Linux and glibc, gcc-go works fine on PPC32. It does not yet work properly on musl, but I'm investigating that. This way we have a platform to bootstrap golang with, if there is ever such a backend. |
Interested by PPC32 here for "qoriq" Synology architectures |
Also interested in this for deployment of Go code, including but not limited to Prometheus node_exporter & blackbox_exporter on PPC32-based network switches. |
@ianlancetaylor Having read up on #19074 and #24358, and fumbling slightly in the dark here except for knowing that I'd definitely would like to be able to build go apps for ppc32, it seems based on your comment alone that all that is required in order to enable this support is:
But given those two referenced tickets, is there opposition within the go community against having ppc32 supported? ppc32 runs on millions of devices, not only Wii's but various network devices with either Linux or BSD. I believe the use case me and @travbrack lists could see see significant adoption (for some value of significant). If those two items are the "only" things required, perhaps I'd be interested in helping out. I can definitely provide a few linux & bsd-builders, but I would absolutely need help with the second point. |
I can help testing with openbsd in ppc32 and 64 . (macppc , old powerpc apple) |
Yes, having a builder and doing the work are all that is required. But maybe I should use scare quotes around "all" because the work is not trivial. I can't think of any reason why anybody would be opposed to adding ppc32 support to Go. It seems like a good idea to me. |
I'll note again here that any ppc64 (big endian) host can function as a ppc32 builder with a simple chroot. That's what we're doing at Adélie to take advantage of the build speed of POWER9 hardware. You'll just have to be careful to not use any newer ISA instructions, since ppc32 goes back to at least the 700. (Not sure if the 4xx and 6xx would be supported by Go. Very popular in embedded still.) |
The devices I'm looking at, I believe have 7xx, and it is exactly the fear (due to my ignorance) of accidentally using too new instruction sets that made me believe some Wii or similar would be an apt 7xx builder. But with less ignorance I guess newer hardware can be used as you say @awilfox. The big unknown for me is: where to even start looking at the scope of adding an arch to "cmd/compiler". @ianlancetaylor is non-trivial order of 100 hours, 1000 hours or more? |
The length of time it takes is very hard to say, since it depends on how much you know about compilers already and how well you understand the PPC/PPC64 architecture. Adding PPC32 support should be much simpler than supporting a new architecture from scratch, since it will be very similar to the existing PPC64 support. The length of time is not really in doing the actual work; it is in understanding what has to be done. |
I'm not sure exactly how to set it up to be usable in this role, but I have an iBook G3 with a PPC750 running Adélie Linux that I could probably be convinced to turn in to a builder. (Or, I could simply smoketest on it when asked.) |
Hi everybody. I can help with testing in PowerMac dual G5, iMac G4 & PowerBook G4, all with Ubuntu 16.04.5:
|
SynoCommunity#1011 (comment) and Go has no ppc32 support: golang/go#22885
Synology has no PPC64 devices and Go has no ppc32 support golang/go#22885
* Fix script having 0 bytes after wget failes to get an IP Use the cached file to fix the 0 byte file on upgrade Can also be upgraded in the future * Address issues raised #3501 (comment) * Disable online checks after saving file and reduce netprobe_timeout * This decreases the boot time when offline (e.g setting up a new network) * Should also reduce long service status updates in the package center. Also allow the user to change the logfile location and the ability to disable it * PPC is unsupported #1011 (comment) and Go has no ppc32 support: golang/go#22885 * dnscrypt-proxy 2.0.19
Interested by PPC32 for "ppc853x" Synology architectures |
Cisco IE4000 supports running Docker containers but the platform is ppc32, AFAICT. |
I own a Synology DS413 (https://en.wikichip.org/wiki/freescale/qoriq/p1022) so I would also love to be able to cross compile to POWER. Thanks! |
I own a Synology DS213+ and would like to run Syncthing but that requires ppc32 support. Thanks in advance. |
I want to run beats/filebeat in a ppc32 machine, but can not compile it now. |
I have a mac mini G4 here. Running with MacOS 10.5.8 - I can test builds :-) |
Running an eMac. Happy to help with testing! |
I've got a Powerbook G4 and Blue & White iMac G3 both running Void Linux i can help test with. |
I also have access to some ppc32 hardware. |
Quoting this super useful post from Aram Hăvărneanu from https://groups.google.com/d/msg/golang-dev/SRUK7yJVA0c/JeoCRMwzBwAJ "I've done many ports now, so the strategy I use
As you can see, steps 1-14 are done on amd64 (or some other supported -- |
I'm hoping to get OpenWrt support on |
An addendum for all here: If you really need something written in Go compiled for your machine, use gccgo. That's probably the fastest way to get it done without heavy ISA-specific knowledge. It appears there has been success in using gccgo to build Docker on the 440fpu architecture: https://www.mail-archive.com/search?l=golang-nuts@googlegroups.com&q=subject:%22Re%5C%3A+%5C%5Bgo%5C-nuts%5C%5D+Port+to+powerpc+440fpu%22&o=newest |
While it does not fall under the scope of the original issue, it looks like ppc32 gccgo is going OK on the go-nuts mailing list for building Docker. |
... more information here about how they are going about developing and debugging gccgo compilation on ppc32: https://www.mail-archive.com/golang-nuts@googlegroups.com/msg39718.html |
I do not know how much this is appropriate, I also had access to powerpc machines, on which I installed ubuntu linux and successfully built Docker 1.10.3, and as you know, docker is written in go. And everything works successfully. |
Any updates for PowerPC Darwin? |
No, that was Linux. I'm maintaining Debian for 32-bit PowerPC and 64-bit PowerPC (both big-endian). Didn't know there was someone working on a 32-bit PowerPC port. I assume this could share a lot of code from the 64-bit PowerPC port but I don't have much hope that Google is accepting support for older hardware. :( |
@glaubitz Do you have an idea what will be needed to add powerpc-apple-darwin support? Given hardware is supported, should be possible, I guess. P. S. @catap Tagging you just to keep updated. |
@glaubitz Sorry to bother again, do you have a ppc32 version working on Debian? I went to look into your repo, and it seems that ppc32 is either missing or I need to pick some other branch: https://github.com/glaubitz/go/tree/master/src/cmd/asm/internal/arch (only ppc64 here) |
Has anyone made gccgo work on PowerPC Mac OS yet? |
@programmingkidx I would also like to know that. @iains Could you please say if |
I haven't worked on the code for a long time since gccgo works reasonably well with gcc-12 and builds most packages these days. |
gccgo does not work on any version of OSX or macOS : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 (we just do not have sufficient developer resources to cover everything - actually even the basics can be a stretch at times). |
We have the same problem in Debian. What I have done successfully in the past was to create a Bountysource campaign to get these tasks completed. For example, we raised money to convert the AVR, M68K and VAX backends in GCC to MODE_CC and also to add an M68K backend to LLVM. |
@iains Got it, thank you very much! (Yes, resources problem is totally understandable.) |
Tracking bug for missing PowerPC 32-bit backend. People interested in this can put a👍 reaction here so that we can track interest.
The text was updated successfully, but these errors were encountered: