LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-13-2004, 09:03 PM   #1
jisoo23
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora Core 1
Posts: 5

Rep: Reputation: 0
Weird problem building kernel in FC2


Hello all!

I've just installed FC2 on my Dell Inspiron laptop and it went pretty well. I ran into one snag though, I ran "make menuconfig" and selected a couple cryptography options for my wireless card. After saving the kernel changes Fedora said I had to run "make" to re-build the kernel with the new options. But I ran into this error message once I ran "make" :

Code:
[root@localhost build]# make
  SPLIT   include/linux/autoconf.h -> include/config/*
  CHK     include/asm-i386/asm_offsets.h
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/kallsyms
  CC      scripts/empty.o
  HOSTCC  scripts/mk_elfconfig
  MKELF   scripts/elfconfig.h
  HOSTCC  scripts/file2alias.o
  HOSTCC  scripts/modpost.o
  HOSTCC  scripts/sumversion.o
  HOSTLD  scripts/modpost
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/bin2c
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'.  Stop.
make: *** [init] Error 2
I ran "whereis main.o" to find that file but could not locate it. Does anyone know what's going on?

Thanks,
Jisoo23
 
Old 08-05-2004, 08:25 AM   #2
freetolio
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
Angry Same problem

I'm attempting to compile a kernel module for pwcx USB cam compression and it gave me the exact same error.

[root@cnesx10165 build]# make modules modules_install
SPLIT include/linux/autoconf.h -> include/config/*
CHK include/asm-i386/asm_offsets.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
[root@cnesx10165 build]#

The problem is that this happens in all of the following FC2 kernels :
2.6.5-1.358
2.6.6-1.435.2.3
2.6.7-1.494.2.2

This problem is mentioned in three different forums, but nobody has a solution for it.

Last edited by freetolio; 08-05-2004 at 08:29 AM.
 
Old 08-06-2004, 01:52 AM   #3
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176

Rep: Reputation: 31
jisoo23: What happens when you say make dep clean bzImage in a step-wise manner? There should a main.o file in the /usr/src/linux-2.xxx/init directory. I think this is created in the make bzImage step (not sure).
 
Old 08-06-2004, 09:14 AM   #4
freetolio
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
Unhappy no luck

running the suggested command did this:
[root@cnesx10165 build]# make dep clean bzImage
*** Warning: make dep is unnecessary now.
CLEAN init
CLEAN .tmp_versions
CLEAN include/asm-i386/asm_offsets.h
CHK include/asm-i386/asm_offsets.h
/bin/sh: line 1: arch/i386/kernel/asm-offsets.s: No such file or directory
UPD include/asm-i386/asm_offsets.h
mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or directory
make: *** [include/asm-i386/asm_offsets.h] Error 1

It removed some asm file that I needed.
Now I get the following error with the missing file:


[root@cnesx10165 build]# make modules modules_install
SPLIT include/linux/autoconf.h -> include/config/*
CHK include/asm-i386/asm_offsets.h
/bin/sh: line 1: arch/i386/kernel/asm-offsets.s: No such file or directory
UPD include/asm-i386/asm_offsets.h
mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or directory
make: *** [include/asm-i386/asm_offsets.h] Error 1


however, after replacing asm-offsets.s for this kernel with the one from another of my kernels, I now get the same old error of:

[root@cnesx10165 build]# make modules modules_install CHK include/asm-i386/asm_offsets.h
UPD include/asm-i386/asm_offsets.h
HOSTCC scripts/conmakehash
HOSTCC scripts/kallsyms
CC scripts/empty.o
HOSTCC scripts/mk_elfconfig
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTCC scripts/sumversion.o
HOSTLD scripts/modpost
HOSTCC scripts/pnmtologo
HOSTCC scripts/bin2c
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2

oh yeah, no main.o file yet

Help us!
 
Old 08-19-2006, 12:42 AM   #5
hhvv
Member
 
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Blog Entries: 1

Rep: Reputation: 15
Unhappy Same problem

Hi,
I faced the same problem when trying to compile after patching
Marvell Technology Gigabit sk98lin Driver
I have an HCl branded PC with this card .But no driver for RHEL4

What to do ?????????????/
 
Old 08-28-2006, 05:18 AM   #6
Ljo
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
did you solve your problems??

I have one too when I running make on a Redhat ES

[root@lnxtest02 2.6.9-34.EL-i686]# make
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
HOSTCC scripts/genksyms/parse.o
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
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

Anyone know how to solve this??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem building RH9 kernel modules dominicporter Red Hat 1 09-25-2005 12:53 PM
Can anyone please help me out on building a DNS and web Server on my machine FC2 babyboss Linux - Networking 5 08-05-2005 03:40 PM
Weird Rebooting Problem After Recompiling Kernel?????? jrg2004 Slackware 3 12-07-2004 06:51 PM
Problem Building Gentoo Kernel w33k Linux - Software 6 08-16-2004 03:17 AM
building a custom kernel...aic7xxx problem landonmkelsey Linux - Newbie 5 07-24-2001 12:43 AM

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

All times are GMT -5. The time now is 09:57 AM.

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