PPC64

154 views
Skip to first unread message

Dennis Byrne

unread,
Aug 11, 2016, 5:12:11 PM8/11/16
to Consul, Jim Saiveau, Jim Saiveau, gl...@uline.com, Mayank Joshi
Is there a consul binary for PPC64 or PPC64le? If not is there a mechanism to compile one?

James Phillips

unread,
Aug 13, 2016, 3:38:30 AM8/13/16
to consu...@googlegroups.com, Jim Saiveau, Jim Saiveau, gl...@uline.com, Mayank Joshi
Hi Dennis,

We don't officially build one for that architecture, but something like this run from the top of a Consul checkout should build one:

gox -os=linux -arch=ppc64 -output=consul-ppc

Hope that helps!

-- James

On Thu, Aug 11, 2016 at 2:12 PM, Dennis Byrne <dbyr...@gmail.com> wrote:
Is there a consul binary for PPC64 or PPC64le? If not is there a mechanism to compile one?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/a452e2c2-bbd0-4789-9e0a-5e17c4171b5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dennis Byrne

unread,
Aug 13, 2016, 12:40:05 PM8/13/16
to consu...@googlegroups.com
Not sure we have go installed properly madee, but it gox does not seem to pickup ppc64

javauser@dev1:/work/src/github.com/hashicorp/consul$ gox -os=linux -arch=ppc64 -output=consul-ppc
Number of parallel builds: 4


Nothing gets built from our ubuntu machine and gox/go are not in the BigEndian repo from ibm


You received this message because you are subscribed to a topic in the Google Groups "Consul" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/consul-tool/9riF83kgLG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to consul-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/CAGoWc04Z19sGCHy4QDpj7MicutozNsb7yMbcW%3DjiTma_epNXkQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Dennis Byrne

James Phillips

unread,
Aug 13, 2016, 1:46:27 PM8/13/16
to consu...@googlegroups.com
Hmm - I was able to build it on Mac OS X. Consul is pure Go so you should be able to cross-compile from any platform that you can run the Go tools on. Here's how it looked:

james@workpad consul(master)* $ go version
go version go1.6.3 darwin/amd64

james@workpad consul(master)* $ go get -u github.com/mitchellh/gox

james@workpad consul(master)* $ gox -os=linux -arch=ppc64 -output=consul-ppc
Number of parallel builds: 3

-->     linux/ppc64: github.com/hashicorp/consul

james@workpad consul(master)* $ file consul-ppc
consul-ppc: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, not stripped


Dennis Byrne

unread,
Aug 14, 2016, 9:26:53 AM8/14/16
to consu...@googlegroups.com
I think its an issue with GOX. I was able to get it to work with this..
env GOOS=linux GOARCH=ppc64 go build main.go commands.go version.go


I tried building gox from source and all other options with not luck. We tried on several new ubuntu 16.04 installs as well. It was very odd.

Thanks again for all the help


For more options, visit https://groups.google.com/d/optout.



--
Dennis Byrne

Torsten Reichert

unread,
Sep 7, 2017, 12:52:35 PM9/7/17
to Consul
No, it did not work:

#     gox -os=linux -arch=ppc64 -output=consul-ppc

Number of parallel builds: 31

-->     linux/ppc64: github.com/hashicorp/consul

1 errors occurred:
--> linux/ppc64 error: exit status 2
Stderr: # github.com/hashicorp/consul/vendor/github.com/shirou/gopsutil/host
vendor/github.com/shirou/gopsutil/host/host_linux.go:140: undefined: sizeOfUtmp
vendor/github.com/shirou/gopsutil/host/host_linux.go:145: undefined: sizeOfUtmp
vendor/github.com/shirou/gopsutil/host/host_linux.go:147: undefined: utmp

Kind regards

Dave Johnson

unread,
Jan 22, 2018, 10:19:08 AM1/22/18
to Consul
I was able to get it working with the following command:
 gox -os=linux -arch=ppc64le -output=consul-ppc

Reply all
Reply to author
Forward
0 new messages