[Slackbuilds-users] installing xen 4.3.0 - building error

Chris chris at teria.org
Tue Oct 29 23:38:48 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hi Mario,

Thanks for reporting successful building on your side. I made researchs and it appears this issue is linked with the version of "gmp" downloaded by Xen during stubdom compilation (no "gmp" downloaded with Xen 4.2.x)

My compilation environment : clean slackware64-14.0 (no multilib) on a KVM VM 
- - "uname -p" : "QEMU Virtual CPU version 1.0"
- - "uname -m" : "x86_64"
- - "uname -r" : "3.2.45"

Here is what's returned by the "config.guess" of gmp-4.3.2 (carried by Xen) : pentium2-unknown-linux-gnu
With gmp-5.0.5 (the version in slackware64-14.0), "config.guess" returns : x86_64-unknown-linux-gnu 
And the return of "config.guess" whith gmp-5.1.3 (last available release) : x86_64-unknown-linux-gnu

"pentium2-unknown-linux-gnu" leads to set "ABI=32", hence the failed compilation on a pure x86_64 system.

Same problem : http://comments.gmane.org/gmane.linux.lfs.support/30942

Setting the "--build=" option at configure for "gmp-4.3.2" prevents from guessing the wrong arch at least in a KVM compilation environment.

Regards,

- --
Chris



On Tue, 29 Oct 2013 16:04:44 +0100
Mario <mario at slackverse.org> wrote:

