From patchwork Thu May 17 17:46:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 136187 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp257023lji; Thu, 17 May 2018 11:07:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpT55etupMiRy8TOcXtNHvv5jDkCdOzm6r2+xBayh7Y8+O4xJY5NIH8iOAg2qd3fzvw/JuD X-Received: by 2002:a0c:f690:: with SMTP id p16-v6mr2310874qvn.69.1526580429653; Thu, 17 May 2018 11:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526580429; cv=none; d=google.com; s=arc-20160816; b=Lelfbbc4TI/+GDtMBy0UKFV1Rd9l4+2UmgX35S26b+7uQkoWlpE+QZtd2xoQM0cvL3 xWscCnTEk3Aiw0pCNMv3RUvnOSfteUn8UyYAphTO6DpnhRvEE5LJysYHBZeziVIoPQJL qPwaHrRGc87bQFfRbiQtPVPhGHn8COUJ3UEiuxUkE4RGoKJPuBpmnjM8sRpATXgE0j36 QAtu/NTvdhJ+UwBPDLevNP4GUK83vuOJzxZdz5Fiw5rgxbgJkVmCMAznptNEXGxsbfqF 8js+GN7nqptEn2tNBusXuw1sYD0sVE98bmdabGblJ19QnDG1YLqnJtJF6zKXFTry/2nD bTiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=CeuysqQiqwiF3a4GHQ/oFwzywYZhLTHWTOHP8CQOwFw=; b=oELWK9NFJjMVyJW8AZdITCvRFh6l9i/yENG/61Sns3LcToxBOYu/HWC7UjOPwAzRZs R1op+5WmWFDEy/Ot2EKqUZIPBuRvd3xzMh3RdIafhP63ikK10WfaFLm8KlG5pcRi5uzD 6/kJEZi5nfVr78P4QOuZuGWty138QLEuj2Uabw9X86jIK/+iutGSk2SltQ5epm20fsr4 Fg1AEWivgtCLeixf0G80gm+KvEleuei7v+6Yz1H8lAYvNhN0FejtwrTUNELC/rkzN2Ri 5NFbTLH1cbjcWzmwK9eoac2I56HFBklM61lg97DdLCxDraSHSRLSW/+sDkyCiAebFY+3 1Z+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UiCCy8lM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n68-v6si642013qke.116.2018.05.17.11.07.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 11:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UiCCy8lM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJNIz-0005JL-3s for patch@linaro.org; Thu, 17 May 2018 14:07:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJNFw-0003XR-3c for qemu-devel@nongnu.org; Thu, 17 May 2018 14:04:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJNFt-0004zN-Fu for qemu-devel@nongnu.org; Thu, 17 May 2018 14:04:00 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:44332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJNFt-0004yq-AJ for qemu-devel@nongnu.org; Thu, 17 May 2018 14:03:57 -0400 Received: by mail-wr0-x241.google.com with SMTP id y15-v6so6577410wrg.11 for ; Thu, 17 May 2018 11:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CeuysqQiqwiF3a4GHQ/oFwzywYZhLTHWTOHP8CQOwFw=; b=UiCCy8lMB7IhQuw1yTaK6NOyMNhH9rp+Hp0X7qm0Z3/Mc87+zjvpKbTC2EHHYd1Rna 4KMw+dSZsNDjwni7oeS0l3lWWFbUEgR5PpiQih51mBWZLJLVXHQ7Ty6EN+AKcZhVpZzu veVMq53APYiHnEcOvWXyH0C/5MvgahcRNFlqc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CeuysqQiqwiF3a4GHQ/oFwzywYZhLTHWTOHP8CQOwFw=; b=dSJd6UKsTJEXp5w0FqwixEihHuI1tpnlpPAIZ5wYQ6XI5FeibeEUB5Ij9+5gELGg4/ 5Mu9wQAGey2TaybSBpf2NlOEKK7jx/GgKJbcekx/EfZY3d0FkOTbPhlNvep7lg+s/9yT NwdMlsFS0LP8IIJ6A51lH5gF8t6gHJ5X3Agtt7Otgc4G0Na3KFgJjveW5GiRs28M43Vk nJ10ovibYUeNpJtRcCTNlUaBrolnSoQ8gg3+YuNir68mXEc13HK3/ffBvgVNCSvfzh1a /xphXO31upbx2VzCDjvQIaA7351OKwob72ms+77ifF5XXhIoxHrpu+YSppmpp5xU4pAn sssg== X-Gm-Message-State: ALKqPwdMxXtMw9f/spTRQInPA/nT+hp8MO6lZmlWiKzL7QsSM599EpQr 21zxBJkGtuRKkqTGRHjqjlQXLw== X-Received: by 2002:adf:88e8:: with SMTP id g37-v6mr4701247wrg.62.1526580236183; Thu, 17 May 2018 11:03:56 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 12-v6sm9350249wmn.27.2018.05.17.11.03.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 11:03:52 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3CC363E0E53; Thu, 17 May 2018 18:47:20 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 17 May 2018 18:46:47 +0100 Message-Id: <20180517174718.10107-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v4 18/49] tests/tcg: enable building for i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While you can construct a compile command that does work using the x86_64 host compiler that most people use this is flakey. Different distros handle this is different ways so we default to using a known good i386 compiler via docker. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v3 - add runner for runcom --- tests/tcg/i386/Makefile.include | 9 +++++++++ tests/tcg/i386/Makefile.target | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/tcg/i386/Makefile.include -- 2.17.0 diff --git a/tests/tcg/i386/Makefile.include b/tests/tcg/i386/Makefile.include new file mode 100644 index 0000000000..be1c3008dd --- /dev/null +++ b/tests/tcg/i386/Makefile.include @@ -0,0 +1,9 @@ +# +# Makefile.include for all i386 +# +# There is enough brokeness in x86_64 compilers that we don't default +# to using the x86_64 system compiler for i386 binaries. +# + +DOCKER_IMAGE=fedora-i386-cross +DOCKER_CROSS_COMPILER=gcc diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 2f27b65e2d..39a1627650 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -28,3 +28,12 @@ hello-i386: LDFLAGS+=-nostdlib test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ $( runcom.out, "TEST", "$< on $(TARGET_NAME)") +