Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] [SOLVED] "No rule to make target" gcc 9.3.0 error Walter Dnes <waltdnes@××××××××.org>