> On 10/29/2013 03:50 PM, Robby Workman wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Mario?
> >
> > - -RW
> >
> > On Tue, 29 Oct 2013 02:48:49 +0100
> > Chris <chris at teria.org> wrote:
> >
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Hi Mario,
> >>
> >> While trying to build xen-4.3.0 on slackware64-14.0, I encountered
> >> this error :
> >>
> >> tar xjf gmp-4.3.2.tar.bz2
> >> rm gmp-x86_64 -rf || :
> >> mv gmp-4.3.2 gmp-x86_64
> >> #patch -d gmp-x86_64 -p0 < gmp.patch
> >> cd gmp-x86_64;
> >> CPPFLAGS="-isystem /tmp/SBo/xen-4.3.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include
> >> -D__MINIOS__ -DHAVE_LIBC
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/posix
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../tools/xenstore
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/x86
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/x86/x86_64
> >> -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/posix
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include
> >> -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/lwip-x86_64/src/include
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/lwip-x86_64/src/include/ipv4
> >> -I/tmp/SBo/xen-4.3.0/stubdom/include
> >> -I/tmp/SBo/xen-4.3.0/stubdom/../xen/include" CFLAGS="-mno-red-zone
> >> -O1 -fno-omit-frame-pointer  -m64 -mno-red-zone -fno-reorder-blocks
> >> -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing
> >> -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
> >> -Wno-unused-but-set-variable -Wno-unused-local-typedefs
> >> -fno-stack-protector -fno-exceptions" CC=gcc  ./configure
> >> --disable-shared --enable-static --disable-fft --without-readline
> >> --prefix=/tmp/SBo/xen-4.3.0/stubdom/cross-root-x86_64/x86_64-xen-elf
> >> checking build system type... pentium2-unknown-linux-gnu checking
> >> host system type... pentium2-unknown-linux-gnu checking for a
> >> BSD-compatible install... /usr/bin/ginstall -c checking whether build
> >> environment is sane... yes checking for gawk... gawk checking whether
> >> make sets $(MAKE)... yes checking whether to enable
> >> maintainer-specific portions of Makefiles... no checking ABI=32
> >> checking compiler gcc -mno-red-zone -O1 -fno-omit-frame-pointer  -m64
> >> -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables
> >> -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> >> -Wdeclaration-after-statement -Wno-unused-but-set-variable
> >> -Wno-unused-local-typedefs   -fno-stack-protector -fno-exceptions
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include
> >> -D__MINIOS__ -DHAVE_LIBC
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/posix
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../tools/xenstore
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/x86
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/x86/x86_64
> >> -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/../extras/mini-os/include/posix
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include
> >> -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/lwip-x86_64/src/include
> >> -isystem /tmp/SBo/xen-4.3.0/stubdom/lwip-x86_64/src/include/ipv4
> >> -I/tmp/SBo/xen-4.3.0/stubdom/include
> >> -I/tmp/SBo/xen-4.3.0/stubdom/../xen/include... yes checking compiler
> >> gcc -mno-red-zone -O1 -fno-omit-frame-pointer  -m64 -mno-red-zone
> >> -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g
> >> -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> >> -Wdeclaration-after-statement -Wno-unused-but-set-variable
> >> -Wno-unused-local-typedefs   -fno-stack-protector -fno-exceptions has
> >> sizeof(long)==4... no configure: error: could not find a working
> >> compiler, see config.log for details make[1]: *** [gmp-x86_64] Error
> >> 1 make[1]: Leaving directory `/tmp/SBo/xen-4.3.0/stubdom' make: ***
> >> [install-stubdom] Error 2
> >>
> >> The compilation of stubdom's gmp fails.
> >>
> >> I don't know if it's a good patch but this one solves the issue :
> >>
> >> - --- xen-4.3.0/stubdom/Makefile.orig	2013-10-29
> >> 01:05:51.657297329 +0100 +++ xen-4.3.0/stubdom/Makefile
> >> 2013-10-29 01:06:08.252296374 +0100 @@ -165,7 +165,7 @@
> >>   	rm $@ -rf || :
> >>   	mv gmp-$(GMP_VERSION) $@
> >>   	#patch -d $@ -p0 < gmp.patch
> >> - -	cd $@; CPPFLAGS="-isystem
> >> $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include
> >> $(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" CC=$(CC)
> >> $(GMPEXT) ./configure --disable-shared --enable-static --disable-fft
> >> --without-readline --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf
> >> +	cd $@; CPPFLAGS="-isystem
> >> $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include
> >> $(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" CC=$(CC)
> >> $(GMPEXT) ./configure --disable-shared --enable-static --disable-fft
> >> --without-readline
> >> --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf
> >> --build=$(XEN_TARGET_ARCH)-slackware-linux sed -i 's/#define
> >> HAVE_OBSTACK_VPRINTF 1/\/\/#define HAVE_OBSTACK_VPRINTF 1/'
> >> $@/config.h touch $@
> >>
> >> Regards,
> >>
> >> - --
> >> Chris
> >> -----BEGIN PGP SIGNATURE-----
> >> Version: GnuPG v1.4.15 (GNU/Linux)
> >>
> >> iEYEARECAAYFAlJvFAEACgkQGXsBKIq5oxR+MACgiSx8sS7HNTSVKWBtjC7VhywA
> >> ATIAn13ViUcP5QC8iBwd0GTLiN1LmMsJ
> >> =9V9r
> >> -----END PGP SIGNATURE-----
> >> _______________________________________________
> >> SlackBuilds-users mailing list
> >> SlackBuilds-users at slackbuilds.org
> >> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> >> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> >> FAQ - http://slackbuilds.org/faq/
> >>
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v2.0.22 (GNU/Linux)
> >
> > iEYEARECAAYFAlJvyzMACgkQvGy9tf6lsvuT3gCdHUTJYKOmxSGBwf/qvWwYFdEX
> > i8kAoKcoSzhXvEa6Ysr7MYme5Nn4EXUO
> > =Wt1u
> > -----END PGP SIGNATURE-----
> >
> 
> It compiles fine over here, in fact, I have been using it in production 
> for a while now, but I will look into it when I get home later.
> 
> -- 
> Mario
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iEYEARECAAYFAlJwRwgACgkQGXsBKIq5oxSj6wCfYMLZgoVy5cEjG4s+dQfhAQm+
6KcAn1Juhmun4/KQgxzqy9d/cJcv2TlN
=VKSV
-----END PGP SIGNATURE-----


More information about the SlackBuilds-users mailing list