Author Topic: Kernel build dies quickly with updated gcc  (Read 1313 times)

Offline henryz

  • Full Member
  • ***
  • Posts: 117
Kernel build dies quickly with updated gcc
« on: October 04, 2009, 06:30:35 PM »
Tried to rebuild my 2.6.26.8-rt15 kernel with the new gcc.  It failed as shown below:  Also tried a fresh, new 2.6.31 with the same results.  What am I doing wrong, here?

root@localhost linux]# make xconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:157,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:122,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:11,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:40,
                 from /usr/include/netinet/in.h:25,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:117:
/usr/include/bits/socket.h:366:24: error: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:206: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:206: error: for each function it appears in.)
scripts/basic/fixdep.c:206: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:306: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: unused variable ‘s’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

Thanks.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Kernel build dies quickly with updated gcc
« Reply #1 on: October 04, 2009, 06:34:50 PM »
http://www.pclinuxos.com/forum/index.php?topic=62982.0

you did not install "kernel-headers 2.6.30-2"
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline henryz

  • Full Member
  • ***
  • Posts: 117
Re: Kernel build dies quickly with updated gcc
« Reply #2 on: October 04, 2009, 07:08:51 PM »
OK - that gets us over the initial hurdle.  We'll see if we get thru the whole kernel build plus nvidia driver rebuild.

Thanks

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12655
Re: Kernel build dies quickly with updated gcc
« Reply #3 on: October 04, 2009, 10:00:10 PM »
OK - that gets us over the initial hurdle.  We'll see if we get thru the whole kernel build plus nvidia driver rebuild.

Thanks

Are you using specific RT patches and a custom kernel config or just a custom kernel config?


Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline henryz

  • Full Member
  • ***
  • Posts: 117
Re: Kernel build dies quickly with updated gcc
« Reply #4 on: October 05, 2009, 08:23:50 AM »
I typically use Ingo's RT patch set and a custom config (mostly to remove modules and features that I don't need).  I did get 2.6.31-rt11 to build and boot after installing the kernel headers package as suggested by muungwana.  The nvidia video drivers have issues with that particular kernel/RT patch set.  I see that there's a patch on the nvnews forum that's supposed to address that issue and plan to give it a try.  It's all parts of the fun!  (I always make a full system backup with Partimage before venturing into these type of waters...)

How do you guys put together the kernel-headers (former kernel-devel) package?  Do you have a specific list of files that you grab from the full kernel sources.  If I insist on being a contrary rebel and build customer kernels (from full sources) with custom configs, what is the "cleanest" way to handle the "includes" within the current pclos framework?

Offline henryz

  • Full Member
  • ***
  • Posts: 117
Re: Kernel build dies quickly with updated gcc
« Reply #5 on: October 05, 2009, 07:38:17 PM »
This patch http://pavlinux.ru/nv/nvidia-190.32-for-2.6.31.patch will allow latest nvidia drivers to be built with the new gcc/2.6.31-rt11.  The patch also works on 190.36 (current beta driver).

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12655
Re: Kernel build dies quickly with updated gcc
« Reply #6 on: October 06, 2009, 10:11:36 PM »
This patch http://pavlinux.ru/nv/nvidia-190.32-for-2.6.31.patch will allow latest nvidia drivers to be built with the new gcc/2.6.31-rt11.  The patch also works on 190.36 (current beta driver).


Thanks for the information.

Tex

Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12655
Re: Kernel build dies quickly with updated gcc
« Reply #7 on: October 09, 2009, 03:18:03 AM »
You can try this:

Make sure you have the kernel-source package installed for the kernel you wish to rebuild.

rename /usr/include/linux to /usr/include/linux.ORG

symlink /usr/src/linux-2.6.26.8-rt15/include/linux back to /usr/include/linux


Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.