[Linux-disciples] Kernel errors

Adam Kessel adam at rosi-kessel.org
Tue Jun 22 12:45:50 EDT 2004


Are you using JFS?

When I get these errors (which I haven't for a long time now), it's
almost always something with the toolchain for building, rather than the
source itself.  Bleeding edge kernels build best with bleeding/leading
edge compilers.  My default gcc (gcc -v) is 3.3.4; what's yours?  Do you
know which compiler the makefile is using?  It may just default to the
/usr/bin/gcc.

Anything that's been released on kernel.org is pretty damn likely to
build with the proper tools no matter what the build options.  It's
conceivable that the Makefile omitted some prerequisites--i.e., JFS
depends on some other code being built, but someone forgot to include
it.  Unlikely, though.

On Tue, 2004-06-22 at 12:34, Stephen R Laniel wrote:
> It's frustrating: sometimes compiling the kernel will go a
> long way, and then fail cryptically. E.g.,
> 
> /*
> fs/jfs/jfs_dtree.c: In function `add_index':
> fs/jfs/jfs_dtree.c:388: parse error before `struct'
> fs/jfs/jfs_dtree.c:389: `temp_table' undeclared (first use in this function)
> fs/jfs/jfs_dtree.c:389: (Each undeclared identifier is reported only once
> fs/jfs/jfs_dtree.c:389: for each function it appears in.)
> make[3]: *** [fs/jfs/jfs_dtree.o] Error 1
> make[2]: *** [fs/jfs] Error 2
> make[1]: *** [fs] Error 2
> make[1]: Leaving directory `/usr/src/kernel-source-2.6.7/linux-2.6.7'
> make: *** [stamp-build] Error 2
> */
> 
> a) I'm not clear why this happened. I copied over the config
> file from my properly working 2.6.6-2 kernel, then ran
> make-kpkg clean and make-kpkg kernel_image. Any idea what
> this could be about?
>  
> b) In general, what does one do for these sorts of errors?
> Grep through the code, or is there a higher-level approach?
-- 
Adam Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040622/55816210/attachment.pgp


More information about the Linux-disciples mailing list