make: *** No rule to make target 'all-gcc'. Stop.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ghzcrlvct
Posts: 5
Joined: Fri Oct 09, 2020 9:44 am

make: *** No rule to make target 'all-gcc'. Stop.

Post by ghzcrlvct »

I am attempting to create the cross-compiler to create the most basic OS.

I succesfully followed the instructions for binutils (v2.31), but now for GCC (v8.2.0), I cant run any make commands.

make: *** No rule to make target 'all-gcc'. Stop.
make: *** No rule to make target 'all-target-libgcc'. Stop.
...

What should I do? I've no idea about Linux (Using WSL2) or anything related to GNU.
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: make: *** No rule to make target 'all-gcc'. Stop.

Post by Octocontrabass »

Check to make sure you didn't miss a step. Those rules are generated by the configure script, so perhaps you didn't run the configure script or ran it in the wrong directory.
ghzcrlvct
Posts: 5
Joined: Fri Oct 09, 2020 9:44 am

Re: make: *** No rule to make target 'all-gcc'. Stop.

Post by ghzcrlvct »

Octocontrabass wrote:Check to make sure you didn't miss a step. Those rules are generated by the configure script, so perhaps you didn't run the configure script or ran it in the wrong directory.
https://imgur.com/a/aDTemJp

Ran it inside $HOME/src/build-gcc
foliagecanine
Member
Member
Posts: 148
Joined: Sun Aug 23, 2020 4:35 pm

Re: make: *** No rule to make target 'all-gcc'. Stop.

Post by foliagecanine »

Look at the last few lines:

Code: Select all

checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+
Make sure you installed ALL of the required packages. (It's failing at libgmp)
My OS: TritiumOS
https://github.com/foliagecanine/tritium-os
void warranty(laptop_t laptop) { if (laptop.broken) return laptop; }
I don't get it: Why's the warranty void?
moonchild
Member
Member
Posts: 73
Joined: Wed Apr 01, 2020 4:59 pm
Libera.chat IRC: moon-child

Re: make: *** No rule to make target 'all-gcc'. Stop.

Post by moonchild »

Did you see this error message?

Code: Select all

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+, and MPC 0.8.0+
You have to resolve that error first.
ghzcrlvct
Posts: 5
Joined: Fri Oct 09, 2020 9:44 am

Re: make: *** No rule to make target 'all-gcc'. Stop.

Post by ghzcrlvct »

moonchild wrote:Did you see this error message?

Code: Select all

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+, and MPC 0.8.0+
You have to resolve that error first.
foliagecanine wrote:Look at the last few lines:

Code: Select all

checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+
Make sure you installed ALL of the required packages. (It's failing at libgmp)
Yes, I failed to see that. I installed all three libs and it now finally works.

Thanks!
Post Reply