Profile cover photo
Profile photo
Kurt Stam
106 followers
106 followers
About
Kurt's posts

Compile OpenShift on ARM 64

Hi guys,

I'm trying to build Origin on arm64, on the new RPi 3. The hack/common.sh contains the architecture targets being:

https://github.com/KurtStam/origin/blob/master/hack/common.sh#L43-L46

linux/amd64
darwin/amd64
windows/amd64
linux/386

How do I make it compile on arm64, where the env is linux/arm. I tried adding this target and commented out the others but got:

root@raspberrypi:~/go/src/github.com/openshift/origin# make clean build
rm -rf _output Godeps/_workspace/pkg
hack/build-go.sh
++ Building go targets for linux/arm: cmd/openshift cmd/oc
# github.com/docker/libcontainer/seccomp Godeps/_workspace/src/github.com/docker/libcontainer/seccomp/filter.go:91: undefined: jumpEqualTo
Godeps/_workspace/src/github.com/docker/libcontainer/seccomp/filter.go:93: undefined: jumpNotEqualTo
Godeps/_workspace/src/github.com/docker/libcontainer/seccomp/filter.go:95: undefined: jumpGreaterThan
Godeps/_workspace/src/github.com/docker/libcontainer/seccomp/filter.go:97: undefined: jumpLessThan
Godeps/_workspace/src/github.com/docker/libcontainer/seccomp/filter.go:99: undefined: jumpMaskEqualTo
!!! Error in hack/../hack/common.sh:183
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${binaries[@]}"' exited with status 2
Call stack:
1: hack/../hack/common.sh:183 os::build::build_binaries(...)
2: hack/build-go.sh:31 main(...)
Exiting with status 1
!!! Error in hack/../hack/common.sh:155
'( os::build::setup_env; local version_ldflags; version_ldflags=$(os::build::ldflags); local goflags; eval "goflags=(${OS_GOFLAGS:-})"; local arg; for arg in "$@";
do
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}");
fi;
done; os::build::export_targets "$@"; local platform; for platform in "${platforms[@]}";
do
os::build::set_platform_envs "${platform}"; echo "++ Building go targets for ${platform}:" "${targets[@]}"; go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${binaries[@]}"; os::build::unset_platform_envs "${platform}";
done )' exited with status 1
Call stack:
1: hack/../hack/common.sh:155 os::build::build_binaries(...)
2: hack/build-go.sh:31 main(...)
Exiting with status 1
Makefile:31: recipe for target 'build' failed
make: * [build] Error 1
root@raspberrypi:~/go/src/github.com/openshift/origin# go env
GOARCH="arm"
GOBIN=""
GOCHAR="5"
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/root/go/src/go.googlesource.com/go"
GOTOOLDIR="/root/go/src/go.googlesource.com/go/pkg/tool/linux_arm"
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

Post has attachment
My article on opensource.com is live!

Post has attachment

Post has attachment
Fabric8ing some legos together. The community around the Open Source projects is what makes all the difference. Getting this to work marks the beginning of a whole new area in cloud computing where both the hardware and software are Open. This and the low price of this solutions makes this 'disruptive technology'. The https://github.com/Project31 is there to bundle our efforts, come over and contribute!

Post has shared content

Post has attachment
This is our proposal to standardize a convention around some Kubernetes Service Annotations to facilitate consuming a micro service running on Kubernetes.

Post has attachment

Post has attachment
Getting started with Fabric8 and OpenShift v3 on OSX

Post has attachment
Pi-oneering on the Raspberry PI 2 - part 1: Getting Docker to run.

Post has attachment
Pi-oneers! Programming scratch at the moment waiting for a Pidora arm image to come down.
Photo
Wait while more posts are being loaded