Gentoo Archives: gentoo-user

From: Ben Reubenstein <benr@××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] linux make modules fails
Date: Fri, 19 May 2006 02:56:08
Message-Id: 44c79a160605181943obe8cb7fgd5d1296957f5afe9@mail.gmail.com
In Reply to: [gentoo-user] linux make modules fails by Justin Findlay
1 Hi Justin ~
2
3 Read the docs on Gentoo.org. Understand what Stage 2 is. If not ,
4 you might be better off with Unbuntu.
5
6 I promise if you follow the docs you will get a wonderful, running
7 Gentoo system.
8
9 URL: http://www.gentoo.org/doc/en/index.xml?catid=install#doc_chap2
10
11 ~ Ben
12
13 On 5/18/06, Justin Findlay <jfindlay@×××××.com> wrote:
14 > When I try to build the 'modules' target with linux it doesn't create
15 > the .ko files. It seems to get stuck at 'stage 2', whatever that
16 > means, and I am at a loss finding out what exactly stage 2 is, from
17 > looking at scripts/Makefile.modpost, and why it doesn't build.
18 >
19 > This happens with either a vanilla-sources or gentoo-sources kernel
20 > and doesn't happen when I try to build the gentoo kernel from within
21 > another system, like a knoppix liveCD.
22 >
23 > # make V=1 modules
24 > rm -f .kernelrelease
25 > echo 2.6.17-rc4 > .kernelrelease
26 > set -e; echo ' CHK include/linux/version.h'; mkdir -p
27 > include/linux/; if [ `echo -n "2.6.17-rc4" | wc -c ` -gt 64 ];
28 > then echo '"2.6.17-rc4" exceeds 64 characters' >&2; exit 1; fi; (echo
29 > \#define UTS_RELEASE \"2.6.17-rc4\"; echo \#define LINUX_VERSION_CODE
30 > `expr 2 \\* 65536 + 6 \\* 256 + 17`; echo '#define
31 > KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; ) <
32 > /usr/src/linux-2.6.17-rc4/Makefile > include/linux/version.h.tmp; if [
33 > -r include/linux/version.h ] && cmp -s include/linux/version.h
34 > include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp;
35 > else echo ' UPD include/linux/version.h'; mv -f
36 > include/linux/version.h.tmp include/linux/version.h; fi
37 > CHK include/linux/version.h
38 > make -f scripts/Makefile.build obj=scripts/basic
39 > mkdir -p .tmp_versions
40 > rm -f .tmp_versions/*
41 > make -f scripts/Makefile.build obj=.
42 > mkdir -p arch/x86_64/kernel/
43 > make -f scripts/Makefile.build obj=scripts
44 > ...
45 >
46 > Building modules, stage 2.
47 > make -rR -f /usr/src/linux-2.6.17-rc4/scripts/Makefile.modpost
48 > scripts/mod/modpost -m -a -o
49 > /usr/src/linux-2.6.17-rc4/Module.symvers vmlinux
50 >
51 >
52 > Justin
53 > --
54 > gentoo-user@g.o mailing list
55 >
56 >
57
58
59 --
60 Ben Reubenstein
61 303-947-0446
62 http://www.benr75.com
63
64 --
65 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] linux make modules fails Justin Findlay <jfindlay@×××××.com>
Re: [gentoo-user] linux make modules fails Richard Fish <bigfish@××××××××××.org>