Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Skip main navigation (Press Enter).
Toggle navigation
Home
Groups
Events
Upcoming Community Events
All Community Events
Go
IBM Z and LinuxONE - Languages
View Only
Home
Blog entries
35
Discussions
96
Events
0
Library
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
Supported target z/OS and zArchitecture levels for running Golang binaries on z/OS
Petr Plavjanik
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 ...
Bill O'Farrell
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 ...
1.
Supported target z/OS and zArchitecture levels for running Golang binaries on z/OS
0
Like
Petr Plavjanik
Posted Tue November 23, 2021 04:38 AM
Reply
Options Dropdown
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
0
Like
Bill O'Farrell
Posted Thu November 25, 2021 03:05 PM
Reply
Options Dropdown
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
------------------------------
Original Message
Original Message:
Sent: Tue November 23, 2021 03:48 AM
From: Petr Plavjanik
Subject: Supported target z/OS and zArchitecture levels for running Golang binaries on z/OS
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
------------------------------
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Copyright 2024 IBM Z and LinuxONE Community. All rights reserved.
Powered by Higher Logic
×
Group Tags
Add a tag
x
User Tags may not contain the following characters: @ # $ & :