Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't rebuild gentoo kernel-4.9.16 with gcc-5.4.0
Date: Tue, 30 May 2017 11:20:30
Message-Id: 2150979.GHBzVf2JLm@dell_xps
In Reply to: Re: [gentoo-user] Can't rebuild gentoo kernel-4.9.16 with gcc-5.4.0 by "J. Roeleveld"
1 On Tuesday 30 May 2017 13:13:10 J. Roeleveld wrote:
2 > On May 30, 2017 12:56:18 PM GMT+02:00, Mick <michaelkintzios@×××××.com>
3 wrote:
4 > >I tried to change the kernel config file and then rebuild the kernel,
5 > >but it
6 > >fails like this on two up to date stable systems:
7 > >
8 > ># make && make modules_install && make firmware_install
9 > >
10 > > HOSTCC scripts/kconfig/conf.o
11 > > HOSTLD scripts/kconfig/conf
12 > >
13 > >scripts/kconfig/conf --silentoldconfig Kconfig
14 > >
15 > > HOSTCC arch/x86/tools/relocs_32.o
16 > > HOSTCC arch/x86/tools/relocs_64.o
17 > > HOSTCC arch/x86/tools/relocs_common.o
18 > > HOSTLD arch/x86/tools/relocs
19 > > CHK include/config/kernel.release
20 > > CHK include/generated/uapi/linux/version.h
21 > > CHK include/generated/utsrelease.h
22 > > CC arch/x86/purgatory/purgatory.o
23 > > AS arch/x86/purgatory/stack.o
24 > > AS arch/x86/purgatory/setup-x86_64.o
25 > > CC arch/x86/purgatory/sha256.o
26 > > AS arch/x86/purgatory/entry64.o
27 > > CC arch/x86/purgatory/string.o
28 > > LD arch/x86/purgatory/purgatory.ro
29 > > BIN2C arch/x86/purgatory/kexec-purgatory.c
30 > > CC kernel/bounds.s
31 > > CHK include/generated/bounds.h
32 > > CHK include/generated/timeconst.h
33 > > CC arch/x86/kernel/asm-offsets.s
34 > > CHK include/generated/asm-offsets.h
35 > > CALL scripts/checksyscalls.sh
36 > > DESCEND objtool
37 > >
38 > >make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-
39 > >gnu/4.9.4/include/stddef.h', needed by '/usr/src/linux-4.9.16-
40 > >gentoo/tools/objtool/fixdep.o'. Stop.
41 > >make[3]: *** [Makefile:42:
42 > >/usr/src/linux-4.9.16-gentoo/tools/objtool/fixdep-
43 > >in.o] Error 2
44 > >make[2]: ***
45 > >[/usr/src/linux-4.9.16-gentoo/tools/build/Makefile.include:4:
46 > >fixdep] Error 2
47 > >make[1]: *** [Makefile:60: objtool] Error 2
48 > >make: *** [Makefile:1614: tools/objtool] Error 2
49 > >
50 > >
51 > ># gcc-config -l
52 > >
53 > > [1] x86_64-pc-linux-gnu-5.4.0 *
54 > >
55 > >Why is this happening and how can I fix it? Running fix_libtool.sh on
56 > >4.9.4
57 > >doesn't change anything. :-/
58 > >
59 > >Am I supposed to emerge a later version gentoo-sources to be able to
60 > >build a
61 > >kernel with gcc-5.4.0?
62 >
63 > After gcc-config, make sure you run:
64 > # env-update
65 > # source /etc/profile
66 >
67 > It looks like something still points to your old compiler.
68
69 Thanks Joost, I've rebooted many times since the move/rebuild of almost
70 everything with gcc-5.4.0. Actually, now that you mention it ... I can't
71 recall if I rebuilt the linux-headers. Hmm ... will look into that next.
72
73 --
74 Regards,
75 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Can't rebuild gentoo kernel-4.9.16 with gcc-5.4.0 Neil Bothwick <neil@××××××××××.uk>