Crosscompile on Linux for AIX/PPC64 - did not run - coredump

build a binary for AIX but did not run

Illegal instruction(coredump)

file on AIX say:

file hello_world-ppc64-aix
hello_world-ppc64-aix: 64-bit XCOFF executable or object module not stripped

when do a file of a AIX binary:

file /usr/bin/bash
/usr/bin/bash: executable (RISC System/6000) or object module

How to setup the compile process to build the it work for AIX ?

here is my compile command:
GOOS=“aix” GOARCH=“ppc64” go build -o hello_world-ppc64-aix hello_world.go

What did I wrong ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.