public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] "No rule to make target" gcc 9.3.0 error
@ 2021-10-19  1:47 Walter Dnes
  2021-10-19  1:53 ` Miles Malone
  0 siblings, 1 reply; 8+ messages in thread
From: Walter Dnes @ 2021-10-19  1:47 UTC (permalink / raw
  To: Gentoo Users List

  Rebuilding the kernel...

[thimk2][root][/usr/src/linux] ../makeover 
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC      kernel/bounds.s
  CC      arch/x86/kernel/asm-offsets.s
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND  objtool
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.
make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
make[1]: *** [Makefile:67: objtool] Error 2
make: *** [Makefile:1830: tools/objtool] Error 2

  gcc-9.3.0 is nowhere to be found.  It's not in the tree, so I can't
pull it in.  Now What?

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] "No rule to make target" gcc 9.3.0 error
  2021-10-19  1:47 [gentoo-user] "No rule to make target" gcc 9.3.0 error Walter Dnes
@ 2021-10-19  1:53 ` Miles Malone
  2021-10-19 11:32   ` Walter Dnes
  0 siblings, 1 reply; 8+ messages in thread
From: Miles Malone @ 2021-10-19  1:53 UTC (permalink / raw
  To: gentoo-user

Select a version of gcc you do have, using gcc-config.  Then rebuild
libtool, and continue.  GCC 9.3.0 doesnt exist because it's been
replaced in the gcc9 branch by GCC 9.4.0.  You could choose to stick
to GCC9, or move to 10 or 11.

On Tue, 19 Oct 2021 at 11:48, Walter Dnes <waltdnes@waltdnes.org> wrote:
>
>   Rebuilding the kernel...
>
> [thimk2][root][/usr/src/linux] ../makeover
>   HOSTCC  scripts/kconfig/conf.o
>   HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf  --syncconfig Kconfig
>   HOSTCC  arch/x86/tools/relocs_32.o
>   HOSTCC  arch/x86/tools/relocs_64.o
>   HOSTCC  arch/x86/tools/relocs_common.o
>   HOSTLD  arch/x86/tools/relocs
>   HOSTCC  scripts/kallsyms
>   HOSTCC  scripts/conmakehash
>   HOSTCC  scripts/sortextable
>   HOSTCC  scripts/asn1_compiler
>   HOSTCC  scripts/extract-cert
>   CC      scripts/mod/empty.o
>   HOSTCC  scripts/mod/mk_elfconfig
>   MKELF   scripts/mod/elfconfig.h
>   HOSTCC  scripts/mod/modpost.o
>   CC      scripts/mod/devicetable-offsets.s
>   HOSTCC  scripts/mod/file2alias.o
>   HOSTCC  scripts/mod/sumversion.o
>   HOSTLD  scripts/mod/modpost
>   CC      kernel/bounds.s
>   CC      arch/x86/kernel/asm-offsets.s
>   CALL    scripts/checksyscalls.sh
>   CALL    scripts/atomic/check-atomics.sh
>   DESCEND  objtool
> 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.
> make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
> make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
> make[1]: *** [Makefile:67: objtool] Error 2
> make: *** [Makefile:1830: tools/objtool] Error 2
>
>   gcc-9.3.0 is nowhere to be found.  It's not in the tree, so I can't
> pull it in.  Now What?
>
> --
> Walter Dnes <waltdnes@waltdnes.org>
> I don't run "desktop environments"; I run useful applications
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] "No rule to make target" gcc 9.3.0 error
  2021-10-19  1:53 ` Miles Malone
@ 2021-10-19 11:32   ` Walter Dnes
  2021-10-19 11:47     ` Todd Goodman
  2021-10-19 13:28     ` [gentoo-user] " Matt Connell (Gmail)
  0 siblings, 2 replies; 8+ messages in thread
From: Walter Dnes @ 2021-10-19 11:32 UTC (permalink / raw
  To: gentoo-user

On Tue, Oct 19, 2021 at 11:53:28AM +1000, Miles Malone wrote
> Select a version of gcc you do have, using gcc-config.  Then rebuild
> libtool, and continue.  GCC 9.3.0 doesnt exist because it's been
> replaced in the gcc9 branch by GCC 9.4.0.  You could choose to stick
> to GCC9, or move to 10 or 11.

  Re-emerging sys-devel/libtool doesn't work.  I've only got gcc 10 and
11.  9 isn't in the tree.  After rebuilding libtool I still get...

[thimk2][root][/usr/src/linux] ../makeover 
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND  objtool
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.
make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
make[1]: *** [Makefile:67: objtool] Error 2
make: *** [Makefile:1830: tools/objtool] Error 2

  Is there a way to pull an old gcc ebuild into my tree?

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] "No rule to make target" gcc 9.3.0 error
  2021-10-19 11:32   ` Walter Dnes
