OpenNetworkLinux icon indicating copy to clipboard operation
OpenNetworkLinux copied to clipboard

/lib/modules/<onlKernelVersion>/build Path Not Found

Open torombolo17 opened this issue 5 years ago • 4 comments

Hello! I'm trying to install some software that is trying to access the path "/lib/modules/<onlKernelVersion>/build" . I believe I have to install the headers, but I don't know where to find these. Based on the command uname -srm my kernel version is Linux 4.14.109-OpenNetworkLinux x86_64. Do I have to install the linux generic headers, or are there some specific headers I need to install?

Thanks!

torombolo17 avatar Aug 31 '20 15:08 torombolo17

I have the same question, hope answers!

TingtingXuA avatar May 02 '21 08:05 TingtingXuA

Exactly the same question, hope for answer !

Vic0428 avatar Feb 25 '22 01:02 Vic0428

A person suggested here(line 382-392) intstalling a onl-kernel .deb package and then creating a symlink to the mbuilds/ directory of the installed package. But, I'm not sure if onl-kernel .deb packages are directly available. Does anybody know?

building all .deb packages probably creates onl-kernel .deb packages. I tried following this section on a Debian 9 machine, unfortunately, it raises the following error (similar to #732) and doesn't finish.

make[3]: Entering directory '/home/g1605044/OpenNetworkLinux/packages/base/any/initrds/buildroot/builds'
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
>>>   Checking external toolchain settings
Cannot execute cross-compiler '/usr/buildroot/toolchains/x86_64/bin/x86_64-buildroot-linux-uclibc-gcc'
toolchain/toolchain-external/ext-tool.mk:336: recipe for target '/home/g1605044/OpenNetworkLinux/packages/base/any/initrds/buildroot/builds/buildroot-x86_64/stamps/ext-toolchain-checked' failed
make[3]: *** [/home/g1605044/OpenNetworkLinux/packages/base/any/initrds/buildroot/builds/buildroot-x86_64/stamps/ext-toolchain-checked] Error 1
make[3]: Leaving directory '/home/g1605044/OpenNetworkLinux/packages/base/any/initrds/buildroot/builds/buildroot-mirror'
Makefile:93: recipe for target 'buildroot-x86_64' failed
make[2]: *** [buildroot-x86_64] Error 2
make[2]: Leaving directory '/home/g1605044/OpenNetworkLinux/packages/base/any/initrds/buildroot/builds'
/home/g1605044/OpenNetworkLinux/packages/base/any/initrds/buildroot/Makefile.any:36: recipe for target 'buildroot-initrd-amd64.cpio.gz' failed
make[1]: *** [buildroot-initrd-amd64.cpio.gz] Error 2
make[1]: Leaving directory '/home/g1605044/OpenNetworkLinux/packages/base/amd64/initrds/buildroot/builds'
Traceback (most recent call last):
  File "/home/g1605044/OpenNetworkLinux/tools/onlpm.py", line 1412, in <module>
    pm.build(p)
  File "/home/g1605044/OpenNetworkLinux/tools/onlpm.py", line 1087, in build
    products = pg.build(dir_=dir_)
  File "/home/g1605044/OpenNetworkLinux/tools/onlpm.py", line 690, in build
    self.gmake_locked("", 'Build')
  File "/home/g1605044/OpenNetworkLinux/tools/onlpm.py", line 665, in gmake_locked
    ex=OnlPackageError('%s failed.' % operation))
  File "/home/g1605044/OpenNetworkLinux/tools/onlu.py", line 126, in execute
    raise ex
onlpm.OnlPackageError: 'Build failed.'
/home/g1605044/OpenNetworkLinux/make/pkg.mk:30: recipe for target 'pkgall' failed
make: *** [pkgall] Error 1

sadmankiba avatar Jul 01 '22 12:07 sadmankiba

I later found that when I built ONL installer on Debian 9 machine, an mbuilds/ directory was created in $ONL/REPO/stretch/extracts/onl-kernel-4.9-lts-x86-64-all_amd64/usr/share/onl/packages/amd64/onl-kernel-4.9-lts-x86-64-all directory.

I zipped this mbuilds/ dir, transferred it to switch CPU where ONL is installed and extracted its contents in /lib/modules/<onlKernelVersion>/build directory. Then the error /lib/modules/<onlKernelVersion>/build path not found was gone.

sadmankiba avatar Jul 05 '22 05:07 sadmankiba