public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Radim Krčmář" <rkrcmar@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: pbonzini@redhat.com, drjones@redhat.com, kvm@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH v2 0/9] Support for out-of-tree builds
Date: Fri, 19 May 2017 18:20:17 +0200	[thread overview]
Message-ID: <20170519162016.GA11087@potion> (raw)
In-Reply-To: <20170512164001.4117-1-alex.bennee@linaro.org>

2017-05-12 17:39+0100, Alex Bennée:
> Hi,
> 
> Here is v2 of the out-of-tree build. There have been a number of
> changes following review and also inclusion of Thomas' ppc64 patch
> which completes the set.
> 
> The biggest change is the way I deal with creating build directories.
> There is now a make variable called OBJDIRS which sub-builds can add
> to. I had originally tried to be clever by expanding OBJDIRS into a
> bunch of templated mkdir's which could then be set as
> order-on-prerequisites as suggested by Drew. However it turns out to
> be very hard to add the directory of the target as a prerequisite even
> using hacks like GNU's secondary expansion. In the end I just created
> a directories target and made sure the all: target had it as the first
> thing. This breaks if someone tries to build an individual file
> without first building the tree but I assume most people don't build
> like that. If anyone else can come up with a neater solution I'm all
> ears ;-)

I noticed few cases that don't work:
 - SRC_DIR path contains whitespace
 - SRC_DIR was `./configure`d for another arch
 - SRC_DIR isn't clean (up-to-date results won't be rebuilt out-of-tree)
 - reconfiguring --arch in a out-of-tree directory

The in-tree build still works, out-of-tree in decent cases, Makefile
changes are reasonable, and reviewers seem content in front of a
first-grade bikeshedding material ...

Applied, thanks.

> Finally I've added a .travis.yml recipe. This really only works for
> github hosted repos but its better than nothing. Evidently the cross
> compilers complain about:
> 
>   lib/report.c:38:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
>   assert_msg(len < sizeof(prefixes), "%d >= %lu", len, sizeof(prefixes));
> 
> and:
> 
>   lib/report.c:38:2: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Werror=format=]
>   assert_msg(len < sizeof(prefixes), "%d >= %lu", len, sizeof(prefixes));
> 
> But these can be addressed with separate patches.

(Should be fixed now.)

      parent reply	other threads:[~2017-05-19 16:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12 16:39 [kvm-unit-tests PATCH v2 0/9] Support for out-of-tree builds Alex Bennée
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 1/9] configure: make it run-able from outside source tree Alex Bennée
2017-05-17 14:50   ` Radim Krčmář
2017-06-08 14:13     ` Paolo Bonzini
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 2/9] Makefile: ensure build-head works out-of-src-tree Alex Bennée
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 3/9] Makefile: set VPATH based on SRCDIR Alex Bennée
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 4/9] Makefiles: use explicit path for including sub-Makefiles Alex Bennée
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 5/9] Makefile: add explicit directories target Alex Bennée
2017-06-08 14:32   ` Paolo Bonzini
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 6/9] Makefiles: fix up the x86 build dirs and include/link paths Alex Bennée
2017-05-12 16:39 ` [kvm-unit-tests PATCH v2 7/9] Makefiles: fix up the arm " Alex Bennée
2017-05-12 16:40 ` [kvm-unit-tests PATCH v2 8/9] Makefiles: Fix up the powerpc " Alex Bennée
2017-05-12 16:40 ` [kvm-unit-tests PATCH v2 9/9] .travis.yml: initial build matrix Alex Bennée
2017-05-19 16:20 ` Radim Krčmář [this message]

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=20170519162016.GA11087@potion \
    --to=rkrcmar@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox