Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [SOLVED] "No rule to make target" gcc 9.3.0 error
Date: Tue, 19 Oct 2021 14:31:04
Message-Id: YW7Wn2OfkudaHhnw@waltdnes.org
In Reply to: [gentoo-user] [SOLVED] "No rule to make target" gcc 9.3.0 error by Walter Dnes
1 On Tue, Oct 19, 2021 at 09:30:22AM -0400, Walter Dnes wrote
2 > On Tue, Oct 19, 2021 at 07:47:03AM -0400, Todd Goodman wrote
3 > >
4 > > On 10/19/2021 7:32 AM, Walter Dnes wrote:
5 > > > On Tue, Oct 19, 2021 at 11:53:28AM +1000, Miles Malone wrote
6 > > >> Select a version of gcc you do have, using gcc-config. Then rebuild
7 > > >> libtool, and continue. GCC 9.3.0 doesnt exist because it's been
8 > > >> replaced in the gcc9 branch by GCC 9.4.0. You could choose to stick
9 > > >> to GCC9, or move to 10 or 11.
10 > > > Re-emerging sys-devel/libtool doesn't work. I've only got gcc 10 and
11 > > > 11. 9 isn't in the tree. After rebuilding libtool I still get...
12 > > >
13 > > > [thimk2][root][/usr/src/linux] ../makeover
14 > > > CALL scripts/checksyscalls.sh
15 > > > CALL scripts/atomic/check-atomics.sh
16 > > > DESCEND objtool
17 > > > make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/stddef.h', needed by '/usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep.o'. Stop.
18 > > > make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
19 > > > make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
20 > > > make[1]: *** [Makefile:67: objtool] Error 2
21 > > > make: *** [Makefile:1830: tools/objtool] Error 2
22 > > >
23 > > > Is there a way to pull an old gcc ebuild into my tree?
24 > >
25 > >
26 > > This may be overkill but:
27 > >
28 > > 1. Copy your .config out of /usr/src/linux
29 > >
30 > > 2. make mrproper
31 > >
32 > > 3. Copy back your .config
33 > >
34 > > 4. make oldconfig
35 >
36 > Thank you very much. The kernel is building now.
37
38 The build finished successfully. Thank you again.
39
40 --
41 Walter Dnes <waltdnes@××××××××.org>
42 I don't run "desktop environments"; I run useful applications