From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 763C3A0352 for ; Mon, 3 Jan 2022 18:09:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 697E0410DC; Mon, 3 Jan 2022 18:09:48 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 5E46640042 for ; Mon, 3 Jan 2022 18:09:46 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id o63-20020a17090a0a4500b001b1c2db8145so38169505pjo.5 for ; Mon, 03 Jan 2022 09:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=YaW/MKn5HhE0z19lPU9JYKZn03lP6v9pD6R1haN32Ic=; b=C6qVESKUTOLjAqM9MIq689KroPpsrHRbQa/mnCpZuFoiHmxmXyyWZGpIc5XapzxsGF CAVu5NGxWPKC7VTgV5qmhix0lYNlQtITm65V144N0zaxzfie04h0POsUC3LjPBPIEGwX fWe2GwyKRj9X8zy2yDTjp638/2uzZoxdf/zH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=YaW/MKn5HhE0z19lPU9JYKZn03lP6v9pD6R1haN32Ic=; b=biZsInpYSycAlKSWlzXaDBBcQ9WxNXG0JXyuD/VwE/7VqhkPfI6l8k1yZUh3G31LpI jY5LrZgvbGnTavPpmDjGmWrM1rGjfXcm5alpokaofdR5mIlpLyoLTg9bT89inRFq+Jtu psQgg3kO2TOlMvCrP91ecdFlxIbUemzGa0ha6xjTyjp6xWIKba3zPbD50O1NhqA734ln opj1T/qdPAr1ATou9dAqrjKjn33+oG5DiQo8aeeFEkXkUNzJcCMwcv1xz9tHkoFMEbuQ wozsMDOUgXXhKjLUv/gAZ2pSeA6jKdZCDLUIp4OjKBXynK+oXxf90CH88wiQKuRZJyP7 HQOw== X-Gm-Message-State: AOAM532Hz/t/8qihQtxzXdHgntzwoN3+uZcCFVwonbtzwR+432yE/38x BawUrOS635yYRAppALC/dmIV9g== X-Google-Smtp-Source: ABdhPJw1S1yMmZ+T4yQ1Qb4BR5QHdnJN3YFn9Ei6Jm8Nud8LKMWq/ZBvRj2nvPIBYtfFldQXRQoMBA== X-Received: by 2002:a17:902:e5c2:b0:149:3cd:ebf5 with SMTP id u2-20020a170902e5c200b0014903cdebf5mr45897939plf.1.1641229785437; Mon, 03 Jan 2022 09:09:45 -0800 (PST) Received: from localhost.localdomain (69-218-223-106.lightspeed.rlghnc.sbcglobal.net. [69.218.223.106]) by smtp.gmail.com with ESMTPSA id g10sm6785377pfo.103.2022.01.03.09.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 09:09:45 -0800 (PST) From: Lance Richardson To: Bruce Richardson , Konstantin Ananyev , Dmitry Kozlyuk Cc: dev@dpdk.org, stable@dpdk.org Subject: [PATCH] buildtools: fix avx512 check for Python 3.5 Date: Mon, 3 Jan 2022 12:09:40 -0500 Message-Id: <20220103170940.199956-1-lance.richardson@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000060810905d4b096e3" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org --00000000000060810905d4b096e3 Content-Transfer-Encoding: 8bit Python 3.5 subprocess.run() does not have a capture_output parameter (it is present only in 3.7 and up). Capture output by using subprocess.PIPE for stdout instead. Fixes: bb9cd91095b3 ("buildtools: make AVX512 check portable") Cc: stable@dpdk.org Signed-off-by: Lance Richardson --- buildtools/binutils-avx512-check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/binutils-avx512-check.py b/buildtools/binutils-avx512-check.py index a4e14f3593..9d7d360d95 100644 --- a/buildtools/binutils-avx512-check.py +++ b/buildtools/binutils-avx512-check.py @@ -15,7 +15,7 @@ src = '__asm__("vpgatherqq {}");'.format(gather_params).encode('utf-8') subprocess.run(cc + ['-c', '-xc', '-o', obj.name, '-'], input=src, check=True) asm = subprocess.run([objdump, '-d', '--no-show-raw-insn', obj.name], - capture_output=True, check=True).stdout.decode('utf-8') + stdout=subprocess.PIPE, check=True).stdout.decode('utf-8') if gather_params not in asm: print('vpgatherqq displacement error with as') sys.exit(1) -- 2.25.1 --00000000000060810905d4b096e3 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVW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