Re: Compiling a kernel giving me fits...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2002-11-28 at 06:47, Michael Schwendt wrote:

> [snip]
> 
> > fs/fs.o: In function `zisofs_readpage':
> > fs/fs.o(.text+0x346ec): undefined reference to `zlib_inflateInit_'
> > fs/fs.o(.text+0x347ee): undefined reference to `zlib_inflate'
> > fs/fs.o(.text+0x348a0): undefined reference to `zlib_inflateEnd'
> > fs/fs.o: In function `mnt_init':
> > fs/fs.o(.text.init+0xafc): undefined reference to `init_rootfs'
> > fs/fs.o: In function `zisofs_init':
> > fs/fs.o(.text.init+0xf61): undefined reference to
> > `zlib_inflate_workspacesize'
> > make[1]: *** [kallsyms] Error 1
> > make[1]: Leaving directory `/usr/src/linux-2.4.18-18.8.0'
> > make: *** [vmlinux] Error 2
> 
> This is exactly the known bug in xconfig which I've mentioned
> earlier. You would find it somewhere in the depths of
> http://bugzilla.redhat.com
> 
> Use "make menuconfig" instead.
> 
> > I have seen segfaults on occasion when trying to fix this via make
> > xconfig. Sounds more like the problem is with xconfig --if it's
> > broken, trying to change anything would likely cause anything to
> > happen.
> 
> What causes a segmentation fault? xconfig or GCC? Both should
> be reported somewhere if they are reproducible.
> 

Actually, now I am getting a segfault using make modules. To be certain,
I did this twice by removing and replacing the source tree:

rpm -e kernel-source
rm -Rf /usr/src/kernel-2.4.18-18.8.0 (because rpm -e doesn't delete
this, which is good BTW).
rpm -Uvh kernel-source-2.4.18-18.8.0.i386.rpm

Then, I did the following:
make mrproper
cp configs/kernel-2.4.18-i686.config ./.config
make oldconfig
make dep
make bzImage
make modules

...Now, I am get the following, and it is a segfault when compiling the
ftape module:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-18.8.0/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.18-18.8.0/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include
-DKBUILD_BASENAME=ftape_read  -c -o ftape-read.o ftape-read.c
ftape-read.c: In function `correct_and_copy_fraction':
ftape-read.c:152: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make[4]: *** [ftape-read.o] Error 1
make[4]: Leaving directory
`/usr/src/linux-2.4.18-18.8.0/drivers/char/ftape/lowlevel'
make[3]: *** [_modsubdir_lowlevel] Error 2
make[3]: Leaving directory
`/usr/src/linux-2.4.18-18.8.0/drivers/char/ftape'
make[2]: *** [_modsubdir_ftape] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-18.8.0/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-18.8.0/drivers'
make: *** [_mod_drivers] Error 2

If I run make modules again right after this, ftape compiles, but then
it segfaults AGAIN compiling hycapi:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-18.8.0/include -Wall
-Wstrict-prototype
s -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe
 -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
-include /usr/s
rc/linux-2.4.18-18.8.0/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-li
b/i386-redhat-linux/3.2/include -DKBUILD_BASENAME=hycapi  -c -o hycapi.o
hycapi.
c
hycapi.c: In function `hycapi_register_internal':
hycapi.c:186: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make[3]: *** [hycapi.o] Error 1
make[3]: Leaving directory
`/usr/src/linux-2.4.18-18.8.0/drivers/isdn/hysdn'
make[2]: *** [_modsubdir_hysdn] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-18.8.0/drivers/isdn'
make[1]: *** [_modsubdir_isdn] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-18.8.0/drivers'
make: *** [_mod_drivers] Error 2

Eventually, if you run make modules repeatedly, everything will compile.
Could this be a problem with GCC?

...go figure.

Ideas welcome.

Cheers,

Chris Williams

-- 
====================================
"If you get to thinkin' you're a
person of some influence, try
orderin' someone else's dog around."
--Cowboy Wisdom



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux