* Problems building qemu-xen-dir tools
@ 2012-09-18 14:28 Steven Haigh
2012-09-18 14:35 ` Olaf Hering
0 siblings, 1 reply; 5+ messages in thread
From: Steven Haigh @ 2012-09-18 14:28 UTC (permalink / raw)
To: xen-devel
Hi all,
I've noticed I have had to apply the following patch to get tools to
compile properly under an EL6 environment:
--- xen-4.2.0.orig/tools/Makefile 2012-09-17 20:21:18.000000000 +1000
+++ xen-4.2.0/tools/Makefile 2012-09-18 18:55:09.989148544 +1000
@@ -187,6 +187,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-fi
source=.; \
fi; \
cd qemu-xen-dir; \
+ env -u CFLAGS \
$$source/configure --enable-xen --target-list=i386-softmmu \
--source-path=$$source \
--extra-cflags="-I$(XEN_ROOT)/tools/include \
Without this, the build fails due to incompatible CFLAGS.
--
Steven Haigh
Email: netwiz@crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Problems building qemu-xen-dir tools 2012-09-18 14:28 Problems building qemu-xen-dir tools Steven Haigh @ 2012-09-18 14:35 ` Olaf Hering 2012-09-18 18:48 ` M A Young 0 siblings, 1 reply; 5+ messages in thread From: Olaf Hering @ 2012-09-18 14:35 UTC (permalink / raw) To: Steven Haigh; +Cc: xen-devel On Wed, Sep 19, Steven Haigh wrote: > Without this, the build fails due to incompatible CFLAGS. CFLAGS must not be in environment, otherwise make will append its own CFLAGS to that environment variable and pass it on to qemu. qemu itself is not ready for things like -std=gnu99. Olaf ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems building qemu-xen-dir tools 2012-09-18 14:35 ` Olaf Hering @ 2012-09-18 18:48 ` M A Young 2012-09-18 21:56 ` Olaf Hering 0 siblings, 1 reply; 5+ messages in thread From: M A Young @ 2012-09-18 18:48 UTC (permalink / raw) To: Olaf Hering; +Cc: Steven Haigh, xen-devel [-- Attachment #1: Type: TEXT/PLAIN, Size: 679 bytes --] On Tue, 18 Sep 2012, Olaf Hering wrote: > On Wed, Sep 19, Steven Haigh wrote: > >> Without this, the build fails due to incompatible CFLAGS. > > CFLAGS must not be in environment, otherwise make will append its own > CFLAGS to that environment variable and pass it on to qemu. qemu itself > is not ready for things like -std=gnu99. The problem is that packaging guidelines often want you to set CFLAGS to supply distribution standard compile options. On the other hand with something like qemu it means that someone has probably already solved the problem. The attached patch worked for me in testing, which I derived by comparing Fedora's qemu with xen's. Michael Young [-- Attachment #2: Type: TEXT/PLAIN, Size: 2046 bytes --] --- xen-4.2.0/tools/qemu-xen/fpu/softfloat-specialize.h 2012-09-10 19:10:52.000000000 +0100 +++ xen-4.2.0/tools/qemu-xen/fpu/softfloat-specialize.h 2012-07-03 15:20:05.000000000 +0100 @@ -89,8 +89,8 @@ #define floatx80_default_nan_low LIT64( 0xC000000000000000 ) #endif -const floatx80 floatx80_default_nan = make_floatx80(floatx80_default_nan_high, - floatx80_default_nan_low); +const floatx80 floatx80_default_nan + = make_floatx80_init(floatx80_default_nan_high, floatx80_default_nan_low); /*---------------------------------------------------------------------------- | The pattern for a default generated quadruple-precision NaN. The `high' and @@ -104,8 +104,8 @@ #define float128_default_nan_low LIT64( 0x0000000000000000 ) #endif -const float128 float128_default_nan = make_float128(float128_default_nan_high, - float128_default_nan_low); +const float128 float128_default_nan + = make_float128_init(float128_default_nan_high, float128_default_nan_low); /*---------------------------------------------------------------------------- | Raises the exceptions specified by `flags'. Floating-point traps can be --- xen-4.2.0/tools/qemu-xen/fpu/softfloat.h 2012-09-10 19:10:52.000000000 +0100 +++ xen-4.2.0/tools/qemu-xen/fpu/softfloat.h 2012-07-03 15:20:05.000000000 +0100 @@ -129,6 +126,7 @@ uint16_t high; } floatx80; #define make_floatx80(exp, mant) ((floatx80) { mant, exp }) +#define make_floatx80_init(exp, mant) { .low = mant, .high = exp } typedef struct { #ifdef HOST_WORDS_BIGENDIAN uint64_t high, low; @@ -137,6 +135,7 @@ #endif } float128; #define make_float128(high_, low_) ((float128) { .high = high_, .low = low_ }) +#define make_float128_init(high_, low_) { .high = high_, .low = low_ } /*---------------------------------------------------------------------------- | Software IEC/IEEE floating-point underflow tininess-detection mode. [-- Attachment #3: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems building qemu-xen-dir tools 2012-09-18 18:48 ` M A Young @ 2012-09-18 21:56 ` Olaf Hering 2012-09-18 23:34 ` M A Young 0 siblings, 1 reply; 5+ messages in thread From: Olaf Hering @ 2012-09-18 21:56 UTC (permalink / raw) To: M A Young; +Cc: Steven Haigh, xen-devel On Tue, Sep 18, M A Young wrote: > On Tue, 18 Sep 2012, Olaf Hering wrote: > > >On Wed, Sep 19, Steven Haigh wrote: > > > >>Without this, the build fails due to incompatible CFLAGS. > > > >CFLAGS must not be in environment, otherwise make will append its own > >CFLAGS to that environment variable and pass it on to qemu. qemu itself > >is not ready for things like -std=gnu99. > > The problem is that packaging guidelines often want you to set CFLAGS to > supply distribution standard compile options. On the other hand with > something like qemu it means that someone has probably already solved the > problem. The attached patch worked for me in testing, which I derived by > comparing Fedora's qemu with xen's. qemu does not build with rPM_OPT_FLAGS, at least in SuSE. For Xen, see changeset: 25464:75a2bb5db228 user: Olaf Hering <olaf@aepfle.de> date: Thu Jun 07 18:51:42 2012 +0100 files: tools/Makefile tools/Rules.mk tools/firmware/Rules.mk description: tools: pass EXTRA_CFLAGS via environment Olaf ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems building qemu-xen-dir tools 2012-09-18 21:56 ` Olaf Hering @ 2012-09-18 23:34 ` M A Young 0 siblings, 0 replies; 5+ messages in thread From: M A Young @ 2012-09-18 23:34 UTC (permalink / raw) To: Olaf Hering; +Cc: Steven Haigh, xen-devel On Tue, 18 Sep 2012, Olaf Hering wrote: > qemu does not build with rPM_OPT_FLAGS, at least in SuSE. > For Xen, see changeset: 25464:75a2bb5db228 > user: Olaf Hering <olaf@aepfle.de> > date: Thu Jun 07 18:51:42 2012 +0100 > files: tools/Makefile tools/Rules.mk tools/firmware/Rules.mk > description: > tools: pass EXTRA_CFLAGS via environment Fedora 17 seems happy to build the xen qemu with that patch and the RPM_OPT_FLAGS, though I haven't tried it on the full build system. Michael Young ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-18 23:34 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-09-18 14:28 Problems building qemu-xen-dir tools Steven Haigh 2012-09-18 14:35 ` Olaf Hering 2012-09-18 18:48 ` M A Young 2012-09-18 21:56 ` Olaf Hering 2012-09-18 23:34 ` M A Young
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.