LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-04-2003, 02:46 AM   #1
r4v5
LQ Newbie
 
Registered: Jun 2003
Location: Illinois
Distribution: Slack 9
Posts: 4

Rep: Reputation: 0
kernel compile error


So after reading the helpful kernel recompilation thread, I grabbed 2.4.21 from kernel.org and extracted it. Symlinked it and all, and then went through the xconfig process. Last time it didn't work, and I was confused -- I must not have been reading the error messages too closely.
The last relevant line it chokes on is this:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sis_drv -c -o sis_drv.o sis_drv.c
In file included from sis_drv.c:62:
drm_context.h: In function `sisdrv_addctx':
drm_context.h:318: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See *gnu website* for instructions.
make[4]: *** [sis_drv.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.21/drivers/char/drm'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.21/drivers/char/drm'
make[2]: *** [_subdir_drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.21/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21/drivers'
make: *** [_dir_drivers] Error 2

So i figured "well, it must not like installing the DRM for XF86. Scrolling up, I see it has problems with AGP too, so i run xconfig again and take those out. Then, upon a second "make bzImage", it again quits with:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix include -DKBUILD_BASENAME=pty -DEXPORT_SYMTAB -c pty.c
In file included from /usr/src/linux-2.4.21/include/linux/rwsem.h:29,
from /usr/src/linux-2.4.21/include/asm/semaphore.h:42,
from /usr/src/linux-2.4.21/include/linux/fs.h:200,
from /usr/src/linux-2.4.21/include/linux/capability.h:17,
from /usr/src/linux-2.4.21/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.21/include/linux/sched.h:9,
from pty.c:18:
/usr/src/linux-2.4.21/include/asm/rwsem.h: In function `__up_write':
/usr/src/linux-2.4.21/include/asm/rwsem.h:232: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See *gnu website* for instructions.
make[3]: *** [pty.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.21/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.21/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21/drivers'
make: *** [_dir_drivers] Error 2

What *is* pty, and where is it in the menus? (i'm much too tired to tramp through it again :) How typical is this kind of errors-appearing-on-compile?
And what (other than "don't install it") can I do to fix it?
 
Old 07-04-2003, 03:59 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Ummm ... Not quite sure whether I'm getting
this wrong or not, but to me that looks like
a segfault. If you're getting segfaults during
kernel compilation you either have a
completely screwed up gcc, or a serious
hardware error...

Cheers,
Tink
 
Old 07-04-2003, 06:24 AM   #3
tungsten
Member
 
Registered: Jun 2003
Location: Orust, Sweden
Distribution: Slackware current
Posts: 95

Rep: Reputation: 15
Hi,

You may found some usefull ideas at http://www.madpenguin.org/search.php?query=&topic=17

Best regards
tungsten
 
  


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
Kernel Compile error JTR Debian 2 08-03-2005 01:54 PM
Compile kernel 2.6.11-2 error subaruwrx Debian 2 03-10-2005 02:10 AM
Kernel compile error theMagus Fedora 2 05-31-2004 04:09 PM
kernel 2.4.24 compile error german Linux - Software 6 01-30-2004 07:31 PM
Compile kernel error Lokii13 Linux - Newbie 1 02-26-2003 06:26 PM


All times are GMT -5. The time now is 10:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration