Closed juno-kim closed 6 years ago
When I run make in libfs/tests, I get the following error.
make
../src/storage/spdk//libspdk.so: undefined reference to pci_map_resource' ../src/storage/spdk//libspdk.so: undefined reference touuid_unparse_lower' ../src/storage/spdk//libspdk.so: undefined reference to numa_available' ../src/storage/spdk//libspdk.so: undefined reference toget_mempolicy' ../src/storage/spdk//libspdk.so: undefined reference to uuid_parse' ../src/storage/spdk//libspdk.so: undefined reference torte_pci_addr_parse' ../src/storage/spdk//libspdk.so: undefined reference to numa_set_localalloc' ../src/storage/spdk//libspdk.so: undefined reference torte_pci_addr_cmp' ../src/storage/spdk//libspdk.so: undefined reference to numa_bitmask_free' ../src/storage/spdk//libspdk.so: undefined reference toset_mempolicy' ../src/storage/spdk//libspdk.so: undefined reference to numa_allocate_nodemask' ../src/storage/spdk//libspdk.so: undefined reference torte_pci_device_name' ../src/storage/spdk//libspdk.so: undefined reference to pci_unmap_resource' ../src/storage/spdk//libspdk.so: undefined reference touuid_compare' ../src/storage/spdk//libspdk.so: undefined reference to uuid_generate' ../src/storage/spdk//libspdk.so: undefined reference tonuma_set_preferred' collect2: error: ld returned 1 exit status Makefile:82: recipe for target 'iotest' failed make: *** [iotest] Error 1
pci_map_resource' ../src/storage/spdk//libspdk.so: undefined reference to
numa_available' ../src/storage/spdk//libspdk.so: undefined reference to
uuid_parse' ../src/storage/spdk//libspdk.so: undefined reference to
numa_set_localalloc' ../src/storage/spdk//libspdk.so: undefined reference to
numa_bitmask_free' ../src/storage/spdk//libspdk.so: undefined reference to
numa_allocate_nodemask' ../src/storage/spdk//libspdk.so: undefined reference to
pci_unmap_resource' ../src/storage/spdk//libspdk.so: undefined reference to
uuid_generate' ../src/storage/spdk//libspdk.so: undefined reference to
Adding -lnuma, -luuid does not solve the problem. Can anyone help this?
did you ever tamper the Makefile anywhere?
Solved. Yes, I modified the Makefile and that was the problem.
When I run
make
in libfs/tests, I get the following error.../src/storage/spdk//libspdk.so: undefined reference to
pci_map_resource' ../src/storage/spdk//libspdk.so: undefined reference to
uuid_unparse_lower' ../src/storage/spdk//libspdk.so: undefined reference tonuma_available' ../src/storage/spdk//libspdk.so: undefined reference to
get_mempolicy' ../src/storage/spdk//libspdk.so: undefined reference touuid_parse' ../src/storage/spdk//libspdk.so: undefined reference to
rte_pci_addr_parse' ../src/storage/spdk//libspdk.so: undefined reference tonuma_set_localalloc' ../src/storage/spdk//libspdk.so: undefined reference to
rte_pci_addr_cmp' ../src/storage/spdk//libspdk.so: undefined reference tonuma_bitmask_free' ../src/storage/spdk//libspdk.so: undefined reference to
set_mempolicy' ../src/storage/spdk//libspdk.so: undefined reference tonuma_allocate_nodemask' ../src/storage/spdk//libspdk.so: undefined reference to
rte_pci_device_name' ../src/storage/spdk//libspdk.so: undefined reference topci_unmap_resource' ../src/storage/spdk//libspdk.so: undefined reference to
uuid_compare' ../src/storage/spdk//libspdk.so: undefined reference touuid_generate' ../src/storage/spdk//libspdk.so: undefined reference to
numa_set_preferred' collect2: error: ld returned 1 exit status Makefile:82: recipe for target 'iotest' failed make: *** [iotest] Error 1Adding -lnuma, -luuid does not solve the problem. Can anyone help this?