OSDev.org
https://forum.osdev.org/

make: *** No rule to make target 'all-gcc'. Stop.
https://forum.osdev.org/viewtopic.php?f=1&t=37498
Page 1 of 1

Author:  ghzcrlvct [ Sun Nov 22, 2020 2:52 pm ]
Post subject:  make: *** No rule to make target 'all-gcc'. Stop.

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.

Author:  Octocontrabass [ Sun Nov 22, 2020 3:04 pm ]
Post subject:  Re: make: *** No rule to make target 'all-gcc'. Stop.

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.

Author:  ghzcrlvct [ Sun Nov 22, 2020 3:10 pm ]
Post subject:  Re: make: *** No rule to make target 'all-gcc'. Stop.

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

Author:  foliagecanine [ Sun Nov 22, 2020 3:15 pm ]
Post subject:  Re: make: *** No rule to make target 'all-gcc'. Stop.

Look at the last few lines:
Code:
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)

Author:  moonchild [ Sun Nov 22, 2020 3:17 pm ]
Post subject:  Re: make: *** No rule to make target 'all-gcc'. Stop.

Did you see this error message?

Code:
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+, and MPC 0.8.0+


You have to resolve that error first.

Author:  ghzcrlvct [ Sun Nov 22, 2020 3:21 pm ]
Post subject:  Re: make: *** No rule to make target 'all-gcc'. Stop.

moonchild wrote:
Did you see this error message?

Code:
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:
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!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/