Bad /lib/modules/5.12.4-2-default/build link cause module to failed to build
Hi, I maintain a kernel module that recently failed to build on Tumbleweed due to /lib/modules/5.12.4-2-default/build link being incorrect: 'osc build' error output: [ 21s] /usr/bin/make -j1 -C /lib/modules/5.12.4-2-default/build M=/home/abuild/rpmbuild/BUILD/CoreFreq modules [ 21s] make[1]: warning: -j1 forced in submake: resetting jobserver mode. [ 21s] make[1]: *** /lib/modules/5.12.4-2-default/build: No such file or directory. Stop. #ls -l /lib/modules/5.12.4-2-default/build abuild@p72:~> ls -l /lib/modules/5.12.4-2-default/build lrwxrwxrwx 1 root root 50 May 28 22:19 /lib/modules/5.12.4-2-default/build -> ../../../usr/src/linux-5.12.4-2-obj/x86_64/default Dereferencing the link: /usr/bin/make -j1 -C /lib/modules/5.12.4-2-default/build M=/home/abuild/rpmbuild/BUILD/CoreFreq modules [ 63s] make[1]: warning: -j1 forced in submake: resetting jobserver mode. [ 63s] make[1]: *** /lib/modules/5.12.4-2-default/build: No such file or directory. Stop. The correct target of the link should be../../../../usr/src/linux-5.12.4-2-obj/x86_64/default, (adding an extra ../) Is it a know issue and is there a workaround ?
Am 04.06.21 um 15:25 schrieb Michael Pujos:
Hi,
I maintain a kernel module that recently failed to build on Tumbleweed due to /lib/modules/5.12.4-2-default/build link being incorrect:
'osc build' error output:
[ 21s] /usr/bin/make -j1 -C /lib/modules/5.12.4-2-default/build M=/home/abuild/rpmbuild/BUILD/CoreFreq modules [ 21s] make[1]: warning: -j1 forced in submake: resetting jobserver mode. [ 21s] make[1]: *** /lib/modules/5.12.4-2-default/build: No such file or directory. Stop.
#ls -l /lib/modules/5.12.4-2-default/build abuild@p72:~> ls -l /lib/modules/5.12.4-2-default/build lrwxrwxrwx 1 root root 50 May 28 22:19 /lib/modules/5.12.4-2-default/build -> ../../../usr/src/linux-5.12.4-2-obj/x86_64/default
Dereferencing the link:
/usr/bin/make -j1 -C /lib/modules/5.12.4-2-default/build M=/home/abuild/rpmbuild/BUILD/CoreFreq modules [ 63s] make[1]: warning: -j1 forced in submake: resetting jobserver mode. [ 63s] make[1]: *** /lib/modules/5.12.4-2-default/build: No such file or directory. Stop.
The correct target of the link should be../../../../usr/src/linux-5.12.4-2-obj/x86_64/default, (adding an extra ../) Is it a know issue and is there a workaround ?
Thanks. Found that linked issue like 5 mins after my initial post :/ On 6/4/21 3:43 PM, munix9 wrote:
The correct target of the link should be../../../../usr/src/linux-5.12.4-2-obj/x86_64/default, (adding an extra ../) Is it a know issue and is there a workaround ?
Am 04.06.21 um 15:25 schrieb Michael Pujos:
Hi,
I maintain a kernel module that recently failed to build on Tumbleweed due to /lib/modules/5.12.4-2-default/build link being incorrect:
'osc build' error output:
[ 21s] /usr/bin/make -j1 -C /lib/modules/5.12.4-2-default/build M=/home/abuild/rpmbuild/BUILD/CoreFreq modules [ 21s] make[1]: warning: -j1 forced in submake: resetting jobserver mode. [ 21s] make[1]: *** /lib/modules/5.12.4-2-default/build: No such file or directory. Stop.
#ls -l /lib/modules/5.12.4-2-default/build abuild@p72:~> ls -l /lib/modules/5.12.4-2-default/build lrwxrwxrwx 1 root root 50 May 28 22:19 /lib/modules/5.12.4-2-default/build -> ../../../usr/src/linux-5.12.4-2-obj/x86_64/default
Dereferencing the link:
/usr/bin/make -j1 -C /lib/modules/5.12.4-2-default/build M=/home/abuild/rpmbuild/BUILD/CoreFreq modules [ 63s] make[1]: warning: -j1 forced in submake: resetting jobserver mode. [ 63s] make[1]: *** /lib/modules/5.12.4-2-default/build: No such file or directory. Stop.
The correct target of the link should be../../../../usr/src/linux-5.12.4-2-obj/x86_64/default, (adding an extra ../) Is it a know issue and is there a workaround ?
forgotten: this package could help https://build.opensuse.org/package/show/home:munix9/tmp-usrmerge-fix
participants (2)
-
Michael Pujos
-
munix9