LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Make Headers_Install error Slackware64 (https://www.linuxquestions.org/questions/slackware-14/make-headers_install-error-slackware64-849967/)

linus72 12-13-2010 12:38 PM

Make Headers_Install error Slackware64
 
hey guys
so I was trying to make a 64bit 2.6.36.2 kernel for my multilib slackware64 setup and when doing "make headers_install" I get this error
Code:

  CHK    include/linux/version.h
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:157:0,
                from /usr/include/limits.h:145,
                from /usr/lib64/gcc/x86_64-slackware-linux/4.5.1/include-fixed/limits.h:169,
                from /usr/lib64/gcc/x86_64-slackware-linux/4.5.1/include-fixed/syslimits.h:7,
                from /usr/lib64/gcc/x86_64-slackware-linux/4.5.1/include-fixed/limits.h:34,
                from scripts/basic/fixdep.c:114:
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

Can anyone tell me why this happened and if it can be fixed?
Thanks

EDIT: is this because it's multilib/compat32pkg?
do I need to go back to GCC for 64?

H_TeXMeX_H 12-13-2010 01:17 PM

Don't install the kernel headers unless you have a very good reason to, they can cause problems. You have to recompile other packages if you want things to work properly.

rworkman 12-13-2010 01:30 PM

You shouldn't be doing that anyway - the kernel headers on the system should match the ones that glibc is compiled against.

linus72 12-13-2010 02:21 PM

oh
I guess I didnt realize that...

So, it doesnt matter if the kernel/modules etc are 2.6.36.2 and the headers are 2.6.35.7??
I just wanted the headers to match the 2.6.36.2 kernel

What would have to be recompiled to make a 2.6.36.2 header pkg?
thanks

H_TeXMeX_H 12-13-2010 02:28 PM

Certainly glibc would, maybe other things too.

linus72 12-13-2010 04:13 PM

ok
but it is OK to have different kernel, etc than headers
like I have a 2.6.36.2 kernel compiled with 2.6.35.7 headers
thats OK right?

rfernandez 12-13-2010 04:23 PM

Yes, it is. Actually, this should stay like this. You'll only have to update your headers when glibc is updated, which both occur at the same time on the Slackware changelog. Alien Bob has a nice article about this in his wiki, which you should read: http://alien.slackbook.org/dokuwiki/...kernelbuilding

gnashley 12-14-2010 01:41 AM

In some other distros, the headers package is called libc-headers instead of kernel-headers which may lead to less confusion. The bottom line is that the headers have absolutely no relation to the kernel version you are using. They have everything to do with the glibc version of your system -glibc is compiled against those headers so they should only be changed when glibc is re-compiled.


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