nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* nfit_test.ko.xz needs unknown symbol ....
@ 2018-11-08 14:44 Dorau, Lukasz
  2018-11-08 16:31 ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Dorau, Lukasz @ 2018-11-08 14:44 UTC (permalink / raw)
  To: linux-nvdimm

Hi,

I am building and installing the linux kernel from the 'libnvdimm-for-next' branch at git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git with the 'nfit_test' kernel module.

I have set in the .config file:

CONFIG_X86_PMEM_LEGACY=m
CONFIG_ZONE_DEVICE=y
CONFIG_LIBNVDIMM=m
CONFIG_BLK_DEV_PMEM=m
CONFIG_ND_BLK=m
CONFIG_BTT=y
CONFIG_NVDIMM_PFN=y
CONFIG_NVDIMM_DAX=y
CONFIG_DEV_DAX_PMEM=m

I ran:

$ make
$ make M=tools/testing/nvdimm
$ sudo make M=tools/testing/nvdimm modules_install
$ sudo make modules_install

and I got:

[...]
DEPMOD  4.19.0-rc4-nfit_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol libnvdimm_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol acpi_nfit_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol pmem_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol device_dax_test

Does anyone know what could be wrong here?

--
Lukasz
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nfit_test.ko.xz needs unknown symbol ....
  2018-11-08 14:44 nfit_test.ko.xz needs unknown symbol Dorau, Lukasz
@ 2018-11-08 16:31 ` Dan Williams
  2018-11-09  9:44   ` Dorau, Lukasz
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2018-11-08 16:31 UTC (permalink / raw)
  To: Dorau, Lukasz; +Cc: linux-nvdimm

On Thu, Nov 8, 2018 at 6:45 AM Dorau, Lukasz <lukasz.dorau@intel.com> wrote:
>
> Hi,
>
> I am building and installing the linux kernel from the 'libnvdimm-for-next' branch at git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git with the 'nfit_test' kernel module.
>
> I have set in the .config file:
>
> CONFIG_X86_PMEM_LEGACY=m
> CONFIG_ZONE_DEVICE=y
> CONFIG_LIBNVDIMM=m
> CONFIG_BLK_DEV_PMEM=m
> CONFIG_ND_BLK=m
> CONFIG_BTT=y
> CONFIG_NVDIMM_PFN=y
> CONFIG_NVDIMM_DAX=y
> CONFIG_DEV_DAX_PMEM=m
>
> I ran:
>
> $ make
> $ make M=tools/testing/nvdimm
> $ sudo make M=tools/testing/nvdimm modules_install
> $ sudo make modules_install
>
> and I got:
>
> [...]
> DEPMOD  4.19.0-rc4-nfit_test
> depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol libnvdimm_test
> depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol acpi_nfit_test
> depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol pmem_test
> depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol device_dax_test
>
> Does anyone know what could be wrong here?

Do you get the error if you run the same script again? For external
modules to find symbols the symbol map needs to be installed, but the
first time you run the process nothing has been installed. So, it's
possible to see this error on the first run on a new kernel version,
but it's benign and should disappear for subsequent builds.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: nfit_test.ko.xz needs unknown symbol ....
  2018-11-08 16:31 ` Dan Williams
@ 2018-11-09  9:44   ` Dorau, Lukasz
  0 siblings, 0 replies; 3+ messages in thread
From: Dorau, Lukasz @ 2018-11-09  9:44 UTC (permalink / raw)
  To: Williams, Dan J; +Cc: linux-nvdimm

On Thursday, November 8, 2018 5:32 PM Dan Williams <dan.j.williams@intel.com> wrote:
> On Thu, Nov 8, 2018 at 6:45 AM Dorau, Lukasz <lukasz.dorau@intel.com> wrote:
> >
> > Hi,
> >
> > I am building and installing the linux kernel from the 'libnvdimm-for-next'
> branch at git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git with
> the 'nfit_test' kernel module.
> >
> > I have set in the .config file:
> >
> > CONFIG_X86_PMEM_LEGACY=m
> > CONFIG_ZONE_DEVICE=y
> > CONFIG_LIBNVDIMM=m
> > CONFIG_BLK_DEV_PMEM=m
> > CONFIG_ND_BLK=m
> > CONFIG_BTT=y
> > CONFIG_NVDIMM_PFN=y
> > CONFIG_NVDIMM_DAX=y
> > CONFIG_DEV_DAX_PMEM=m
> >
> > I ran:
> >
> > $ make
> > $ make M=tools/testing/nvdimm
> > $ sudo make M=tools/testing/nvdimm modules_install
> > $ sudo make modules_install
> >
> > and I got:
> >
> > [...]
> > DEPMOD  4.19.0-rc4-nfit_test
> > depmod: WARNING: /lib/modules/4.19.0-rc4-
> nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol libnvdimm_test
> > depmod: WARNING: /lib/modules/4.19.0-rc4-
> nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol acpi_nfit_test
> > depmod: WARNING: /lib/modules/4.19.0-rc4-
> nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol pmem_test
> > depmod: WARNING: /lib/modules/4.19.0-rc4-
> nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol device_dax_test
> >
> > Does anyone know what could be wrong here?
> 
> Do you get the error if you run the same script again? For external
> modules to find symbols the symbol map needs to be installed, but the
> first time you run the process nothing has been installed. So, it's
> possible to see this error on the first run on a new kernel version,
> but it's benign and should disappear for subsequent builds.
>

My script:

$ make
$ make M=tools/testing/nvdimm

The first time I run 'modules_install' I get:

$ sudo make M=tools/testing/nvdimm modules_install
[...]
  DEPMOD  4.19.0-rc4-nfit_test
depmod: WARNING: could not open /lib/modules/4.19.0-rc4-nfit_test/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/4.19.0-rc4-nfit_test/modules.builtin: No such file or directory

and for subsequent builds I get always the same:

$ sudo make modules_install
[...]
  DEPMOD  4.19.0-rc4-nfit_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol libnvdimm_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol acpi_nfit_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol pmem_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol device_dax_test

$ sudo make M=tools/testing/nvdimm modules_install
[...]
  DEPMOD  4.19.0-rc4-nfit_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol libnvdimm_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol acpi_nfit_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol pmem_test
depmod: WARNING: /lib/modules/4.19.0-rc4-nfit_test/extra/test/nfit_test.ko.xz needs unknown symbol device_dax_test

--
Lukasz

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-09  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 14:44 nfit_test.ko.xz needs unknown symbol Dorau, Lukasz
2018-11-08 16:31 ` Dan Williams
2018-11-09  9:44   ` Dorau, Lukasz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).