When I try to build the 'modules' target with linux it doesn't create
the .ko files.  It seems to get stuck at 'stage 2', whatever that
means, and I am at a loss finding out what exactly stage 2 is, from
looking at scripts/Makefile.modpost, and why it doesn't build.

This happens with either a vanilla-sources or gentoo-sources kernel
and doesn't happen when I try to build the gentoo kernel from within
another system, like a knoppix liveCD.

# make V=1 modules
rm -f .kernelrelease
echo 2.6.17-rc4 > .kernelrelease
set -e; echo '  CHK     include/linux/version.h'; mkdir -p
include/linux/;      if [ `echo -n "2.6.17-rc4" | wc -c ` -gt 64 ];
then echo '"2.6.17-rc4" exceeds 64 characters' >&2; exit 1; fi; (echo
\#define UTS_RELEASE \"2.6.17-rc4\"; echo \#define LINUX_VERSION_CODE
`expr 2 \\* 65536 + 6 \\* 256 + 17`; echo '#define
KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; ) <
/usr/src/linux-2.6.17-rc4/Makefile > include/linux/version.h.tmp; if [
-r include/linux/version.h ] && cmp -s include/linux/version.h
include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp;
else echo '  UPD     include/linux/version.h'; mv -f
include/linux/version.h.tmp include/linux/version.h; fi
 CHK     include/linux/version.h
make -f scripts/Makefile.build obj=scripts/basic
mkdir -p .tmp_versions
rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=.
mkdir -p arch/x86_64/kernel/
make -f scripts/Makefile.build obj=scripts
...

 Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.17-rc4/scripts/Makefile.modpost
 scripts/mod/modpost -m -a -o
/usr/src/linux-2.6.17-rc4/Module.symvers   vmlinux


Justin
--
gentoo-user@gentoo.org mailing list

Reply via email to