From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9PkU-0006b4-U5 for qemu-devel@nongnu.org; Fri, 20 Apr 2018 02:42:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9PkP-0000i7-U9 for qemu-devel@nongnu.org; Fri, 20 Apr 2018 02:42:22 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:43414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9PkP-0000g9-Mj for qemu-devel@nongnu.org; Fri, 20 Apr 2018 02:42:17 -0400 Received: by mail-wr0-x22a.google.com with SMTP id v15-v6so1820946wrm.10 for ; Thu, 19 Apr 2018 23:42:17 -0700 (PDT) References: <20180419135901.30035-1-alex.bennee@linaro.org> <0b1a0dd5-4b79-5e60-5b45-8ee8f2de07c8@linaro.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <0b1a0dd5-4b79-5e60-5b45-8ee8f2de07c8@linaro.org> Date: Fri, 20 Apr 2018 07:42:14 +0100 Message-ID: <87tvs69y61.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 00/43] fix building of tests/tcg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, qemu-devel@nongnu.org Richard Henderson writes: > On 04/19/2018 03:58 AM, Alex Benn=C3=A9e wrote: >> I did start playing with crosstool-ng and Linaro's own ABE scripts but >> realised this could end up a massive time sync. What would be really >> helpful is if the respective maintainers could encode their EXACT >> STEPS for building their cross compilers into some docker recipes. > > Building a cross-compiler with an existing libc binary is easy. > Building a cross-compiler without a libc is harder, and involves > a bit of two-stepping to get things right. > > For someone who has never used docker, what's a recipe look like? > Just a shell script that gets run within a container? > Is there an opportunity to wget or local copy an existing libc > tarball/package to put us into the easy case? Yes, it's just a bunch of steps run from a known starting state. Our debian-bootstrap.docker is probably the most complex as there is a seed step before you enter the container to run the setup steps. If you already have a built script for your compilers converting it to docker is fairly trivial. > >> Finally the end of the series has me adding Emilio's fp-test to the >> per-target builds. Unfortunately although some osdep.h and softfloat.c >> fiddling allows us to build in most cases I still can't build for >> example an i386 fp-test on an x86_64 host using the cross compiler as >> it triggers incompatibilities with config-host.h - in this case Int128 >> support. Currently I just hackily disable fp-test for non-64 bit >> platforms. > > It seems I can't even build fp-test for x86_64. > > CROSS-BUILD x86_64 guest-tests with cc > In file included from /home/rth/work/qemu/qemu/tests/fp/fp-test.c:14:0: > /home/rth/work/qemu/qemu/include/qemu/osdep.h:30:10: fatal error: > config-host.h: No such file or directory > #include "config-host.h" > ^~~~~~~~~~~~~~~ > compilation terminated. Weird as that works for me. Has configure been run? Are you in a external build dir? > > > r~ -- Alex Benn=C3=A9e