Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp430759rdh; Thu, 23 Nov 2023 07:45:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoXDGlrKAWQH1A+jjLgsHH8CwtWM4wFmK/2mJG3vsZciWl8UfdbqXWZjcYiRUqp9kZuUwc X-Received: by 2002:a05:6a20:548c:b0:187:ce9f:e1ab with SMTP id i12-20020a056a20548c00b00187ce9fe1abmr6148587pzk.33.1700754342068; Thu, 23 Nov 2023 07:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700754342; cv=none; d=google.com; s=arc-20160816; b=iHqhSx9aY4EaU2QuAdynAYPJyEtXEvBJQHJNOdqWrxCfgjT0RVGKuuiqTib4t8Pcx0 HBzOOSSmIF2YEgLr0kMyDo5fN/H8X4zJw2pCP5GrkdpvTDpQ4grYG1I3Onca8VueJW1E nAJHAOm1J5B5jxtCMnRNM1pXdYq9fpEXlmUL9ze4iwLjmUSuzYDuw999MFqOynImBvbw GisAh+OWBLGYu1fSqAaqMfAYg1M1lzsfByeEQvHjftEUuGlHvxlDGfvz+bS3UEqx5xIB PRRFGbLSDpXia+46rwTQgmuJI+GyOg84WNwNBEIRkC0p0y4pmX2mW11vTDOGK5Kd0O+w iqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q0Dsr/I1BEDGeMlhZNHEtQzjqLoYr88mZk7FnF9iOwg=; fh=MLfpiU71pB6flBsKy39aIiQVnmhXBBcDqTUzWnkk+/k=; b=fuNJuIyIUbLD5qc8XYdMIRfjO2qD1JqgeDUpe6n9ZmQSYa0wPprHBDStNHPs2GOvkB Mz2c8Oly5v/XGmI0PQdXsOJG2PqgAQE2krd8YxCNX3EHRObliyTE6Xek/L+zrbGGYe4w jjVCRyeCTbZiVXZIjmespewYlFY9j/BA8ZUyQgj6WnmAmiyY9cutC/AF8EO2luZzeK/I 6ujBGDhEI2dXj9ps7APjfPIZ3In743elo60EdlCd9MOpZuWVEghhI/aO4OjwvRpWsDTH IcIsGxijRZ1Oh1y4hD1cUnK6L6ALfjzKAP31dugsXKnP3Ot/kJ2O8IsuJrmSovxWo627 PyqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZDDf/GUU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k1-20020a635a41000000b005acba4c9bf4si1530372pgm.2.2023.11.23.07.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:45:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZDDf/GUU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 93714805ECDC; Thu, 23 Nov 2023 07:41:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346179AbjKWPl2 (ORCPT + 99 others); Thu, 23 Nov 2023 10:41:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346140AbjKWPlY (ORCPT ); Thu, 23 Nov 2023 10:41:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468F2F9 for ; Thu, 23 Nov 2023 07:41:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30D54C433C8; Thu, 23 Nov 2023 15:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700754089; bh=wYo7fAMqhxFyBFMQMLKccEbNB96HsajO4uuHMmp53Og=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZDDf/GUUb7F28lHZof2kZ/ExvVGLi3nSeT3k5MbpJeP7J0VRZNmeH0n0637NQXiJB hXe8WuNM4qKqZGi8AinuhXcYMqOENZ9/wzckFUhv+cEJRM4/HmSMMksK/WN6Dy5Ma8 crPwiGQ3GaiSK00zr+Kr3EpqT8dPwQzDEBl05EUafOfTas5YObKWcowYE6HhNzwKX4 gyZ7Z+k9Vr2SNTiHif5d2ZK3xPjSD8Mo/PvaRTgwaABEKoQRtpYp2i3PjOPpa3mV3f 8LRmCGmlgs78DL4EGWUkJDk7QoF8PY4psFMdIZKb0OGYKJMHSvVD3m8M16G4YVYpCF 3WbWtHvt69uMQ== Date: Thu, 23 Nov 2023 08:41:27 -0700 From: Nathan Chancellor To: "bhe@redhat.com" Cc: "Liu, Yujie" , lkp , "linux-riscv@lists.infradead.org" , "kexec@lists.infradead.org" , "x86@kernel.org" , "oe-kbuild-all@lists.linux.dev" , "llvm@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-parisc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH 2/7] kexec_file: print out debugging message if required Message-ID: <20231123154127.GA3487126@dev-arch.thelio-3990X> References: <20231114153253.241262-3-bhe@redhat.com> <202311160431.BXPc7NO9-lkp@intel.com> <39ccb4fda795a76996cf6d1c3b25909692358211.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.5 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,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 07:41:43 -0800 (PST) On Thu, Nov 23, 2023 at 09:49:20PM +0800, bhe@redhat.com wrote: > On 11/17/23 at 10:01pm, Baoquan He wrote: > > On 11/17/23 at 09:37am, Liu, Yujie wrote: > > > Hi Baoquan, > > > > > > On Fri, 2023-11-17 at 17:14 +0800, Baoquan He wrote: > > > > Hi, > > > > > > > > On 11/16/23 at 05:04am, kernel test robot wrote: > > > > > Hi Baoquan, > > > > > > > > > > kernel test robot noticed the following build errors: > > > > > > > > > > [auto build test ERROR on arm64/for-next/core] > > > > > [also build test ERROR on tip/x86/core powerpc/next powerpc/fixes linus/master v6.7-rc1 next-20231115] > > > > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > > > > And when submitting patch, we suggest to use '--base' as documented in > > > > > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > > > > > > > > > url:??? https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/kexec_file-add-kexec_file-flag-to-control-debug-printing/20231114-234003 > > > > > base:?? https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git?for-next/core > > > > > patch link:??? https://lore.kernel.org/r/20231114153253.241262-3-bhe%40redhat.com > > > > > patch subject: [PATCH 2/7] kexec_file: print out debugging message if required > > > > > config: hexagon-comet_defconfig (https://download.01.org/0day-ci/archive/20231116/202311160431.BXPc7NO9-lkp@intel.com/config) > > > > > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git?ae42196bc493ffe877a7e3dff8be32035dea4d07) > > > > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311160431.BXPc7NO9-lkp@intel.com/reproduce) > > > > > > > > > > > > > Thanks for reporting. > > > > > > > > I met below failure when following the steps of provided reproducer. > > > > Could anyone help check what's wrong with that? > > > > > > Sorry this seems to be a bug in the reproducer. Could you please change > > > the compiler parameter to "COMPILER=clang-16" and rerun the command? We > > > will fix the issue ASAP. > > Any update for the reproducer? I would like to post v2 with the fix. I > doubt it's the same issue as another report on this patch, while not > quite sure. Shouldn't you be able to run $ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-16 ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/ after the command you just ran to reproduce this now? It is essentially the same fix that they mention above but for the second invocation of make.cross. You can also not even bother with the wrapper altogether if you have the compiler installed in the default path that they provide (W=1 is not necessary to reproduce this issue): $ mkdir -p build_dir $ curl -LSso build_dir/.config https://download.01.org/0day-ci/archive/20231116/202311160431.BXPc7NO9-lkp@intel.com/config $ make -skj"$(nproc)" ARCH=hexagon LLVM=$HOME/0day/llvm-16.0.6-x86_64/bin/ O=build_dir olddefconfig kernel/crash_core.o ... kernel/crash_core.c:554:3: error: call to undeclared function 'kexec_dprintk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kexec_dprintk("Crash PT_LOAD ELF header. phdr=%p vaddr=0x%llx, paddr=0x%llx, " ^ 1 error generated. > > Here you are. Thanks for your quick response. > > ------------------------------ > > [root@~ linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-16 ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig > > Compiler will be installed in /root/0day > > lftpget -c https://cdn.kernel.org/pub/tools/llvm/files/./llvm-16.0.6-x86_64.tar.xz > > /root/linux > > tar Jxf /root/0day/./llvm-16.0.6-x86_64.tar.xz -C /root/0day > > PATH=/root/0day/llvm-16.0.6-x86_64/bin:/root/.local/bin:/root/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin > > make --keep-going LLVM=1 CROSS_COMPILE=hexagon-linux- LLVM_IAS=1 --jobs=128 KCFLAGS=-Warray-bounds -Wundef -fstrict-flex-arrays=3 -funsigned-char -Wenum-conversion W=1 O=build_dir ARCH=hexagon olddefconfig > > make[1]: Entering directory '/root/linux/build_dir' > > GEN Makefile > > HOSTCC scripts/basic/fixdep > > HOSTCC scripts/kconfig/conf.o > > HOSTCC scripts/kconfig/confdata.o > > HOSTCC scripts/kconfig/expr.o > > 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 > > HOSTLD scripts/kconfig/conf > > # > > # configuration written to .config > > # > > make[1]: Leaving directory '/root/linux/build_dir' > > > > > > > > > [root@~ linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig > > > > Compiler will be installed in /root/0day > > > > lftpget -c https://cdn.kernel.org/pub/tools/llvm/files/ > > > > get1: /pub/tools/llvm/files/: files/: Is a directory > > > > Failed to download https://cdn.kernel.org/pub/tools/llvm/files/ > > > > clang crosstool install failed > > > > Install clang compiler failed > > > > setup_crosstool failed > > > > > > > > > >