Re: 2.5.19 : 'make dep' error

Kai Germaschewski (kai@tp1.ruhr-uni-bochum.de)
Wed, 29 May 2002 15:37:15 -0500 (CDT)


On Wed, 29 May 2002, Frank Davis wrote:

> make[1]: Entering directory `/usr/src/linux/scripts'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o split-include split-include.c
> In file included from /usr/include/linux/errno.h:4,
> from /usr/include/bits/errno.h:25,
> from /usr/include/errno.h:36,
> from split-include.c:26:
> /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
> make[1]: *** [split-include] Error 1
> make[1]: Leaving directory `/usr/src/linux/scripts'
> make: *** [scripts/mkdep] Error 2

Uh-oh, your system doesn't build user space applications (that's not even
kernel specific). I suppose you have a symlink from /usr/include/asm
to /usr/src/linux/include/asm? Ask google why that is not a good idea -
well, actually, you have the answer right there ;-)

The kernel asm-i386/errno.h was changed to just include
asm-generic/errno.h in 2.5.19. Unfortunately, due to the symlink, your
userspace includes the kernel asm/errno.h, which now points to the (for
userspace non existing) asm-generic/errno.h - bad luck.

So fix your setup to not use symlinks, or, at least, put an older kernel
back into /usr/src/linux and compile the new kernels elsewhere.

--Kai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/