@ 2021-10-19 11:47     ` Todd Goodman
  2021-10-19 13:30       ` [gentoo-user] [SOLVED] " Walter Dnes
  2021-10-19 13:28     ` [gentoo-user] " Matt Connell (Gmail)
  1 sibling, 1 reply; 8+ messages in thread
From: Todd Goodman @ 2021-10-19 11:47 UTC (permalink / raw
  To: gentoo-user


On 10/19/2021 7:32 AM, Walter Dnes wrote:
> On Tue, Oct 19, 2021 at 11:53:28AM +1000, Miles Malone wrote
>> Select a version of gcc you do have, using gcc-config.  Then rebuild
>> libtool, and continue.  GCC 9.3.0 doesnt exist because it's been
>> replaced in the gcc9 branch by GCC 9.4.0.  You could choose to stick
>> to GCC9, or move to 10 or 11.
>    Re-emerging sys-devel/libtool doesn't work.  I've only got gcc 10 and
> 11.  9 isn't in the tree.  After rebuilding libtool I still get...
>
> [thimk2][root][/usr/src/linux] ../makeover
>    CALL    scripts/checksyscalls.sh
>    CALL    scripts/atomic/check-atomics.sh
>    DESCEND  objtool
> 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.
> make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
> make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
> make[1]: *** [Makefile:67: objtool] Error 2
> make: *** [Makefile:1830: tools/objtool] Error 2
>
>    Is there a way to pull an old gcc ebuild into my tree?


This may be overkill but:

1.  Copy your .config out of /usr/src/linux

2. make mrproper

3. Copy back your .config

4. make oldconfig



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] "No rule to make target" gcc 9.3.0 error
  2021-10-19 11:32   ` Walter Dnes
  2021-10-19 11:47     ` Todd Goodman
@ 2021-10-19 13:28     ` Matt Connell (Gmail)
  2021-10-19 14:37       ` Walter Dnes
  1 sibling, 1 reply; 8+ messages in thread
From: Matt Connell (Gmail) @ 2021-10-19 13:28 UTC (permalink / raw
  To: gentoo-user

On Tue, 2021-10-19 at 07:32 -0400, Walter Dnes wrote:
> I've only got gcc 10 and 11.

You will need to use gcc-config to update your selection.

To list your available choices:  gcc-config -l 

To select #1: gcc-config 1 

Think of it like adjunct of eselect.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] [SOLVED] "No rule to make target" gcc 9.3.0 error
  2021-10-19 11:47     ` Todd Goodman
@ 2021-10-19 13:30       ` Walter Dnes
  2021-10-19 14:30         ` Walter Dnes
  0 siblings, 1 reply; 8+ messages in thread
