Unable to compile linux-kernel pulled from nf-next tree

Harsha Sharma harshasharmaiitr at gmail.com
Tue Dec 19 15:58:40 EST 2017


On Tue, Dec 19, 2017 at 10:59 PM,  <valdis.kletnieks at vt.edu> wrote:
> On Tue, 19 Dec 2017 22:15:02 +0530, Harsha Sharma said:
>
>> This is the output of make.
>
>>   Building modules, stage 2.
>>   MODPOST 4905 modules
>> fs/ufs/ufs.o: Invalid argument
>> scripts/Makefile.modpost:92: recipe for target '__modpost' failed
>
> You didn't fill up the filesystem you were building in, did you? If you're using
> a .config that builds 4,900+ modules, that's going to chew disk like crazy,
> especially if you have CONFIG_DEBUG_KERNEL=y so all of them are built
> with 'gcc -g'....
>
> (You may want to consider doing a 'make localmodconfig' so it bypasses the
> 3,500 or more modules that don't apply to your hardware/software config...)

Using `make localmodconfig` doesn't load module nfnetlink in which I'm
making the changes.
What can be the best way to have a config that builds least but all
required modules ?
Using `make localmodconfig` don't produces these errors as these
modules are no more build.
Thanks for your time :)



More information about the Kernelnewbies mailing list