From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0066.outbound.protection.outlook.com [104.47.1.66]) by dpdk.org (Postfix) with ESMTP id 276871D8E9; Fri, 15 Jun 2018 10:07:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kPuiAycBQwAFOhhR+RrTMac14Aw+8x2d6jRGVhs4tm0=; b=ZNjCDlR8OsB9OyCYCl4VJziat/QgS4w10rdi66MBJT+bDsvHZHRiH55zlrUKI35ThuQgPuS/HLKRVNVhyZWShaDwn5HyX0pJ1n4fURBXO/LplUsCt6zHpyk/Om/WXfSEJ0lTFk/wnS0eG2jkZBkSlgpFDKW+vXJj9+g/sQ5OTfI= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB0927.eurprd08.prod.outlook.com (10.166.143.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Fri, 15 Jun 2018 08:07:24 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::bccc:7b61:9039:89a0]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::bccc:7b61:9039:89a0%4]) with mapi id 15.20.0863.016; Fri, 15 Jun 2018 08:07:24 +0000 From: Gavin Hu To: Bruce Richardson CC: "dev@dpdk.org" , "stable@dpdk.org" , nd Thread-Topic: [dpdk-dev] [PATCH v6 3/7] devtools: fix the Exec format error Thread-Index: AQHUA8tCBQDJ8hBMikC/CDTwr1xqXqRg99xQ Date: Fri, 15 Jun 2018 08:07:23 +0000 Message-ID: References: <1527590616-28299-1-git-send-email-gavin.hu@arm.com> <20180614095127.16245-1-gavin.hu@arm.com> <20180614095127.16245-4-gavin.hu@arm.com> <20180614103413.GA17264@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20180614103413.GA17264@bricha3-MOBL.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB0927; 7:HFapK6Z3eaizqTjN9H3G43kgFMTL7lQ3meHqynSs0Ghrp5R+VtRVtTp3QrHC+nn0NfaL7acXMHxz/Ar/ydjm4Hm7gwHnrefOySfZsxd/ODBRGAcr9sb+jIU5cItMztQX7YNxTnRFQ7FtXkzqmXgqEoe4QsgZ9a0eCAFmMV/HqMrFN6NkRAj7gs/oxuq3558S5sKIykj1mbjrZgBHR2Yr5SlLIvE3LkFW+i0zlcrb8NNhNUZ4goP8SUazxs6fBChx x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a2ddb056-0acc-4279-e37b-08d5d2970739 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB0927; x-ms-traffictypediagnostic: VI1PR08MB0927: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR08MB0927; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB0927; x-forefront-prvs: 0704670F76 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(346002)(396003)(39860400002)(366004)(376002)(199004)(189003)(13464003)(106356001)(53546011)(55236004)(33656002)(2906002)(6506007)(229853002)(76176011)(316002)(7696005)(8936002)(6916009)(6306002)(86362001)(5250100002)(59450400001)(25786009)(53376002)(97736004)(5660300001)(105586002)(476003)(305945005)(6246003)(93886005)(3280700002)(7736002)(14454004)(3660700001)(102836004)(74316002)(3846002)(81156014)(9686003)(2900100001)(55016002)(6116002)(486006)(8676002)(478600001)(81166006)(68736007)(966005)(99286004)(26005)(66066001)(446003)(4326008)(11346002)(54906003)(72206003)(6436002)(53936002)(186003)(460985005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB0927; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: SHEtu/n6DEGQ+dMYSxsLAcSLzS+uScSccuYmPgfiyljT2Ktub0uHon3lrnZnL2qmtQwVJYs3FtG4Sf6jB0l3nc3X7lAt4HrH5CKhgJlcmWo9st9mY+VUqEsYo6FYVxjxGfcNvs8HhlyzHxpyw2AccSgtbumsm0cXQw0uS3LJNSsxkjhgG27MEDECPfqxduEJ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2ddb056-0acc-4279-e37b-08d5d2970739 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2018 08:07:24.5171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB0927 Subject: Re: [dpdk-dev] [PATCH v6 3/7] devtools: fix the Exec format error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 08:07:26 -0000 Hi Bruce, This patch was dropped, thanks for your review. Best Regards, Gavin > -----Original Message----- > From: Bruce Richardson > Sent: Thursday, June 14, 2018 6:34 PM > To: Gavin Hu > Cc: dev@dpdk.org; stable@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 3/7] devtools: fix the Exec format erro= r >=20 > On Thu, Jun 14, 2018 at 05:51:23PM +0800, Gavin Hu wrote: > > meson will natively compile and generate the sanitycheck.exe file. It > > will be spawned and run at the host side. Export the cross compiler > > is not necessary as it is already done by the cross-file, and even > > worse it generate the files in the wrong target format. > > > > The fix to the following compiling error is select the native compiler > > for the sanity test source file. > > > > Traceback (most recent call last): File > > "/usr/share/meson/mesonbuild/mesonmain.py", line 361, in run > > app.generate() File "/usr/share/meson/mesonbuild/mesonmain.py", line > > 150, in generate > > self._generate(env) File "/usr/share/meson/mesonbuild/mesonmain.py", > > line 189, in _generate intr =3D interpreter.Interpreter(b, g) File > > "/usr/share/meson/mesonbuild/interpreter.py", line 1444, in __init__ > > self.parse_project() File > > "/usr/share/meson/mesonbuild/interpreterbase.py", > > line 159, in parse_project self.evaluate_codeblock(self.ast, end=3D1) > > File "/usr/share/meson/mesonbuild/interpreterbase.py", line 195, in > > evaluate_codeblock raise e File > > "/usr/share/meson/mesonbuild/interpreterbase.py", line 189, in > > evaluate_codeblock self.evaluate_statement(cur) File > > "/usr/share/meson/mesonbuild/interpreterbase.py", line 200, in > > evaluate_statement return self.function_call(cur) File > > "/usr/share/meson/mesonbuild/interpreterbase.py", line 456, in > > function_call return self.funcs[func_name](node, > > self.flatten(posargs), > > kwargs) File "/usr/share/meson/mesonbuild/interpreterbase.py", line > > 55, in wrapped return f(self, node, args, kwargs) File > > "/usr/share/meson/mesonbuild/interpreterbase.py", line 79, in wrapped > > return f(s, node_or_state, args, kwargs) File > > "/usr/share/meson/mesonbuild/interpreter.py", line 1947, in > > func_project self.add_languages(proj_langs, True) File > > "/usr/share/meson/mesonbuild/interpreter.py", line 2078, in > > add_languages (comp, cross_comp) =3D self.detect_compilers(lang, > > need_cross_compiler) File > > "/usr/share/meson/mesonbuild/interpreter.py", line 2047, in > > detect_compilers comp.sanity_check(self.environment.get_scratch_dir(), > > self.environment) File "/usr/share/meson/mesonbuild/compilers/c.py", > > line 254, in sanity_check return self.sanity_check_impl(work_dir, > > environment, 'sanitycheckc.c', code) File > > "/usr/share/meson/mesonbuild/compilers/c.py", > > line 247, in sanity_check_impl pe =3D subprocess.Popen(cmdlist) File > > "/usr/lib/python3.5/subprocess.py", line 676, in __init__ > > restore_signals, > > start_new_session) File "/usr/lib/python3.5/subprocess.py", line 1282, > > in _execute_child raise child_exception_type(errno_num, err_msg) OSErro= r: > > [Errno 8] Exec format error > > > > Build started at 2018-06-01T12:48:46.852286 Main binary: > > /usr/bin/python3 Python system: Linux The Meson build system Version: > 0.45.1 Build type: > > cross build Project name: DPDK Sanity testing C compiler: > > aarch64-linux-gnu-gcc Is cross compiler: False. Sanity check compiler > > command line: aarch64-linux-gnu-gcc > > dpdk/build-arm64-armv8/meson-private/sanitycheckc.c -o > > dpdk/build-arm64-armv8/meson-private/sanitycheckc.exe > > > > Fixes: a55277a788 ("devtools: add test script for meson builds") > > Cc: stable@dpdk.org > > > > Signed-off-by: Gavin Hu > > Reviewed-by: Phil Yang > > Reviewed-by: Song Zhu > > --- > > devtools/test-meson-builds.sh | 11 +++++++---- > > 1 file changed, 7 insertions(+), 4 deletions(-) > > > I think this patch is fixing the same error as this one[1], just in a sli= ghtly > longer way. [Though the addition of the message about missing the cross- > compiler is nice]. >=20 > http://dpdk.org/dev/patchwork/patch/40817/