Go

Expand all | Collapse all

Supported target z/OS and zArchitecture levels for running Golang binaries on z/OS

  • 1.  Supported target z/OS and zArchitecture levels for running Golang binaries on z/OS

    Posted Tue November 23, 2021 04:38 AM
    What are the supported target z/OS levels (2.3, 2.4, 2.5) where compiled binaries can run? And what architectures (IBM z15, IBM z14...)? Are there similar options for the Go compiler like TARGET and ARCHITECTURE in the IBM XL C/C++ compiler? The documentation (Installing and configuring the PAX edition - IBM Documentation) explains what is needed for the compiler. I would like to know what is necessary for the compiled binaries to run. Is it the same or not everything is needed to run binaries? I expect that XL C/C++ V2.4.1 is not necessary and not all APARs are needed at runtime? Can I run Golang binaries on 2.3?

    ------------------------------
    Petr Plavjanik
    ------------------------------


  • 2.  RE: Supported target z/OS and zArchitecture levels for running Golang binaries on z/OS

    Posted Thu November 25, 2021 03:05 PM
    SDK for Go on z/OS Version 1.16 is supported on 2.4 and above, both for compilation and running. So a program compiled on 2.4 should run fine on 2.5. Go supports z196 and later machines. There are no options for TARGET and ARCHITECTURE or anything else - Go generally eschews these kinds of build parameters. Go programs are statically linked, so they carry all their dependencies with them, which means that even a Go program with CGO can run on a system with no C compiler installed. Also, once compiled, programs shouldn't need the Compiler or Binder APARS. Go programs can be run on 2.3 at your own risk because it is not a supported configuration.

    ------------------------------
    Bill O'Farrell
    ------------------------------