dsifjgogw48491752
dsifjgogw48491752
2017-08-03 09:38
浏览 130
已采纳

前往:无法在powerpc64(big-endian)上运行

I have downloaded the GO package(ppc64) for the PowerPC 64 machine.When I run the go it throws the following error:

./go: line 1:ELF▒9@p@8: not found
./go: line 2: syntax error: unexpected ")"

Machine information is like below,

uname -a
Linux 0005B9427C4C 3.12.19-rt30 #1 SMP Sun Jul 2 16:21:28 IST 2017 ppc64 GNU/Linux

From /proc/cpuinfo: processor : 0 cpu : e6500, altivec supported clock : 1599.999984MHz revision : 2.0 (pvr 8040 0120)

processor       : 1
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

processor       : 2
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

processor       : 3
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

processor       : 4
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

processor       : 5
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

processor       : 6
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

processor       : 7
cpu             : e6500, altivec supported
clock           : 1599.999984MHz
revision        : 2.0 (pvr 8040 0120)

timebase        : 41666666
platform        : CoreNet Generic
model           : fsl,B4860QDS

I have downloaded the go1.8.3.linux-ppc64le.tar.gz package from https://golang.org/dl/.

I have searched a lot but could not find any solution. Can you tell me what is going wrong?How to fix it?

图片转代码服务由CSDN问答提供 功能建议

我已经下载了PowerPC 64计算机的GO软件包(ppc64)。当我运行go时,它将引发以下错误 错误:

  ./ go:第1行:ELF▒9@ p @ 8:找不到
./go:第2行:语法错误:意外的“)” \  n   
 
 

机器信息如下,

  uname -a 
Linux 0005B9427C4C 3.12.19-rt30#1 SMP  Sun Jul 2 16:21:28 IST 2017 ppc64 GNU / Linux 
   
 
 

来自/ proc / cpuinfo: 处理器:0 cpu:e6500,altivec受支持 时钟:1599.999984MHz 版本:2.0(pvr 8040 0120)

 处理器:1 
cpu:e6500,altivec支持
clock:1599.999984MHz 
revision:2.0(  pvr 8040 0120)
 
处理器:2 
cpu:e6500,altivec支持
clock:1599.999984MHz 
修订版:2.0(pvr 8040 0120)
 
处理器:3 
cpu:e6500,altivec支持
clock  :1599.999984MHz 
版本:2.0(pvr 8040 0120)
 
处理器:4 
cpu:e6500,altivec支持
clock:1599.999984MHz 
版本:2.0(pvr 8040 0120)
 
处理器:5 
cpu:e6500, 支持altivec 
clock:1599.999984MHz 
版本:2.0(pvr 8040 0120)
 
处理器:6 
cpu:e6500,支持altivec 
clock:1599.999984MHz 
revision:2.0(pvr 8040 0120)
 
处理器:7 \  ncpu:e6500,受altivec支持
clock:1599.999984MHz 
修订:2.0(pvr 8040 0120)
 
时基:41666666 
平台:CoreNet通用
模型:fsl,B4860QDS 
   
 \  n 

我已经从 https:// golang下载了go1.8.3.linux-ppc64le.tar.gz软件包。 org / dl /

我进行了很多搜索,但找不到任何解决方案。 您能告诉我怎么了吗?如何解决?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douzengjian1535
    douzengjian1535 2017-08-03 11:26
    已采纳

    Your kernel reports the ppc64 architecture. This means it is 64-bit POWER in big endian mode. The Go project only publishes ppc64le (64-bit POWER in little endian mode) builds: Go stable downloads only offers a go1.8.3.linux-ppc64le.tar.gz download.

    The Go sources contain a 64-bit POWER big-endian port, but you need to compile it yourself. (But this is definitely off the beaten path, so you might run into issues.) Note that Go 1.9 will require POWER8 even in big-endian mode, so depending on the hardware you have, even a self-compiled version could be a dead-end. (e6500 in the /proc/cpuinfo output suggests that this platform is not POWER8-compatibile.)

    Another option is the GCC Go compiler (gccgo). This Go compiler will work with many GCC targets, and the chances are good that it will remain supported to some degree in the foreseeable future. However, few Go programmers care about gccgo, so you might encounter packages which do not work with it.

    点赞 评论

相关推荐