All of lore.kernel.org
 help / color / mirror / Atom feed
* Ubuntu mainline kernel builds now failing not able to find module.lds file
@ 2020-10-30  5:43 Steve French
  2020-11-25  6:01 ` Salvatore Bonaccorso
  0 siblings, 1 reply; 3+ messages in thread
From: Steve French @ 2020-10-30  5:43 UTC (permalink / raw)
  To: LKML

I typically build cifs.ko for testing using the latest Ubuntu mainline
build - but building a module in the 5.10-rc1 kernel - while booted to
the 5.10-rc1 ubuntu mainlinekerel - e.g. "make C=1 -C
/usr/src/linux-headers-`uname -r` M=`pwd` modules
CF=-D__CHECK_ENDIAN__"
which has worked for years - no longer works.

make: Entering directory '/usr/src/linux-headers-5.10.0-051000rc1-generic'
make[2]: *** No rule to make target 'scripts/module.lds', needed by
'/home/smfrench/cifs-2.6/fs/cifs/cifs.ko'.  Stop.
make[1]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
make: *** [Makefile:1703: modules] Error 2
make: Leaving directory '/usr/src/linux-headers-5.10.0-051000rc1-generic'

I don't see a file in scripts/module.lds in
/usr/src/linux-headers-5.10.0-051000rc1-generic/scripts directory

copying from scripts/module.lds in the 5.10-rc1 git tree to
/usr/src/linux-headers-5.10.0-051000rc1-generic/scripts fixed the
problem but was wondering if this is just a packaging problem with
Ubuntu (missing a file in the kernel headers package for their
mainline daily builds?)

-- 
Thanks,

Steve

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

* Re: Ubuntu mainline kernel builds now failing not able to find module.lds file
  2020-10-30  5:43 Ubuntu mainline kernel builds now failing not able to find module.lds file Steve French
@ 2020-11-25  6:01 ` Salvatore Bonaccorso
  2020-11-25  8:47   ` Jessica Yu
  0 siblings, 1 reply; 3+ messages in thread
From: Salvatore Bonaccorso @ 2020-11-25  6:01 UTC (permalink / raw)
  To: Steve French
  Cc: LKML, Masahiro Yamada, Jessica Yu, Will Deacon,
	Geert Uytterhoeven, Palmer Dabbelt, Kees Cook

Hi Steve,

On Fri, Oct 30, 2020 at 12:43:24AM -0500, Steve French wrote:
> I typically build cifs.ko for testing using the latest Ubuntu mainline
> build - but building a module in the 5.10-rc1 kernel - while booted to
> the 5.10-rc1 ubuntu mainlinekerel - e.g. "make C=1 -C
> /usr/src/linux-headers-`uname -r` M=`pwd` modules
> CF=-D__CHECK_ENDIAN__"
> which has worked for years - no longer works.
> 
> make: Entering directory '/usr/src/linux-headers-5.10.0-051000rc1-generic'
> make[2]: *** No rule to make target 'scripts/module.lds', needed by
> '/home/smfrench/cifs-2.6/fs/cifs/cifs.ko'.  Stop.
> make[1]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
> make: *** [Makefile:1703: modules] Error 2
> make: Leaving directory '/usr/src/linux-headers-5.10.0-051000rc1-generic'
> 
> I don't see a file in scripts/module.lds in
> /usr/src/linux-headers-5.10.0-051000rc1-generic/scripts directory
> 
> copying from scripts/module.lds in the 5.10-rc1 git tree to
> /usr/src/linux-headers-5.10.0-051000rc1-generic/scripts fixed the
> problem but was wondering if this is just a packaging problem with
> Ubuntu (missing a file in the kernel headers package for their
> mainline daily builds?)

There is 596b0474d3d9 ("kbuild: preprocess module linker script") in
v5.10-rc1 causing this. So likely the packaging will need some
adjustment to cope with that change?

Have you by chance verified it is not a problem with the upstream
targets?

Regards,
Salvatore

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

* Re: Ubuntu mainline kernel builds now failing not able to find module.lds file
  2020-11-25  6:01 ` Salvatore Bonaccorso
@ 2020-11-25  8:47   ` Jessica Yu
  0 siblings, 0 replies; 3+ messages in thread
From: Jessica Yu @ 2020-11-25  8:47 UTC (permalink / raw)
  To: Salvatore Bonaccorso
  Cc: Steve French, LKML, Masahiro Yamada, Will Deacon,
	Geert Uytterhoeven, Palmer Dabbelt, Kees Cook

+++ Salvatore Bonaccorso [25/11/20 07:01 +0100]:
>Hi Steve,
>
>On Fri, Oct 30, 2020 at 12:43:24AM -0500, Steve French wrote:
>> I typically build cifs.ko for testing using the latest Ubuntu mainline
>> build - but building a module in the 5.10-rc1 kernel - while booted to
>> the 5.10-rc1 ubuntu mainlinekerel - e.g. "make C=1 -C
>> /usr/src/linux-headers-`uname -r` M=`pwd` modules
>> CF=-D__CHECK_ENDIAN__"
>> which has worked for years - no longer works.
>>
>> make: Entering directory '/usr/src/linux-headers-5.10.0-051000rc1-generic'
>> make[2]: *** No rule to make target 'scripts/module.lds', needed by
>> '/home/smfrench/cifs-2.6/fs/cifs/cifs.ko'.  Stop.
>> make[1]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
>> make: *** [Makefile:1703: modules] Error 2
>> make: Leaving directory '/usr/src/linux-headers-5.10.0-051000rc1-generic'
>>
>> I don't see a file in scripts/module.lds in
>> /usr/src/linux-headers-5.10.0-051000rc1-generic/scripts directory
>>
>> copying from scripts/module.lds in the 5.10-rc1 git tree to
>> /usr/src/linux-headers-5.10.0-051000rc1-generic/scripts fixed the
>> problem but was wondering if this is just a packaging problem with
>> Ubuntu (missing a file in the kernel headers package for their
>> mainline daily builds?)
>
>There is 596b0474d3d9 ("kbuild: preprocess module linker script") in
>v5.10-rc1 causing this. So likely the packaging will need some
>adjustment to cope with that change?

Yeah, likely it's a distro packaging issue. We had to account for
scripts/module.lds recently on openSUSE for example:

    https://github.com/openSUSE/kernel-source/commit/fe37c160c33dc09edff1781810aa098a2c316e20

Jessica

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

end of thread, other threads:[~2020-11-25  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30  5:43 Ubuntu mainline kernel builds now failing not able to find module.lds file Steve French
2020-11-25  6:01 ` Salvatore Bonaccorso
2020-11-25  8:47   ` Jessica Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.