Click to See Complete Forum and Search --> : [SOLVED] Error during modules_install


afaiq
04-29-2005, 06:08 PM
I am compiling a new kernel 2.6.11.7 with some additional features turned on (bootsplash etc.) I have created a new directory called linux-2.6.11.7-boot where I have the source installed. Made a change to the EXTRAVERSION variable in the Makefile.
1. make xconfig is ok
2. make bzIamge is ok
3. make modules is ok
4. During make modules_install I get the following error:

linux:/usr/src/linux-2.6.11.7-boot # make modules_install
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
linux:/usr/src/linux-2.6.11.7-boot #

I have no idea where to begin. Any help will be much appreciated

bwkaz
04-29-2005, 06:40 PM
2.6 kernels are built differently from earlier kernels. You don't do bzImage or modules anymore, it's just:

make *config
make
make modules_install

I don't know if that will fix your error or not, though, because it sounds like your error is caused by an incorrect ln invocation. But it might not hurt either.

Are you building the kernel in a directory with spaces anywhere in its name? Did you put spaces anywhere in the EXTRAVERSION variable's value?

retsaw
04-29-2005, 07:05 PM
Originally posted by bwkaz
2.6 kernels are built differently from earlier kernels. You don't do bzImage or modules anymore, it's just:

make *config
make
make modules_installAlthough you don't have to, you still can. You might only want to build the kernel image or maybe just the modules, so you have the option of doing them seperately.

I do agree with you on the most likely cause of the error though.

afaiq
04-30-2005, 05:46 PM
Originally posted by bwkaz
Are you building the kernel in a directory with spaces
anywhere in its name? Did you put spaces anywhere in the EXTRAVERSION variable's value?

bingo! there was a space at the end of the EXTRAVERSION variable value. Once I removed the space, everyting worked. Thanks bwkaz!