OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 12:14 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: make: *** No rule to make target 'all-gcc'. Stop.
PostPosted: Sun Nov 22, 2020 2:52 pm 
Offline

Joined: Fri Oct 09, 2020 9:44 am
Posts: 5
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.


Top
 Profile  
 
 Post subject: Re: make: *** No rule to make target 'all-gcc'. Stop.
PostPosted: Sun Nov 22, 2020 3:04 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5137
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.


Top
 Profile  
 
 Post subject: Re: make: *** No rule to make target 'all-gcc'. Stop.
PostPosted: Sun Nov 22, 2020 3:10 pm 
Offline

Joined: Fri Oct 09, 2020 9:44 am
Posts: 5
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


Top
 Profile  
 
 Post subject: Re: make: *** No rule to make target 'all-gcc'. Stop.
PostPosted: Sun Nov 22, 2020 3:15 pm 
Offline
Member
Member

Joined: Sun Aug 23, 2020 4:35 pm
Posts: 148
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)

_________________
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?


Top
 Profile  
 
 Post subject: Re: make: *** No rule to make target 'all-gcc'. Stop.
PostPosted: Sun Nov 22, 2020 3:17 pm 
Offline
Member
Member

Joined: Wed Apr 01, 2020 4:59 pm
Posts: 73
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.


Top
 Profile  
 
 Post subject: Re: make: *** No rule to make target 'all-gcc'. Stop.
PostPosted: Sun Nov 22, 2020 3:21 pm 
Offline

Joined: Fri Oct 09, 2020 9:44 am
Posts: 5
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 92 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group