LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   kernel compile error (http://www.linuxquestions.org/questions/slackware-14/kernel-compile-error-70001/)

r4v5 07-04-2003 01:46 AM

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?

Tinkster 07-04-2003 02:59 AM

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

tungsten 07-04-2003 05:24 AM

Hi,

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

Best regards
tungsten


All times are GMT -5. The time now is 12:55 PM.