From: Walter Dnes @ 2021-10-19 13:30 UTC (permalink / raw
  To: gentoo-user

On Tue, Oct 19, 2021 at 07:47:03AM -0400, Todd Goodman wrote
> 
> On 10/19/2021 7:32 AM, Walter Dnes wrote:
> > On Tue, Oct 19, 2021 at 11:53:28AM +1000, Miles Malone wrote
> >> Select a version of gcc you do have, using gcc-config.  Then rebuild
> >> libtool, and continue.  GCC 9.3.0 doesnt exist because it's been
> >> replaced in the gcc9 branch by GCC 9.4.0.  You could choose to stick
> >> to GCC9, or move to 10 or 11.
> >    Re-emerging sys-devel/libtool doesn't work.  I've only got gcc 10 and
> > 11.  9 isn't in the tree.  After rebuilding libtool I still get...
> >
> > [thimk2][root][/usr/src/linux] ../makeover
> >    CALL    scripts/checksyscalls.sh
> >    CALL    scripts/atomic/check-atomics.sh
> >    DESCEND  objtool
> > 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.
> > make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
> > make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
> > make[1]: *** [Makefile:67: objtool] Error 2
> > make: *** [Makefile:1830: tools/objtool] Error 2
> >
> >    Is there a way to pull an old gcc ebuild into my tree?
> 
> 
> This may be overkill but:
> 
> 1. Copy your .config out of /usr/src/linux
> 
> 2. make mrproper
> 
> 3. Copy back your .config
> 
> 4. make oldconfig

  Thank you very much.  The kernel is building now.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] [SOLVED] "No rule to make target" gcc 9.3.0 error
  2021-10-19 13:30       ` [gentoo-user] [SOLVED] " Walter Dnes
@ 2021-10-19 14:30         ` Walter Dnes
  0 siblings, 0 replies; 8+ messages in thread
From: Walter Dnes @ 2021-10-19 14:30 UTC (permalink / raw
  To: gentoo-user

On Tue, Oct 19, 2021 at 09:30:22AM -0400, Walter Dnes wrote
> On Tue, Oct 19, 2021 at 07:47:03AM -0400, Todd Goodman wrote
> > 
> > On 10/19/2021 7:32 AM, Walter Dnes wrote:
> > > On Tue, Oct 19, 2021 at 11:53:28AM +1000, Miles Malone wrote
> > >> Select a version of gcc you do have, using gcc-config.  Then rebuild
> > >> libtool, and continue.  GCC 9.3.0 doesnt exist because it's been
> > >> replaced in the gcc9 branch by GCC 9.4.0.  You could choose to stick
> > >> to GCC9, or move to 10 or 11.
> > >    Re-emerging sys-devel/libtool doesn't work.  I've only got gcc 10 and
> > > 11.  9 isn't in the tree.  After rebuilding libtool I still get...
> > >
> > > [thimk2][root][/usr/src/linux] ../makeover
> > >    CALL    scripts/checksyscalls.sh
> > >    CALL    scripts/atomic/check-atomics.sh
> > >    DESCEND  objtool
> > > 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.
> > > make[3]: *** [Makefile:39: /usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
> > > make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
> > > make[1]: *** [Makefile:67: objtool] Error 2
> > > make: *** [Makefile:1830: tools/objtool] Error 2
> > >
> > >    Is there a way to pull an old gcc ebuild into my tree?
> > 
> > 
> > This may be overkill but:
> > 
> > 1. Copy your .config out of /usr/src/linux
> > 
> > 2. make mrproper
> > 
> > 3. Copy back your .config
> > 
> > 4. make oldconfig
> 
>   Thank you very much.  The kernel is building now.

    The build finished successfully.  Thank you again.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] "No rule to make target" gcc 9.3.0 error
  2021-10-19 13:28     ` [gentoo-user] " Matt Connell (Gmail)
@ 2021-10-19 14:37       ` Walter Dnes
  0 siblings, 0 replies; 8+ messages in thread
From: Walter Dnes @ 2021-10-19 14:37 UTC (permalink / raw
  To: gentoo-user

On Tue, Oct 19, 2021 at 09:28:52AM -0400, Matt Connell (Gmail) wrote
> On Tue, 2021-10-19 at 07:32 -0400, Walter Dnes wrote:
> > I've only got gcc 10 and 11.
> 
> You will need to use gcc-config to update your selection.

  I'm aware of that.  I had 10 selected, and then selected 11 but no
difference.  The correct answer turned out to be backing up my .config
file, running "make mrproper", restoring .config, and then running
"make oldconfig".  Then the kernel built fine.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-19 14:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19  1:47 [gentoo-user] "No rule to make target" gcc 9.3.0 error Walter Dnes
2021-10-19  1:53 ` Miles Malone
2021-10-19 11:32   ` Walter Dnes
2021-10-19 11:47     ` Todd Goodman
2021-10-19 13:30       ` [gentoo-user] [SOLVED] " Walter Dnes
2021-10-19 14:30         ` Walter Dnes
2021-10-19 13:28     ` [gentoo-user] " Matt Connell (Gmail)
2021-10-19 14:37       ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox