Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1697775rwo; Wed, 2 Aug 2023 20:13:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEP+Lius99QvSKqiuAWLST/9WAzydhXCEexfOw/adAPToK0ai6MjdiN2BR0T4pOj6w9affC X-Received: by 2002:a05:6a20:7355:b0:116:d935:f742 with SMTP id v21-20020a056a20735500b00116d935f742mr18802722pzc.20.1691032418880; Wed, 02 Aug 2023 20:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691032418; cv=none; d=google.com; s=arc-20160816; b=KirdhdrGcBoXf6a/p/oiTs0s8o8OAJyfGNnoSeAjXbd7D5lqcDR8PK04oGhQNghuTE 7XOFRTs3yaSWHbRG1WRD9Q4Xg1s7WOP8701tq05mNNjuKF0kfvjzu4IWd+4nydbnptle 90JpusXQfrdvrCA6jD2PYTp1vCrFNGre1nWMmyfdUKzdVoxapAXp1Qxw2evsylAg4qDr VbXQi8pdmSWYA51eBwMJVLkRMyCpYeeKbj/GvmjsoK/JM/qSuRUzsKyFccc5Tkgq5BUH Hs1a7TFpAJN3S3DSxeTzw/Y3MMZZRnguCcsKMmRnPP1CMghVJtAGVW34ek/ZGqPqrcaC Ba7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7fGCYaSl6OeJtRy0z2WrVjBLM999CpU4kKhHLUJGo1M=; fh=qdXaRO2olw5b/LVx/axh1Av6LS5KZc6VXsN+S4WAG8Y=; b=rCHvrXoEMJIrEGZvPlxBtmQbhC88NRUmIO23xSeblrNFFcr7e3L7m3uc/iMAXt7uGK CM0JqNgrkNWzk6lvei4G21dNLRjLviNtugW99L2+8oj8JqdffgVMfhObg9QkSg0JPegx KGzQ7euraDXB7wTnCSIF83/3tf1fe4mXb4pUyDkFscOrwM7FI55KAeGaR+Z1VgZmZydp FJtJOR561gSPEHbm7mymv+sD/+XgHFps2Rnj0r5u4Jx+pRXiEUwGy8hhmn4kkwdVUS/7 G9xKpX4dNPRUywM5LYm+0B64to2doEGEE9Tx4nghweACvjt+7DUI3P/jqjti36O7ICrz sKyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gyuEomxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l191-20020a6388c8000000b00563f8ccc097si11710628pgd.780.2023.08.02.20.13.26; Wed, 02 Aug 2023 20:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gyuEomxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233000AbjHCCcy (ORCPT + 99 others); Wed, 2 Aug 2023 22:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232919AbjHCCci (ORCPT ); Wed, 2 Aug 2023 22:32:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18944682; Wed, 2 Aug 2023 19:29:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 808A361A55; Thu, 3 Aug 2023 02:28:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB01C433C7; Thu, 3 Aug 2023 02:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691029721; bh=BgvTFcE2u4K0+wxe4GvjKEq1YVlpBtvyHHKrVLaiFEY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gyuEomxZRpX0SrxHywJ6XkYDOcwFtOUioPx1aolK7mBSQhxdXEa6YSnVREJ7opi4n sgyCPQXqchLsgBzSw+d5vZ9eYBrbJ9XNIK31YOnJJ2JdWVaTISRMm+DpEPRHocebph 0peN/fjKTHVZxEx/FKLFV9Ujrf2TIWz4ftu0U72HMwDytxioiewlwH42fUXKm2evUJ jQswICDfO6memyrsk4iLCt5iXldxPcfDuKLGoeQa4Y+SI+uL1xaa2k4ssjYK+bh0OF CZfbSkmkbA2145Z/9FlI7zoDGJAFyUJ0q+3cbwVmtFKRYIteplDbejtae9Z04ROXn+ vYn9BFHmsllxQ== Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1bba7717d3bso275126fac.1; Wed, 02 Aug 2023 19:28:41 -0700 (PDT) X-Gm-Message-State: ABy/qLau2GI/Y/7TLvyqzm41QEfT2G813Dt/ToAJjnwQxeUrpywTcmOn ingJwgrMa2NQpUr8zbm7LTEJgJnn1GEW/b5mZ/o= X-Received: by 2002:a05:6870:fba3:b0:1bf:9f6:b810 with SMTP id kv35-20020a056870fba300b001bf09f6b810mr7709025oab.36.1691029721131; Wed, 02 Aug 2023 19:28:41 -0700 (PDT) MIME-Version: 1.0 References: <20230801140657.1324086-1-boris@codesynthesis.com> <20230801140657.1324086-2-boris@codesynthesis.com> In-Reply-To: <20230801140657.1324086-2-boris@codesynthesis.com> From: Masahiro Yamada Date: Thu, 3 Aug 2023 11:28:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/1] kconfig: port qconf to work with Qt6 in addition to Qt5 To: Boris Kolpackov Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 1, 2023 at 11:07=E2=80=AFPM Boris Kolpackov wrote: > > Tested with Qt5 5.15 and Qt6 6.4. Note that earlier versions of Qt5 > are no longer guaranteed to work. > > Signed-off-by: Boris Kolpackov > --- $ make xconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/images.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTCXX scripts/kconfig/qconf.o In file included from /usr/include/x86_64-linux-gnu/qt6/QtGui/qtguiglobal.h= :7, from /usr/include/x86_64-linux-gnu/qt6/QtGui/qaction.h:7, from /usr/include/x86_64-linux-gnu/qt6/QtGui/QAction:1, from scripts/kconfig/qconf.cc:7: /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:106:6: error: #error "Qt requires a C++17 compiler" 106 | # error "Qt requires a C++17 compiler" | ^~~~~ /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:491:11: warning: inline variables are only available with =E2=80=98-std=3Dc++17=E2=80=99 or =E2=80=98-std=3Dgnu++17=E2=80=99 [-Wc++17-extensions] 491 | constexpr inline Deprecated_t Deprecated =3D {}; | ^~~~~~ /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:1009:26: error: =E2=80=98enable_if_t=E2=80=99 in namespace =E2=80=98std=E2=80=99 does not n= ame a template type 1009 | typename =3D std::enable_if_t && std::is_arithmetic_v && | ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:1009:21: note: =E2=80=98std::enable_if_t=E2=80=99 is only available from C++14 onwards 1009 | typename =3D std::enable_if_t && std::is_arithmetic_v && | ^~~ [ snip tons of errors] The first error says, #error "Qt requires a C++17 compiler" Right, g++ defaults to this: $ g++ --version g++ (Debian 12.2.0-14) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It worked for me with the following fix-up applied. diff --git a/scripts/kconfig/qconf-cfg.sh b/scripts/kconfig/qconf-cfg.sh index a1b718a7366c..a5d5ed008dc3 100755 --- a/scripts/kconfig/qconf-cfg.sh +++ b/scripts/kconfig/qconf-cfg.sh @@ -17,6 +17,8 @@ fi if ${HOSTPKG_CONFIG} --exists $PKG6; then ${HOSTPKG_CONFIG} --cflags ${PKG6} > ${cflags} + # Qt6 requires a C++17 compiler + echo -std=3Dc++17 >> ${cflags} ${HOSTPKG_CONFIG} --libs ${PKG6} > ${libs} ${HOSTPKG_CONFIG} --variable=3Dlibexecdir Qt6Core > ${bin} exit 0 -- Best Regards Masahiro Yamada