LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   problem with 5.51 make headers_check (https://www.linuxquestions.org/questions/linux-from-scratch-13/problem-with-5-51-make-headers_check-654385/)

rodrigomeira 07-08-2008 03:11 PM

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

feilb 07-09-2008 09:26 AM

Did you change ownership of the sources directory to lfs with chown?

Also, ensure you are logged in as lfs.

rodrigomeira 07-09-2008 10:23 PM

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

Mr. C. 07-09-2008 10:29 PM

Run this and show output:
Code:

ls -ld include/linux
ls -l include/linux/version.h.tmp
id


rodrigomeira 07-10-2008 04:57 PM

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)

Mr. C. 07-10-2008 07:04 PM

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.

rodrigomeira 07-11-2008 01:49 PM

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


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