LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-07-2005, 05:17 PM   #1
ticky87
LQ Newbie
 
Registered: Jun 2004
Location: Cambridge, MA
Distribution: RHEL4
Posts: 22

Rep: Reputation: 15
Angry asm compile problems


The following spits out when I run "make clean bzImage" after saving a new config file for my kernel:

CLEAN include/asm-i386/asm_offsets.h
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
/bin/sh: 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

This is on a clean install of RHEL4 with kernel 2.6.9-11 How can I fix it?
Thanks for the help
 
Old 10-08-2005, 09:56 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,015
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
Notice that the paths its gving you are relative (i.e. don't start with "/"). Its complaining about not being able to file files relative to the directory you're in when you run it.

If you're in /home/myusername for example it is first complaining about not being able to find:

/home/myusername/arch/i386/kernel/asm_offsets.s

If however you're in /usr/local for example it is first complaining about not being able to find:

/usr/local/arch/i386/kernel/asm_offsets.s

Just do "pwd" to find out which directory you're in then check to see if you have the file arch/i386/kernel/asm_offsets.s under it (ls -ld arch/i386/kernel/asm_offsets.s will tell you).

I'd disregard the last "stat" error until I'd resolved the above path as it may be the lack of the above causes the latter error. If you resolve the above and still get it then you look for the file it is complaining about in the "stat" because that too is telling you it can't find it.

Also make sure you have permissions for the directory if it exists.
 
Old 10-09-2005, 12:15 AM   #3
ticky87
LQ Newbie
 
Registered: Jun 2004
Location: Cambridge, MA
Distribution: RHEL4
Posts: 22

Original Poster
Rep: Reputation: 15
I'm in /usr/src/linux which is an slink to /lib/modules/2.6.9-11.EL/build which in turn is an slink to /usr/src/kernels/2.6.9-11.EL-i686

Then I followed your directions and got this
Code:
[root@localhost linux]# locate asm-offsets.s
/usr/src/kernels/2.6.9-11.EL-hugemem-i686/arch/i386/kernel/asm-offsets.s
/usr/src/kernels/2.6.9-11.EL-smp-i686/arch/i386/kernel/asm-offsets.s
[root@localhost linux]# cp /usr/src/kernels/2.6.9-11.EL-smp-i686/arch/i386/kernel/asm-offsets.s arch/i386/kernel/
[root@localhost linux]# ls arch/i386/kernel/
acpi  asm-offsets.s  cpu  Makefile  timers
[root@localhost linux]# make clean bzImage 
  CHK     include/linux/version.h
  CHK     include/asm-i386/asm_offsets.h
/bin/sh: 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
[root@localhost linux]# ls arch/i386/kernel/
acpi  cpu  Makefile  timers
For some reason it is deleting the file and then asking to use it.
 
  


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
Have you seen such asm code? snowing Programming 2 07-07-2005 05:13 AM
Linux 32 ASM introuble Programming 2 05-10-2005 06:56 AM
problems with linking objects -- must know some nasm\ASM\linker Paul6253 Programming 1 10-26-2004 08:33 PM
asm/uaccess.h eltn Programming 2 10-22-2004 06:14 PM
Jumping in asm LongName Programming 3 08-31-2004 07:27 PM


All times are GMT -5. The time now is 02:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration