8000 Fails to build man pages on x86 in 32bit chroot · Issue #3112 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Fails to build man pages on x86 in 32bit chroot #3112

Open
onlyjob opened this issue Aug 24, 2016 · 7 comments
Open

Fails to build man pages on x86 in 32bit chroot #3112

onlyjob opened this issue Aug 24, 2016 · 7 comments

Comments

@onlyjob
Copy link
onlyjob commented Aug 24, 2016

On Debian GNU/Linux i686 make manpages fails as follows on i386 (a.k.a. x86_32):

ls /build/rkt-1.13.0+dfsg/_build/src/github.com/coreos/rkt/build-rkt-1.13.0/gopath/src/github.com/coreos/rkt/rkt/*.go | \ 
        grep -vE '_test.go|main.go|_gen.go|_stub.go' | \ 
        GO15VENDOREXPERIMENT=1 GOARCH="amd64" CGO_ENABLED=1 CC="gcc" CXX="g++" GOPATH="/build/rkt-1.13.0+dfsg/_build/src2" GOARCH=amd64 CC= xargs "go" run /build/rkt-1.13.0+dfsg/_build/src/github.com/coreos/rkt/build-rkt-1.13.0/gopath/src/github.com/coreos/rkt/rkt/manpages_gen.go 
# runtime/cgo 
In file included from /usr/include/stdlib.h:24:0, 
                 from $WORK/runtime/cgo/_obj/_cgo_export.c:2: 
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory 
 #  include <sys/cdefs.h> 
                         ^ 
compilation terminated. 

On amd64 (a.k.a. x86_64) it works so we have a build problem at least on x86_32...

@lucab
Copy link
Member
lucab commented Aug 25, 2016

GOARCH="amd64"

If it is building on a real x86_32, the line above looks a bit suspicious. Is this some kind of cross-compiling environment perhaps?

@onlyjob
Copy link
Author
onlyjob commented Aug 25, 2016

Just a clean 32 chroot on 64 host (pbuilder). Nothing to worry about though it should work and therefore ought to be fixed.

@lucab
Copy link
Member
lucab commented Aug 25, 2016

It looks like the configure is getting confused about this setup and you are ending in a strange scenario. Are you by chance passing a --host (or similar) flag to the configure? Can you please attach the config.log from inside the chroot?

@lucab lucab changed the title 1.13.0: FTBFS: fails to build man pages on i686 Fails to build man pages on x86 in 32bit chroot Aug 25, 2016
@onlyjob
Copy link
Author
onlyjob commented Aug 26, 2016

Right, it is actually builds on raw i386... Somehow build scripts became confused when run in pbuilder... It used to work in the past. Somehow build systems seems to became more sensitive to build environment... I'll experiment more and report back.

@lucab
Copy link
Member
lucab commented Aug 26, 2016

/cc @glevand @krnowak

@lucab
Copy link
Member
lucab commented Aug 29, 2016

I see 1.13.0 has been properly built on Debian autobuilders, which confirms this is somehow confined to pbuilder chroot.

@onlyjob: just for an heads-up, ppc64 support will come with #2936 and s390x will follow soon in appc appc/spec#651. Both require a newer appc/spec version.

@lucab lucab modified the milestones: v1.15.0, v1.14.0 Sep 1, 2016
@s-urbaniak
Copy link
Contributor

@onlyjob pinging, do you have some feedback from the build env? Until then, I am bumping this to the next release.

@s-urbaniak s-urbaniak modified the milestones: v1.16.0, v1.15.0 Sep 15, 2016
@lucab lucab modified the milestones: v1+, v1.16.0 Sep 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants
0