FAQ
This is really my first post. I searched the net, and it seems to me that
there is no official support for PowerPC yet.

So I managed to build GCCGO (GCC 4.8.4) that runs on linux-amd64 and
targets linux-powerpc, and intended to use GCCGO whenever I need to use GC.
I had libgo.so as well. I built a simple program with my GCCGO that could
then run on linux-powerpc successfully.

However, I needed to build the packages that come with Go. Go's build
script "make.bash" uses cmd/dist and go_bootstrap and so on. I then built
cmd/dist for powerpc. But it seems that I needed to modify its source code
to support "linux.powerpc" and such. There seems to be a long journey
ahead, and I really do not know if that is the right direction.l.. So I am
here to ask if anyone tried similar things and would like to shed me some
light.

Thanks in advance.

James

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Daniel Theophanes at Apr 8, 2015 at 5:40 pm
    Go 1.5 will support ppc 64-bit. Support is in tip right now, once you get
    tip and can compile (have a reference 1.4 build ready), cross compile to
    ppc, or wait for 1.5 to officially come out.

    -Daniel

    On Wednesday, April 8, 2015 at 10:24:56 AM UTC-7, James Huang wrote:

    This is really my first post. I searched the net, and it seems to me that
    there is no official support for PowerPC yet.

    So I managed to build GCCGO (GCC 4.8.4) that runs on linux-amd64 and
    targets linux-powerpc, and intended to use GCCGO whenever I need to use GC.
    I had libgo.so as well. I built a simple program with my GCCGO that could
    then run on linux-powerpc successfully.

    However, I needed to build the packages that come with Go. Go's build
    script "make.bash" uses cmd/dist and go_bootstrap and so on. I then built
    cmd/dist for powerpc. But it seems that I needed to modify its source code
    to support "linux.powerpc" and such. There seems to be a long journey
    ahead, and I really do not know if that is the right direction.l.. So I am
    here to ask if anyone tried similar things and would like to shed me some
    light.

    Thanks in advance.

    James
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Ian Lance Taylor at Apr 8, 2015 at 7:07 pm

    On Wed, Apr 8, 2015 at 10:24 AM, James Huang wrote:
    So I managed to build GCCGO (GCC 4.8.4) that runs on linux-amd64 and targets
    linux-powerpc, and intended to use GCCGO whenever I need to use GC. I had
    libgo.so as well. I built a simple program with my GCCGO that could then run
    on linux-powerpc successfully.

    However, I needed to build the packages that come with Go. Go's build script
    "make.bash" uses cmd/dist and go_bootstrap and so on. I then built cmd/dist
    for powerpc. But it seems that I needed to modify its source code to support
    "linux.powerpc" and such. There seems to be a long journey ahead, and I
    really do not know if that is the right direction.l.. So I am here to ask if
    anyone tried similar things and would like to shed me some light.
    1) Go 1.5 will support PPC64.

    2) When you build gccgo, it comes with a complete copy of the Go
    standard library. There is no reason to build gccgo and then run
    cmd/dist or make.bash. You can just use gccgo.

    Ian

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedApr 8, '15 at 5:25p
activeApr 8, '15 at 7:07p
posts3
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase