Bug 1427871

Summary: FTBFS on s390x due outdated sys
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: originAssignee: Adam Miller <admiller>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, hannsj_uhl, sjenning, tdawson
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: origin-1.5.0-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-27 18:38:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    

Description Dan Horák 2017-03-01 12:48:06 UTC
Build on s390x fails with

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3sPq7u
GOLANG DEBUG OUTPUT
+ umask 022
+ cd /builddir/build/BUILD
+ cd origin-3f9807ab8282e1af64128834b246c41ce50172d4
+ echo 'GOLANG DEBUG OUTPUT'
+ go version
go version go1.8 linux/s390x
+ BUILD_PLATFORM=linux/s390x
+ OS_ONLY_BUILD_PLATFORMS=linux/s390x
+ OS_GIT_TREE_STATE=clean
+ OS_GIT_VERSION=v1.4.1
+ OS_GIT_COMMIT=3f9807a
+ OS_GIT_MAJOR=1
+ OS_GIT_MINOR=3
+ hack/build-cross.sh
++ Building go targets for linux/s390x: images/pod cmd/dockerregistry cmd/gitserver pkg/sdn/plugin/sdn-cni-plugin vendor/github.com/containernetworking/cni/plugins/ipam/host-local vendor/github.com/containernetworking/cni/plugins/main/loopback examples/hello-openshift examples/deployment
# github.com/openshift/origin/vendor/golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/flock.go:18: undefined: Flock_t
vendor/golang.org/x/sys/unix/sockcmsg_linux.go:14: undefined: Ucred
vendor/golang.org/x/sys/unix/sockcmsg_linux.go:27: undefined: Ucred
vendor/golang.org/x/sys/unix/sockcmsg_unix.go:42: undefined: Cmsghdr
[ERROR] PID 26653: hack/common.sh:341: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${OS_OUTPUT_PKGDIR}" "${goflags[@]:+${goflags[@]}}" "${platform_goflags[@]:+${platform_goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]}"` exited with status 2.
[INFO] 		Stack Trace: 
[INFO] 		  1: hack/common.sh:341: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${OS_OUTPUT_PKGDIR}" "${goflags[@]:+${goflags[@]}}" "${platform_goflags[@]:+${platform_goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]}"`
[INFO] 		  2: hack/common.sh:275: os::build::internal::build_binaries
[INFO] 		  3: hack/common.sh:261: os::build::build_binaries
[INFO] 		  4: hack/build-cross.sh:40: os::build::build_static_binaries
[INFO]   Exiting with code 2.
[ERROR] PID 26465: hack/common.sh:272: `( os::build::internal::build_binaries "${binaries[@]+"${binaries[@]}"}" )` exited with status 2.
[INFO] 		Stack Trace: 
[INFO] 		  1: hack/common.sh:272: `( os::build::internal::build_binaries "${binaries[@]+"${binaries[@]}"}" )`
[INFO] 		  2: hack/common.sh:261: os::build::build_binaries
[INFO] 		  3: hack/build-cross.sh:40: os::build::build_static_binaries
[INFO]   Exiting with code 2.
error: Bad exit status from /var/tmp/rpm-tmp.3sPq7u (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.3sPq7u (%build)
Child return code was: 1
EXCEPTION: [Error()]

which is AFAIK caused by outdated sys package (somewhere), kubernetes has similar/same problem.

Version-Release number of selected component (if applicable):
origin-1.4.1-1.fc26

Comment 1 Dan Horák 2017-03-01 12:49:34 UTC
recent build task is https://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2508526

Comment 2 Dan Horák 2017-04-27 18:38:45 UTC
not a problem any more with origin-1.5.0-1.fc27