From: Stefan Weil <sw@weilnetz.de>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix out-of-tree and cross compile builds for pixman
Date: Sun, 04 Nov 2012 13:10:49 +0100 [thread overview]
Message-ID: <50965B49.4090900@weilnetz.de> (raw)
In-Reply-To: <CAAu8pHuMNwq7TGtyHu5UJ3CXBZ3taONdaK2yQ2JjqWG3d10_RQ@mail.gmail.com>
Am 03.11.2012 21:15, schrieb Blue Swirl:
> On Sat, Nov 3, 2012 at 7:02 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 3 November 2012 19:47, Blue Swirl <blauwirbel@gmail.com> wrote:
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -122,7 +122,7 @@ subdir-pixman: pixman/Makefile
>>> $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,)
>>>
>>> pixman/Makefile: $(SRC_PATH)/pixman/configure
>>> - (cd pixman; $(SRC_PATH)/pixman/configure --disable-shared --enable-static)
>>> + (cd pixman; CC=$(CC) LD=$(LD) AR=$(AR) NM=$(NM) RANLIB=$(RANLIB) $(SRC_PATH)/pixman/configure --disable-shared --enable-static)
>> Not tested, but aren't there quoting issues here if you're
>> building with --cc='ccache gcc' ?
> Yes. Also configure fails because the variables are not expanded and
> directory pixman/pixman does not exist. Funny how it worked earlier.
I struggle with the same issue, and there are more problems caused
by the internal pixman code.
The dependencies are wrong because pixman is built too late:
$(TOOLS) also depends on it. It is not trivial to model them correctly.
IMHO it would be better to build the internal pixman immediately when
QEMU's configure is called. Then QEMU's make can always rely on an
existing pixman.
The internal pixman code is also too old for cross compilations with
MinGW-w64. It already fails when running configure.
Newer versions of pixman compile after a trivial modification which
is needed to avoid redefined symbols:
diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c
index 1a014fd..723c245 100644
--- a/pixman/pixman-mmx.c
+++ b/pixman/pixman-mmx.c
@@ -61,7 +61,7 @@ _mm_empty (void)
#endif
#ifdef USE_X86_MMX
-# if (defined(__SUNPRO_C) || defined(_MSC_VER))
+# if (defined(__SUNPRO_C) || defined(_MSC_VER) || defined(__WIN64))
# include <xmmintrin.h>
# else
/* We have to compile with -msse to use xmmintrin.h, but that causes SSE
More changes are needed to avoid typical MinGW-w64 compiler warnings
(pointer to int conversions without uintptr_t).
Up to now, I did not test the resulting code, so maybe there will be more
surprises.
Regards
Stefan
next prev parent reply other threads:[~2012-11-04 12:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-03 18:47 [Qemu-devel] [PATCH] Fix out-of-tree and cross compile builds for pixman Blue Swirl
2012-11-03 19:02 ` Peter Maydell
2012-11-03 20:15 ` Blue Swirl
2012-11-04 12:10 ` Stefan Weil [this message]
2012-11-07 2:33 ` Johnson, Eric
2012-11-07 11:47 ` Gerd Hoffmann
2012-11-17 9:56 ` Stefan Weil
2012-11-07 11:43 ` Gerd Hoffmann
2012-11-07 20:06 ` Johnson, Eric
2012-11-07 20:57 ` Johnson, Eric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50965B49.4090900@weilnetz.de \
--to=sw@weilnetz.de \
--cc=blauwirbel@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.