From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5AB66C61D97 for ; Fri, 24 Nov 2023 01:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=V6UCJ9cOkd7z4pbEL0KsGcRB4BZcTMXmzrdqnz0mUkE=; b=YMbQvEYlUIzg+I 2binae5aUUypJ1zcD6CEEeyK6t/tjBxsvpTxhtDbpYCIjsIS1Vw98gGV3YJ+k8o2BY3fZApCpgCXh qksOXJu4G70EEO8f7OwdmgZx7EZdB9iXgLjrl+e3T1AbCNA2Dyxt92CGBdLwlT0mFppr9eZ0xSoJ3 o8HQT8MzKzRkIEwkzl3h+xykSAhouu87sLSqb4JbBUXoZtZmMHR1ALGnyhuLYZEz6MCtVsTx556hw XRz69hy9EzAgBakgHJgJ+tADZdjhYf+Y25CNtSr2IhTzr0GPPuJka4aFlbFCcQ8z8uukLX4lR7pqj c++Fmw07xOreBX38O8LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6LQa-005x90-2s; Fri, 24 Nov 2023 01:56:20 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6LQW-005x7f-2F for linux-arm-kernel@lists.infradead.org; Fri, 24 Nov 2023 01:56:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700790975; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kwa+nrELWZT3YCayKL8lw8jcAr2lDX2wSVDUihgmA1A=; b=IC3TWY7MYzLrL/xkKJ/iBC2z9tq9VNdC80M17jfgCIENRAN3DgU7+9ihLTcNd/zEAfuBVz iJFzUbqWINF+6zyFRNLf57QHcsUtd3+1vHm3U92piMYaYMg7AxsePy4hoJpRXIZIqmXAwL k7Ule7FObjhcfUyJkSPvsR+USd1K6EE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-57-7n5sp70ZOb663DWE_NI99A-1; Thu, 23 Nov 2023 20:56:12 -0500 X-MC-Unique: 7n5sp70ZOb663DWE_NI99A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AB66180C345; Fri, 24 Nov 2023 01:56:11 +0000 (UTC) Received: from localhost (unknown [10.72.112.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7126236E2; Fri, 24 Nov 2023 01:56:06 +0000 (UTC) Date: Fri, 24 Nov 2023 09:56:03 +0800 From: "bhe@redhat.com" To: Nathan Chancellor 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: References: <20231114153253.241262-3-bhe@redhat.com> <202311160431.BXPc7NO9-lkp@intel.com> <39ccb4fda795a76996cf6d1c3b25909692358211.camel@intel.com> <20231123154127.GA3487126@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231123154127.GA3487126@dev-arch.thelio-3990X> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_175616_809615_7DAA9B0E X-CRM114-Status: GOOD ( 29.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/23/23 at 08:41am, Nathan Chancellor wrote: > 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/fix= es 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 docume= nted in > > > > > > https://git-scm.com/docs/git-format-patch#_base_tree_informatio= n] > > > > > > = > > > > > > url:=A0=A0=A0 https://github.com/intel-lab-lkp/linux/commits/Ba= oquan-He/kexec_file-add-kexec_file-flag-to-control-debug-printing/20231114-= 234003 > > > > > > base:=A0=A0 https://git.kernel.org/pub/scm/linux/kernel/git/arm= 64/linux.git=A0for-next/core > > > > > > patch link:=A0=A0=A0 https://lore.kernel.org/r/20231114153253.2= 41262-3-bhe%40redhat.com > > > > > > patch subject: [PATCH 2/7] kexec_file: print out debugging mess= age if required > > > > > > config: hexagon-comet_defconfig (https://download.01.org/0day-c= i/archive/20231116/202311160431.BXPc7NO9-lkp@intel.com/config) > > > > > > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-pr= oject.git=A0ae42196bc493ffe877a7e3dff8be32035dea4d07) > > > > > > reproduce (this is a W=3D1 build): (https://download.01.org/0da= y-ci/archive/20231116/202311160431.BXPc7NO9-lkp@intel.com/reproduce) > > > > > > = > > > > > = > > > > > Thanks for reporting. > > > > > = > > > > > I met below failure when following the steps of provided reproduc= er. > > > > > Could anyone help check what's wrong with that? > > > > = > > > > Sorry this seems to be a bug in the reproducer. Could you please ch= ange > > > > the compiler parameter to "COMPILER=3Dclang-16" and rerun the comma= nd? 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=3D$HOME/0day COMPILER=3Dclang-16 ~/bin/make.cro= ss W=3D1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash kernel/ > = Yes, I can reproduce it, it's the same issue as the one reported on arm64. I thought Yujie is using the clang-16 to debug. Thanks for help. > 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=3D1 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=3Dhexagon LLVM=3D$HOME/0day/llvm-16.0.6-x86_= 64/bin/ O=3Dbuild_dir olddefconfig kernel/crash_core.o > ... > kernel/crash_core.c:554:3: error: call to undeclared function 'kexec_dp= rintk'; ISO C99 and later do not support implicit function declarations [-W= implicit-function-declaration] > kexec_dprintk("Crash PT_LOAD ELF header. phdr=3D%p vadd= r=3D0x%llx, paddr=3D0x%llx, " > ^ > 1 error generated. > = > > > Here you are. Thanks for your quick response. > > > ------------------------------ > > > [root@~ linux]# COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang-1= 6 ~/bin/make.cross W=3D1 O=3Dbuild_dir ARCH=3Dhexagon 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=3D/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=3D1 CROSS_COMPILE=3Dhexagon-linux- LLVM_IAS=3D= 1 --jobs=3D128 KCFLAGS=3D-Warray-bounds -Wundef -fstrict-flex-arrays=3D3 -f= unsigned-char -Wenum-conversion W=3D1 O=3Dbuild_dir ARCH=3Dhexagon olddefco= nfig > > > 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=3D$HOME/0day COMPILER=3Dcla= ng ~/bin/make.cross W=3D1 O=3Dbuild_dir ARCH=3Dhexagon 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 > > > > = > > > > = > > > = > > = > > = > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel