Kernel Build Error - *** No rule to make target `init/main.o'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am unable to build a new kernel using source for FC4. I am running on a
single processor Sony VAIO system using an AMD 1400 Athlon with 512 MB RAM.
I am trying to build the kernel from /usr/src/kernels/2.6.11-1.1369_FC4


output from `uname -a`:

Linux barney 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 athlon i386 GNU/Linux

output from `make bzImage` (abreviated):
.
.
.
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
scripts/conmakehash.c: In function ‘getunicode’:
scripts/conmakehash.c:36: warning: pointer targets in initialization differ in signedness scripts/conmakehash.c:44: warning: pointer targets in assignment differ in signedness scripts/conmakehash.c:45: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness
HOSTCC scripts/bin2c
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2


ls -al on /usr/src/kernels/2.6.11.1-1369_FC4:

drwxr-xr-x 17 root root 4096 Apr 13 13:26 .
drwxr-xr-x 4 root root 4096 Jan 12 17:17 ..
drwxr-xr-x 26 root root 4096 Jan 12 17:17 arch
-rw-r--r-- 1 root root 52490 Apr 13 13:25 .config
-rw-r--r-- 1 root root 5260 Apr 13 13:25 .config.cmd
-rw-r--r-- 1 root root 52490 Apr 13 13:24 .config.old
-rw-r--r-- 1 root root 56991 Apr 11 20:33 .config.orig
drwxr-xr-x 4 root root 4096 Jan 12 17:17 crypto
drwxr-xr-x 50 root root 4096 Jan 12 17:17 drivers
drwxr-xr-x 54 root root 4096 Jan 12 17:17 fs
drwxr-xr-x 16 root root 4096 Apr 11 20:35 include
drwxr-xr-x 2 root root 4096 Apr 12 14:39 init
drwxr-xr-x 2 root root 4096 Jan 12 17:17 ipc
drwxr-xr-x 4 root root 4096 Jan 12 17:17 kernel
drwxr-xr-x 5 root root 4096 Jan 12 17:17 lib
-rw-r--r-- 1 root root 44042 Apr 12 12:46 Makefile
drwxr-xr-x 2 root root 4096 Jan 12 17:17 mm
drwxr-xr-x 33 root root 4096 Jan 12 17:17 net
drwxr-xr-x 10 root root 4096 Apr 13 13:26 scripts
drwxr-xr-x 4 root root 4096 Jan 12 17:17 security
drwxr-xr-x 16 root root 4096 Jan 12 17:17 sound
drwxr-xr-x 2 root root 4096 Jan 12 17:17 usr

contents of Makefile in the "init" sub-directory:

#
# Makefile for the linux kernel.
#

obj-y := main.o version.o mounts.o initramfs.o
obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o

mounts-y := do_mounts.o
mounts-$(CONFIG_DEVFS_FS) += do_mounts_devfs.o
mounts-$(CONFIG_BLK_DEV_RAM) += do_mounts_rd.o
mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o
mounts-$(CONFIG_BLK_DEV_MD) += do_mounts_md.o

# files to be removed upon make clean
clean-files := ../include/linux/compile.h

# dependencies on generated files need to be listed explicitly

$(obj)/version.o: include/linux/compile.h

# compile.h changes depending on hostname, generation number, etc,
# so we regenerate it always.
# mkcompile_h will make sure to only update the
# actual file if its content has changed.

include/linux/compile.h: FORCE
@echo ' CHK $@'
@$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"

Thanks



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux