hse-project/mpool-kmod

Building on Clear Linux

victorstewart opened this issue · 2 comments

finished all my dev now building to begin testing... i know this might be a bit of a bumpy process given Clear isn't officially supported.

i had to create the build folder in /lib/modules/5.10.7-1014.native, but then it fails on trying to build some non present module rule?

root@clr-ace9a719c6ba4f8b9273c314f5c51a76~/xxx/xxx/xxx/libraries/mpool-kmod #  make -j
make: rpm: No such file or directory
make -j -C config KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make[1]: Entering directory '/root/xxx/xxx/xxx/libraries/mpool-kmod/config'
make -C vm_fault_t KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C bioset_init KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C bioset_create KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C bio_set_dev KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C bio_set_op_attrs KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C iov_iter_init KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C iov_iter_get_pages KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C invalidatepage KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C mem_cgroup_count_vm_event KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C count_memcg_event_mm KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C backing_dev_info KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C generate_random_guid KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C blkdev_flush KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C sched_clock KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C submit_bio KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C mmap_lock KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C fops_fadvise KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
make -C vm_fault_func KDIR=/lib/modules/5.10.7-1014.native/build KREL=5.10.7-1014.native all
echo "/* SPDX-License-Identifier: GPL-2.0-only */" > config.h-5.10.7-1014.native.tmp
echo "/* *** Machine generated for 5.10.7-1014.native on Sun 17 Jan 2021 06:37:03 PM UTC *** */" >> config.h-5.10.7-1014.native.tmp
cat */config.h >> config.h-5.10.7-1014.native.tmp
mv config.h-5.10.7-1014.native.tmp config.h-5.10.7-1014.native
make[1]: Leaving directory '/root/xxx/xxx/xxx/libraries/mpool-kmod/config'
cp config/config.h-5.10.7-1014.native src/mpool_config.h
KCFLAGS="-O2 -DMPOOL_VERSION='\"r1.10.0-dev-1-gb2d09bdeef-r0\"'" make -C /lib/modules/5.10.7-1014.native/build M=${PWD}/src V= modules
make[1]: *** /lib/modules/5.10.7-1014.native/build: No such file or directory.  Stop.
make: *** [Makefile:272: all] Error 2

root@clr-ace9a719c6ba4f8b9273c314f5c51a76~/xxx/xxx/xxx/libraries/mpool-kmod # make all
make: rpm: No such file or directory
KCFLAGS="-O2 -DMPOOL_VERSION='\"r1.10.0-dev-1-gb2d09bdeef-r0\"'" make -C /lib/modules/5.10.7-1014.native/build M=${PWD}/src V= modules
make[1]: *** /lib/modules/5.10.7-1014.native/build: No such file or directory.  Stop.
make: *** [Makefile:272: all] Error 2

root@clr-ace9a719c6ba4f8b9273c314f5c51a76~/xxx/xxx/xxx/libraries/mpool-kmod # make -j
make: rpm: No such file or directory
KCFLAGS="-O2 -DMPOOL_VERSION='\"r1.10.0-dev-1-gb2d09bdeef-r0\"'" make -C /lib/modules/5.10.7-1014.native/build M=${PWD}/src V= modules
make[1]: Entering directory '/usr/lib/modules/5.10.7-1014.native/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/5.10.7-1014.native/build'
make: *** [Makefile:272: all] Error 2

and here's the config that was generated if that matters at all..

/* SPDX-License-Identifier: GPL-2.0-only */
/* *** Machine generated for 5.10.7-1014.native on Sun 17 Jan 2021 08:32:10 PM UTC *** */
#define HAVE_ADDRESS_SPACE_BDI 0
#define HAVE_BIOSET_CREATE_3 0
#define HAVE_BIO_SET_DEV 0
#define HAVE_BIOSET_INIT 0
#define HAVE_BIO_SET_OP_ATTRS 0
#define HAVE_BLKDEV_FLUSH_3 0
#define HAVE_COUNT_MEMCG_EVENT_MM 0
#define HAVE_FOPS_FADVISE 0
#define HAVE_GENERATE_RANDOM_GUID 0
#define HAVE_INVALIDATEPAGE_LENGTH 0
#define HAVE_IOV_ITER_GET_PAGES 0
#define HAVE_IOV_ITER_INIT_DIRECTION 0
#define HAVE_IOV_ITER_INIT_WRITTEN 1
#define HAVE_MEM_CGROUP_COUNT_VM_EVENT 0
#define HAVE_MMAP_LOCK 0
#define HAVE_SCHED_CLOCK_H 0
#define HAVE_SUBMIT_BIO_OP 1
#define HAVE_VMFAULT_VMF 0
#define HAVE_VM_FAULT_T 0