error with make modules - pls help-output attached
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
error with make modules - pls help-output attached
I got the following out put when I execute make modules just after recompiling the kernel. but when I reboot the pc using the new image, and try to insert a module it says the moudle is not ther(acually there is no modules in the /lib/2.4.2.2 .. directory).pls help me with this.
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.2/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.2/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.2/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/block'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/block'
make -C cdrom modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/cdrom'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/cdrom'
make -C char modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/char'
make -C drm modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/char/drm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/char/drm'
make -C pcmcia modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/char/pcmcia'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/char/pcmcia'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/char'
make -C ide modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/ide'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/ide'
make -C media modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/media'
make -C radio modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/radio'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/radio'
make -C video modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/video'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/video'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/media'
make -C misc modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/misc'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/misc'
make -C net modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h -c -o dummy.o dummy.c
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/net'
make[1]: Leaving directory `/usr/src/linux-2.4.2/drivers'
Hi
Actually I am new to this process .I added ntfs file system module and some few( I think so ).but I don't know how to copy system.map and making before installing (when I issue make modules just after compiling the kernel I got the output I have provided, also I got the same when I issue that afterwards.
Exact percedure I followed is this.
to back up the existing kernel and source tree(thouthg is not directly related to the problem)
Then to configure the kernel and to create a .config file
#make xconfig
Then following (I also tried executing them in one line seperated by
#make dep;
#make clean;
#make bzImage ------------ up to this point I think it's ok
#make modules
#make modules_install
then to copy the boot image
#cp /usr/src/linux-2.4.2/arch/i386/boot/bzImage /boot/vmlinuz-2.4.2-2
and then to map the lilo (I suppose this is not important here)
# /sbin/lilo
After rebooting I confirmed the new kernel using
#uname -v
Originally posted by Dineth Hi
Actually I am new to this process .I added ntfs file system module and some few( I think so ).but I don't know how to copy system.map and making before installing (when I issue make modules just after compiling the kernel I got the output I have provided, also I got the same when I issue that afterwards.
Exact percedure I followed is this.
to back up the existing kernel and source tree(thouthg is not directly related to the problem)
Then to configure the kernel and to create a .config file
#make xconfig
Then following (I also tried executing them in one line seperated by
#make dep;
#make clean;
#make bzImage ------------ up to this point I think it's ok
#make modules
#make modules_install
then to copy the boot image
#cp /usr/src/linux-2.4.2/arch/i386/boot/bzImage /boot/vmlinuz-2.4.2-2
and then to map the lilo (I suppose this is not important here)
# /sbin/lilo
After rebooting I confirmed the new kernel using
#uname -v
Those you are getting are not errors:
Quote:
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.2/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.2/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.2/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/block'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/block'
make -C cdrom modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/cdrom'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/cdrom'
make -C char modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/char'
make -C drm modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/char/drm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/char/drm'
make -C pcmcia modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/char/pcmcia'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/char/pcmcia'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/char'
make -C ide modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/ide'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/ide'
make -C media modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/media'
make -C radio modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/radio'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/radio'
make -C video modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/video'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/video'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/media'
make -C misc modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/misc'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/misc'
make -C net modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h -c -o dummy.o dummy.c
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/net'
make[1]: Leaving directory `/usr/src/linux-2.4.2/drivers'
This is a normal output of make modules
Is this a linux-2.4.2 kernel source?
Post the output of:
$cd /usr/src/linux
$more Makefile
I don't understand which kernel version are you trying to compile.
Anyway it seems you did things properly, only first you refer to 2.4.2 and then to 2.4.2.2
Did you modify the EXTRAVERSION in /usr/linux-2.4.2/Makefile ?
output of Makefile + make module(refined)+make modules_install
Dear Sir ,
I think I have kernel 2.4.2. But some times in the file organization it ‘s as 2.4.2-2(may be the last digit is not important )
As you have asked I have included the file /usr/src/linux-2.4.2/Make file in the following section ( I found another file with the name Make file in the /usr/src/linux-2.4.2/arch/i386/Makefile(I have not included that file anyway)
(doing the process I explained the previous mail –I do not get modules (.o files) in the /lib/2.4.2-2/…. –that is my problem ).
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 2
EXTRAVERSION = -2
export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \
CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \
CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS MODFLAGS PERL
all: do-it-all
#
# Make "config" the default target if there is no configuration file or
# "depend" the target if there is no top-level dependency information.
#
ifeq (.config,$(wildcard .config))
include .config
ifeq (.depend,$(wildcard .depend))
include .depend
do-it-all: Version vmlinux
else
CONFIGURATION = depend
do-it-all: depend
endif
else
CONFIGURATION = config
do-it-all: config
endif
#
# INSTALL_PATH specifies where to place the updated kernel and system map
# images. Uncomment if you want to place them anywhere other than root.
#
#export INSTALL_PATH=/boot
#
# INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
# relocations required by build roots. This is not defined in the
# makefile but the arguement can be passed to make if needed.
#
#
# ROOT_DEV specifies the default root-device when making the image.
# This can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case
# the default of FLOPPY is used by 'build'.
# This is i386 specific.
#
export ROOT_DEV = CURRENT
#
# If you want to preset the SVGA mode, uncomment the next line and
# set SVGA_MODE to whatever number you want.
# Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode.
# The number is the same as you would ordinarily press at bootup.
# This is i386 specific.
#
export SVGA_MODE = -DSVGA_MODE=NORMAL_VGA
#
# If you want the RAM disk device, define this to be the size in blocks.
# This is i386 specific.
#
# If System.map exists, run depmod. This deliberately does not have a
# dependency on System.map since that would run the dependency tree on
# vmlinux. This depmod is only for convenience to give the initial
# boot a modules.dep even before / is mounted read-write. However the
# boot script depmod is the master version.
ifeq "$(strip $(INSTALL_MOD_PATH))" ""
depmod_opts :=
else
depmod_opts := -b $(INSTALL_MOD_PATH) -r
endif
.PHONY: _modinst_post
_modinst_post: _modinst_post_pcmcia
if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
# Backwards compatibilty symlinks for people still using old versions
# of pcmcia-cs with hard coded pathnames on insmod. Remove
# _modinst_post_pcmcia for kernel 2.4.1.
.PHONY: _modinst_post_pcmcia
_modinst_post_pcmcia:
cd $(MODLIB); \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
In the first place I have got the out put using #make modules>test.txt , but I found using this method will omit some output . So this time I have attached same output using copy paste (note some extra lines are there towards the later part (some error codes)
[root@localhost linux-2.4.2]# make modules
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.2/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.2/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.2/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/block'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/block'
make -C cdrom modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/cdrom'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/cdrom'
make -C char modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/char'
make -C drm modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/char/drm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/char/drm'
make -C pcmcia modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/char/pcmcia'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/char/pcmcia'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/char'
make -C ide modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/ide'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/ide'
make -C media modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/media'
make -C radio modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/radio'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/radio'
make -C video modules
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/video'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/video'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/media'
make -C misc modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/misc'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/misc'
make -C net modules
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h -c -o dummy.o dummy.c
In file included from dummy.c:34:
/usr/src/linux-2.4.2/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:173: parse error before `62dada05'
/usr/src/linux-2.4.2/include/linux/module.h:173: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.2/include/linux/module.h:173: warning: function declaration isn't a prototype
/usr/src/linux-2.4.2/include/linux/module.h:174: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:174: missing white space after number `7a9e845'
/usr/src/linux-2.4.2/include/linux/module.h:174: parse error before `7a9e845'
/usr/src/linux-2.4.2/include/linux/module.h:174: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.2/include/linux/module.h:174: warning: function declaration isn't a prototype
/usr/src/linux-2.4.2/include/linux/module.h:175: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.2/include/linux/module.h:175: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.2/include/linux/module.h:176: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.2/include/linux/module.h:176: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.2/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.2/include/linux/module.h:177: parse error before `6b99f7d8'
/usr/src/linux-2.4.2/include/linux/module.h:177: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.2/include/linux/module.h:177: warning: function declaration isn't a prototype
/usr/src/linux-2.4.2/include/linux/module.h:186: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.2/include/linux/module.h:186: warning: parameter names (without types) in function declaration
make[2]: *** [dummy.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.2/drivers'
make: *** [_mod_drivers] Error 2
[root@localhost linux-2.4.2]#
Also I have included the output of the command #make modules_install in the following.
[root@localhost linux-2.4.2]# make modules_install
make -C kernel modules_install
make[1]: Entering directory `/usr/src/linux-2.4.2/kernel'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.2/kernel'
---
--------code omitted to reduce the length of the message
--------
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/radio'
make -C video modules_install
make[3]: Entering directory `/usr/src/linux-2.4.2/drivers/media/video'
make[3]: Nothing to be done for `modules_install'.
make[3]: Leaving directory `/usr/src/linux-2.4.2/drivers/media/video'
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/media'
make -C misc modules_install
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/misc'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/misc'
make -C net modules_install
make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net'
mkdir -p /lib/modules/2.4.2-2/kernel/drivers/net/
cp dummy.o /lib/modules/2.4.2-2/kernel/drivers/net/
cp: cannot stat `dummy.o': No such file or directory
make[2]: *** [_modinst__] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/net'
make[1]: *** [_modinst_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.2/drivers'
make: *** [_modinst_drivers] Error 2
[root@localhost linux-2.4.2]#
Thanking you for ur great support in this issue
Dineth
will Hi sir,
Merry Xmas,
I tried the command make mrproper-could u tell me the purpose of this .
once I did that I realised that I can't recompile the kernel (with the existing kernel- I didn't download the new one).Bcoz I am getting some messages like missing configuration... (if u want I can post it) , once I issue #make depthis solve once I download the new kernel
Dineth
Hi
Finally got the modules in the lib/modules , that's good
but ,now having another problem, that's after recompiling the kernel, I can't boot the computer with the new boot image.
I am getting an erro
"Loading Linxu
uncompressing the kernl
run out of input data......
"
Could u pls help me with this.
Thanking you
Dineth
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.