Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: make of gentoo-sources-3.2.12 fails
Date: Thu, 17 May 2012 21:01:35
Message-Id: 20120517225941.6e5eec49@weird.wonkology.org
In Reply to: Re: [gentoo-user] Re: make of gentoo-sources-3.2.12 fails by Michael Scherer
1 Michael Scherer writes:
2
3 > 1) make output:
4 >
5 > CHK include/linux/version.h
6 > CHK include/generated/utsrelease.h
7 > CALL scripts/checksyscalls.sh
8 > CHK include/generated/compile.h
9 > LD init/mounts.o
10 > ls -Al -m elf_x86_64 -r -o init/mounts.o init/do_mounts.o
11 > init/do_mounts_initrd.o init/mounts.o: No such file or directory
12 > make[1]: *** [init/mounts.o] Error 1
13 > make: *** [init] Error 2
14 >
15 > There is an LD, the ls line is part of the error message.
16
17 But the options look really more like ld options to me. How this could
18 possibly happen, I don't know. Some overriding of $(LD) perhaps? Does
19 "env | egrep -i 'ls|ld'" show something weird? Does it also fail as a
20 non-root user, after you copied the stuff over to somewhere where this
21 user can write? Just grasping at straws here.
22
23
24 > But without doubt you are right that mounts.o is not built, for
25 > whatever reason.
26
27 Because ld should build it from init/do_mounts.o, but ls is being called
28 instead?
29
30 > The build command
31 >
32 > init/.do_mounts.o.cmd:cmd_init/do_mounts.o := gcc
33 > -Wp,-MD,init/.do_mounts.o.d -nostdinc
34 > -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
35 > -I/usr/src/linux-3.2.12-gentoo/arch/x86/include
36 > -Iarch/x86/include/generated -Iinclude
37 > -include /usr/src/linux-3.2.12-gentoo/include/linux/kconfig.h
38 > -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
39 > -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
40 > -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=k8
41 > -mno-red-zone -mcmodel=kernel -funit-at-a-time
42 > -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1
43 > -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1
44 > -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare
45 > -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
46 > -Wframe-larger-than=2048 -fno-omit-frame-pointer
47 > -fno-optimize-sibling-calls -fno-inline-functions-called-once
48 > -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
49 > -fconserve-stack -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=\#s"
50 > -D"KBUILD_BASENAME=KBUILD_STR(do_mounts)"
51 > -D"KBUILD_MODNAME=KBUILD_STR(mounts)" -c -o init/do_mounts.o
52 > init/do_mounts.c
53 >
54 > contains a directive to build mounts.o, see second last line, but
55 > it for some reason this is ignored.
56 > Maybe there is a flaw in that command, only I can't find it.
57
58 Neither can I. Is this command executed at all? If you maybe replace the
59 'gcc' by 'gccXXX', does this give an error? Or put an 'echo' in
60 front of the gcc'.
61 You can try 'make -d', this will give you LOTS of debug output, but I
62 don't think you will see the actual commands then.
63
64 Wonko

Replies

Subject Author
Re: [gentoo-user] Re: make of gentoo-sources-3.2.12 fails Michael Scherer <a6702894@××××××××××××××.at>