LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-27-2005, 02:03 PM   #1
Nunana
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Rep: Reputation: 0
No rule to make target `init/main.o'


Motherboard: Intel D815EEA PIII 866MHz
Memory: 512Mb
OS: Fedora Core 4
Kernel: 2.6.13-1.1526_FC4-i686
Me: Newbie

I am trying to get my USB memorystick as device in my PC.
After following the instructions from:
LinuxQuestions.org > LinuxAnswers > USB Card Reader HowTo
Trying to buikd my kernel ends with the make statement resulting in a:
make: *** [init] Error 2 (see below)
Can somebody help this newbie out. Other threads about this are not clear to me.
THNXS

# make && make modules_install
CHK include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
CHK include/asm-i386/asm_offsets.h
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c:546:5: warning: "YY_STACK_USED" is not defined
scripts/genksyms/lex.c:1424:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
scripts/genksyms/lex.c:1427:5: warning: "YY_NEVER_INTERACTIVE" is not defined
scripts/genksyms/lex.c:1718:5: warning: "YY_MAIN" is not defined
HOSTCC scripts/genksyms/parse.o
/usr/lib/bison.simple:164:5: warning: "YYMAXDEPTH" is not defined
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function ‘parse_file’:
scripts/mod/sumversion.c:260: warning: pointer targets in passing argument 1 of ‘grab_file’ differ in signedness
scripts/mod/sumversion.c:277: warning: pointer targets in passing argument 1 of ‘parse_string’ differ in signedness
scripts/mod/sumversion.c:283: warning: pointer targets in passing argument 1 of ‘parse_comment’ differ in signedness
scripts/mod/sumversion.c: In function ‘parse_source_files’:
scripts/mod/sumversion.c:335: warning: pointer targets in initialization differ in signedness
scripts/mod/sumversion.c:344: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:357: warning: pointer targets in passing argument 1 of ‘parse_file’ differ in signedness
scripts/mod/sumversion.c: In function ‘strip_rcs_crap’:
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:485: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:486: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c: In function ‘maybe_frob_rcs_version’:
scripts/mod/sumversion.c:496: warning: pointer targets in passing argument 1 of ‘strip_rcs_crap’ differ in signedness HOSTLD scripts/mod/modpost
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
 
Old 10-31-2005, 07:59 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Is this a sigle device?
It is not one of those multi-slot card readers is it?

What output do you get when it is plugged in from these commands.
/sbin/lsusb
/sbin/fdisk -l
cat /proc/scsi/scsi

fdisk -l needs to be run as root

Lets go from here.
Brian1
 
Old 11-06-2005, 04:23 AM   #3
Nunana
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Original Poster
Rep: Reputation: 0
When i was bboting with USB-mem in my PC it was working.
When i boot it without it is evengone from my /etc/fstab
Answers:
[root@fluffy dev]# /sbin/lsusb
-bash: /sbin/lsusb: No such file or directory
[root@fluffy dev]# /sbin/fdisk -l

Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 4866 38981722+ 8e Linux LVM

Disk /dev/hdd: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 14596 117242338+ 7 HPFS/NTFS

Disk /dev/sda: 32 MB, 32768000 bytes
3 heads, 32 sectors/track, 666 cylinders
Units = cylinders of 96 * 512 = 49152 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 667 31983 4 FAT16 <32M
Partition 1 has different physical/logical endings:
phys=(1000, 2, 32) logical=(666, 1, 30)
[root@fluffy dev]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: OPTI3 Model: Flash Disk Rev: 7.79
Type: Direct-Access ANSI SCSI revision: 02
[root@fluffy dev]#
 
Old 03-16-2007, 10:30 PM   #4
davidbackeberg
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Angry SOLUTION to "No rule to make target 'init/main.o'"

Quote:
Originally Posted by Nunana
OS: Fedora Core 4
Kernel: 2.6.13-1.1526_FC4-i686

Trying to buikd my kernel ends with the make statement resulting in a:
make: *** [init] Error 2 (see below)

# make && make modules_install
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
The problem is that Red Hat Enterprise Linux 4 (RHEL 4), and therefore, Fedora, ships with a fake kernel source that's more than kernel header files, and less than a full kernel.
You CAN make menuconfig
You CAN make modules
You CANNOT make
You CANNOT make bzImage
Your kernel will never build because it's not a full kernel.

If you want to build a real kernel, you have to download the src.rpm for the kernel version you wish to rebuild, then install the src.rpm, then copy the kernel source from /usr/src/redhat/... to a sensible location like
/usr/src/

See documents like
http://kbase.redhat.com/faq/FAQ_85_5109.shtm
and
http://www.howtoforge.com/kernel_compilation_fedora

What Red Hat should do is CHANGE THEIR MAKEFILE
to give a meaningful error when somebody types make
or make bzImage

Right now, it instead looks like a legitimate kernel misconfiguration problem. Are you listening Red Hat?
 
Old 03-18-2007, 06:04 AM   #5
Nunana
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Wink

Thnx davidbackeberg now i understand why.
This is one of the reasons i switched to Debian.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No rule to make target coal-fire-ice Linux - Software 2 07-21-2005 11:28 AM
no rule to make target - what does this mean? rolfbeethoven Linux - Newbie 1 12-08-2004 09:08 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: *** No rule to make target 'gconfig'. Stop. cswake Slackware 4 10-10-2004 12:13 PM
No rule to make target? jimdaworm Linux - Newbie 21 08-27-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration