Page 1 of 1

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

Posted: Sun Nov 22, 2020 2:52 pm
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.

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

Posted: Sun Nov 22, 2020 3:04 pm
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.

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

Posted: Sun Nov 22, 2020 3:10 pm
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

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

Posted: Sun Nov 22, 2020 3:15 pm
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)

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

Posted: Sun Nov 22, 2020 3:17 pm
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.

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

Posted: Sun Nov 22, 2020 3:21 pm
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!