From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753266AbcHXCro (ORCPT ); Tue, 23 Aug 2016 22:47:44 -0400 Received: from mga01.intel.com ([192.55.52.88]:60803 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753174AbcHXCrn (ORCPT ); Tue, 23 Aug 2016 22:47:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,568,1464678000"; d="scan'208";a="870214018" Date: Wed, 24 Aug 2016 10:47:34 +0800 From: Fengguang Wu To: Dan Williams Cc: Yilong Ren , Johannes Thumshirn , kbuild-all@01.org, "linux-kernel@vger.kernel.org" Subject: Re: [kbuild-all] make[2]: *** No rule to make target 'tools/testing/nvdimm//config_check.o', needed by 'tools/testing/nvdimm//dax.o'. Message-ID: <20160824024734.2ri55bwur5gcf37o@wfg-t540p.sh.intel.com> References: <201608151849.0GQ0EGLP%fengguang.wu@intel.com> <20160816012659.GA9457@wfg-t540p.sh.intel.com> <20160822122650.GF11827@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.2-neo (2016-08-08) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2016 at 04:42:15PM -0700, Dan Williams wrote: >On Mon, Aug 22, 2016 at 5:26 AM, Yilong Ren wrote: >> Hi, Williams >> >> On Mon, Aug 15, 2016 at 06:30:48PM -0700, Dan Williams wrote: >>> On Mon, Aug 15, 2016 at 6:26 PM, Fengguang Wu wrote: >>> > On Mon, Aug 15, 2016 at 05:58:36PM -0700, Dan Williams wrote: >>> >> >>> >> On Mon, Aug 15, 2016 at 3:03 AM, kbuild test robot >>> >> wrote: >>> >>> >>> >>> tree: >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>> >>> head: 694d0d0bb2030d2e36df73e2d23d5770511dbc8d >>> >>> commit: ab68f26221366f92611650e8470e6a926801c7d4 /dev/dax, pmem: direct >>> >>> access to persistent memory >>> >>> date: 3 months ago >>> >>> config: i386-randconfig-i1-201633 (attached as .config) >>> >>> compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4 >>> >>> reproduce: >>> >>> git checkout ab68f26221366f92611650e8470e6a926801c7d4 >>> >>> # save the attached .config to linux build tree >>> >>> make ARCH=i386 >>> >>> >>> >>> All errors (new ones prefixed by >>): >>> >>> >>> >>>>> make[2]: *** No rule to make target >>> >>>>> 'tools/testing/nvdimm//config_check.o', needed by >>> >>>>> 'tools/testing/nvdimm//dax.o'. >>> >>> >>> >>> make[2]: Target '__build' not remade because of errors. >>> >> >>> >> >>> >> I think this is an invalid build test. tools/testing/nvdimm/ uses a >>> >> external module Kbuild environment, not Kconfig. So, there's nothing >>> >> I can do to prevent this compile error, unless there's some other way >>> >> 0-day could determine the configuration dependencies? >>> > >>> > >>> > Yeah if you can offer a concrete rule for the dependency, we'll add >>> > it to 0-day. >>> >>> Sounds good. The config_check.c file itself lists the dependencies: >>> >>> void check(void) >>> { >>> /* >>> * These kconfig symbols must be set to "m" for nfit_test to >>> * load and operate. >>> */ >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX)); >>> BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM)); >>> } >> >> will get the following error info after set all above kconfig to be "m": >> /kbuild/src/lkp/Makefile:1478: recipe for target '_module_tools/testing/nvdimm/' failed >> >> Would you please help to take a look? thanks. >> >> reproduce: >> git checkout 29b4817d4018df78086157ea3a55c1d9424a7cfc (v4.8-rc1) >> # save the attached .config to linux build tree >> make HOSTCC=gcc-6 CC=gcc-6 ARCH=x86_64 prepare >> make HOSTCC=gcc-6 CC=gcc-6 ARCH=x86_64 modules_prepare >> make HOSTCC=gcc-6 CC=gcc-6 ARCH=x86_64 M=tools/testing/nvdimm/ >> >> error info: >> /usr/bin/timeout -k 100 3h /usr/bin/make HOSTCC=gcc-6 CC=gcc-6 -j100 -C source O=/kbuild/obj/lkp/x86_64-rhel-7.2 ARCH=x86_64 M=tools/testing/nvdimm/ >> make: Entering directory '/kbuild/src/lkp' >> make[1]: Entering directory '/kbuild/obj/lkp/x86_64-rhel-7.2' >> LD tools/testing/nvdimm//built-in.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/core.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/bus.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/dimm.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/region_devs.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/region.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/dimm_devs.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/label.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/namespace_devs.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/btt_devs.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/pfn_devs.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/claim.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/dax_devs.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/pmem.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/blk.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/e820.o >> CC [M] tools/testing/nvdimm//../../../drivers/acpi/nfit/core.o >> CC [M] tools/testing/nvdimm//../../../drivers/nvdimm/btt.o >> CC [M] tools/testing/nvdimm//../../../drivers/acpi/nfit/mce.o >> CC [M] tools/testing/nvdimm//../../../drivers/dax/dax.o >> CC [M] tools/testing/nvdimm//../../../drivers/dax/pmem.o >> LD tools/testing/nvdimm//test/built-in.o >> CC [M] tools/testing/nvdimm//test/nfit.o >> CC [M] tools/testing/nvdimm//test/iomap.o >> LD [M] tools/testing/nvdimm//test/nfit_test_iomap.o >> LD [M] tools/testing/nvdimm//test/nfit_test.o >> /kbuild/src/lkp/Makefile:1478: recipe for target '_module_tools/testing/nvdimm/' failed <====== > >I was not able to reproduce this, I tried on Fedora 23 and Fedora 24 >and both attempts succeeded. Hi Dan, it looks the error only happens with separated obj dir, when KBUILD_OUTPUT or "-C .. O=.." is used in make command line. Thanks, Fengguang