Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp89870lqo; Tue, 7 May 2024 13:07:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCd0+3Bdarnhh411rcHE+jY4dNdTTGI5Oz7itZqYmEK0JEDWZrIizAVGMEtLyFNasOJoTX/Ya4cUl1csD13WfDLacb91e+et+sjsThyg== X-Google-Smtp-Source: AGHT+IGH0Wttyy+/fRKpbSQbuqYdTnwesjnv7NTT1dLF3uANKzGsTQ220Zo1MNsEOhIDUDS6J2e9 X-Received: by 2002:adf:ee4f:0:b0:34d:8239:8dd0 with SMTP id ffacd0b85a97d-34fca4342bbmr604257f8f.0.1715112464447; Tue, 07 May 2024 13:07:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715112464; cv=pass; d=google.com; s=arc-20160816; b=mqPxMNQ/mZqK2/isj6xZ2d3D/O5Xuu0fGPb2Lrhb4jXDcZxVlOolLqu9rrTD0zdRzg BKP4TIXwmSLSYJLYn8ERqbcjaQVt98uyRJ/TZRhnT4lyV3K+r/D9wi1WLS6rK0MyYBH6 XrHXGYXcPf1cij1CSXOAdr1NXu3/cH2LxK1AbOx7f975P0AwW70Cyh7U3ARtETed/0c1 ou4xjjzs0YMNp6rnNOQQ3D8h3qctcH5hKkJNiruwuTSBTHyQwvNa7Ub5OyzxHmLJ0cK0 X0D549Sz6du8xhhZxEvqnCraiRvwk6I4IwftJIPVINYc5pD/H9WYYkM7m8dD6urLEJeN VrYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Z6TCN9feXfNh1jAxhagWihzVe8ZvEfnj2X4SFV0NO20=; fh=L+k6rdQopCZ7asqsHR+fbMNTUfErtz5ZrEjF19c1Ggc=; b=bF266ozXp2etahHQZtdUcj23S/eLUzy3IdvpsfwFirZ52kNLYI3j9mQ51o1XAoqNZE BtvwctkWZYI5BXHqfNHn3QrrW2th6k53P721QNlTGj/PC19H4uXIE+l31wylSewnSrP2 YIobxgGYKrpakmcWFUDpFmYcX4naaZ57BarHWidjdMrMNsVc7tTPqwfVuwB9UzWjy8mT VbiSDtBAFdWN46/WYJpaBeNV6Nw+ggzsj2H0SEBEF+nXwEQGWYnqHqpqnwJ4m45kZpY8 71oNo6+++UVnv+SGLb1oHLY4eUf45IPjFv/lI44qLmwsiOcRJpgb57KtALq9vjB1U9LT dyQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ux55KAKb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-172118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q23-20020a17090622d700b00a599fa97ce6si4750825eja.110.2024.05.07.13.07.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 13:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ux55KAKb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-172118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 79DED1F25DFF for ; Tue, 7 May 2024 20:07:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1CE016EBE8; Tue, 7 May 2024 20:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ux55KAKb" Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7440C21373 for ; Tue, 7 May 2024 20:00:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715112041; cv=none; b=pyeIPfB483vQAcndCwiiTH0KuEWX8SZLY+py0rT0nTLXf3J7iy2UORZgQ0IGYcuz/9+42VyOWmnFMb75CuPZWE4JN11hhLsXwutj2NGHmXqUpNVtGdttmBRWgWGQ+fzBlfOxwAOK9e4myNWu9t1aHjmf46ssrOlIsbPjWccyiMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715112041; c=relaxed/simple; bh=X+Xadyc7sdCFiVHFD+t7jMRpxudrW1hnI3AG8/xjqPw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Zk7BpY7VbmZwaLrWCeVe24Ih/rcGocP3n8yOAvJoAezVo2dEUox1cpsMz+fZdx6mnBWW7JIPFw4rLIIrauMfiOQZWZ5dozG0mutB6eh65Y7Hi/EgnrBmci8+xYF/ZRJAYoiIrqiTZqxvSMpPMhh1Vs5pihONSjnq7lt9Pllavns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Ux55KAKb; arc=none smtp.client-ip=209.85.219.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-deb99fa47c3so2049807276.2 for ; Tue, 07 May 2024 13:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715112038; x=1715716838; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Z6TCN9feXfNh1jAxhagWihzVe8ZvEfnj2X4SFV0NO20=; b=Ux55KAKbWZ81kDEnyZ610y9+/YYIP1alVvWbk1m16otzzW/+0akVJDHScN6gdhKWp1 PADrPwjIlKZ1ToY42+be6QtzyB//2T7MrjJuL69bIZmPp4tGE4vvDvrBwJbPaVpHTWul KdMl81iU6jVfyPm8wIlFWOvBl1Bkm/JPEwDN1Pi5dVJe3SRAT9wrKoB5Fz8+h+P+ZeoD RGOTNG9cuYHPWAmADbGm56NotC1ye2JrzCchJD6zXY5luo0pPVp9/0RcwDFcPRmEHuz3 MYJ7pfMSfImvORBDPbvu+FYesevIVlu2fNR45+QEgZ93s2vYtylvRmlmruK8MLfJ+H3+ QS0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715112038; x=1715716838; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z6TCN9feXfNh1jAxhagWihzVe8ZvEfnj2X4SFV0NO20=; b=eLynN9jTBprzT5yTt7JUf7b0TkPvaEABXUlyt2pc39BJtDZdb7DrMW3M2rgK8GmSWV 8vwFng07MJEznmf0ES5QtAvcjP4THEK+gX8XZcTd2EUGrUkTXdcJZfWMBkiTbQjX6A9t 8PcnJX//Gk50fD7A8C/6hMXtXjS+fjPWL0phHCopnSiNboeNOP0jVGzfntkLTYWWuiZX X5qsTyUk0fjBf2WCZV11qffl5FAsAZzB1131+fFydCe9Z/wWgE7+KKYrw3A+AlCxsdtL JZdnMWfMB/oA55X0Riu7jTCoLLKeAzKVvZXCQIJ1MR6bwbQmjo9VZgI8zmyw0miCtE1R hsrQ== X-Forwarded-Encrypted: i=1; AJvYcCUyg77UJPacMx3SbYKF56jO4b89exiVbSXK5oiQp4K1O/XA1GDj333Na8HiEmpVHiq2mlqz4NBIAxUvJn3eegS4tFkdf0VGrA9d1D00 X-Gm-Message-State: AOJu0YxwzbosPSb6VJ9vDb2Skeo6AETC03zGgpcXczX95NOXz8dzRE0t cXY86AzOL0Uizu2BUG5A6PTgPpIRVt267TfdZUYXVb1pV+l9YSg1qtCuxH2Gv0XGhWYpALMizRW BwaOx/hQKkjgI2tKYdYPNBt+G1YLXsd4YISDj2A== X-Received: by 2002:a25:8f88:0:b0:dd1:48c9:53f3 with SMTP id 3f1490d57ef6-debb9e4f729mr646274276.60.1715112038171; Tue, 07 May 2024 13:00:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Dmitry Baryshkov Date: Tue, 7 May 2024 23:00:26 +0300 Message-ID: Subject: Re: arm64: defconfig: gcc-8: failed: AttributeError: module 'argparse' has no attribute 'BooleanOptionalAction' To: Arnd Bergmann Cc: Naresh Kamboju , lkft-triage@lists.linaro.org, Linux ARM , open list , Anders Roxell , Dan Carpenter Content-Type: text/plain; charset="UTF-8" On Tue, 7 May 2024 at 22:18, Arnd Bergmann wrote: > > On Tue, May 7, 2024, at 20:19, Dmitry Baryshkov wrote: > > On Tue, 7 May 2024 at 21:06, Naresh Kamboju wrote: > >> On Tue, 7 May 2024 at 20:58, Dmitry Baryshkov > >> wrote: > >> > > >> > On Tue, 7 May 2024 at 16:13, Naresh Kamboju wrote: > >> > > > >> > > On Tue, 7 May 2024 at 17:13, Naresh Kamboju wrote: > >> > > > > >> > > > The arm and arm64 with gcc-8 builds failed on Linux next-20240507 tag > >> > > > with gcc-8 due to following warnings / errors. > >> > > > > >> > > > arm64 and arm: > >> > > > defconfig - gcc-8 - failed > >> > > > >> > > Anders bisected this build problem and found the first bad commit: > >> > > > >> > > 07a2f8716c41 drm/msm/gen_header: allow skipping the validation > >> > > > >> > > Steps to reproduce: > >> > > ----- > >> > > # tuxmake --runtime podman --target-arch arm64 --toolchain gcc-8 > >> > > --kconfig defconfig > >> > > >> > What is the python version on that platform / system? > >> > >> # python --version > >> Python 3.7.3 > > > > EOL. > > I'll check what we can do, but please consider updating the platform. > > I don't think we can rely on everyone to have 3.9, 3.8 > is not EOL yet, and we do want to still test in distros with > older compilers that may also come with old python. > > It should just work with a regular optional argument instead > of the BooleanOptionalAction (without the --no-validate flag): > > https://docs.python.org/3/howto/argparse.html#introducing-optional-arguments > > > @@ -538,6 +538,9 @@ class Parser(object): > > self.variants.add(reg.domain) > > > > def do_validate(self, schemafile): > > + if self.validate == False: > > + return > > + > > try: > > from lxml import etree > > This bit may have to become 'if not self.validate', > since the flag in this case is None rather than equal > to False. This also improves readability. Could you please send a patch? -- With best wishes Dmitry