LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-08-2008, 03:11 PM   #1
rodrigomeira
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
problem with 5.51 make headers_check


I am facing a problem when I issue "make headers_check" command.
Host system : Debian 2.6.18


The entire message error:

lfs@debian:/sources/linux-2.6.22.5$make headers_check
CHK include/linux/version.h
/bin/sh: include/linux/version.h.tmp: Permission denied
UPD include/linux/version.h
mv: cannot stat `include/linux/version.h.tmp`: No such file or directory
make:*** [include/linux/version.h] Error 1

Can someone please explain what is causing the problem ?

Binutils-2.17 and GCC-4.1.2 went well without erros.


Até mais
Rodri
 
Old 07-09-2008, 09:26 AM   #2
feilb
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Did you change ownership of the sources directory to lfs with chown?

Also, ensure you are logged in as lfs.
 
Old 07-09-2008, 10:23 PM   #3
rodrigomeira
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Feilb:

The answer is yes. I did change the ownership of the sources directory with chown and i am always logged als lfs. I don´t what do to do. I made all word for word. I have reinstalled my Linux host one time to "refresh" all.

Rodrigo
 
Old 07-09-2008, 10:29 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Run this and show output:
Code:
ls -ld include/linux
ls -l include/linux/version.h.tmp
id
 
Old 07-10-2008, 04:57 PM   #5
rodrigomeira
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Mr. C

lfs@debian:/sources/linux-2.6.22.5$ ls -ld include/linux
drwxrwxr-x 23 root root 20480 2007-08-22 20:23 include/linux

lfs@debian:/sources/linux-2.6.22.5$ ls -l include/linux/version.h.tmp
ls: include/linux/version.h.tmp: Arquivo ou diretório não encontrado (file or directory doesn´t exist)

lfs@debian:/sources/linux-2.6.22.5$ id
uid=1001(lfs) gid=1001(lfs) grupos=1001(lfs)
 
Old 07-10-2008, 07:04 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
So there you go. Use "lfs" is not user "root" and is not in group "root". User "lfs" has no write permission in that directory. You can chgrp -R lfs include, or chown -R include, or become root and do the compile.
 
Old 07-11-2008, 01:49 PM   #7
rodrigomeira
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
It worked Mr C. I used chgrp -R lfs linux-2.6.22.5 and its working now. I think its because i bunzip2 linux-2.6.22.5 as root. As you can see I am new in Linux. Thank you. Just another question. In one chapter of the book LFS the autor says to after installing each part we muss delete the source and the build directories. this means that we must now, after API headers, delete the subdirectory linux-2.6.22.5 ? Thank you for the tricks.

Rodrigo
 
  


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
make headers_check errors [LFS V6.3, Sect 6.7 Linux-2.6.22.5 API Headers] michealoc Linux From Scratch 1 10-11-2007 09:03 AM
"make headers_check" gives errors during "5.5.1 Installation of Linux API headers " void_man() Linux From Scratch 3 09-26-2007 09:16 PM
Make Trouble linking some fortran code Make file problem? any ideas? TheBrick Linux - General 0 05-17-2006 11:21 AM
make xconf;make gconf problem Soqool Linux - Newbie 3 06-12-2005 12:00 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:23 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