OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 1:13 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Debian GCC Cross-Compiler source
PostPosted: Wed Jun 12, 2013 9:20 am 
Offline

Joined: Wed Jun 12, 2013 9:17 am
Posts: 3
http://wiki.osdev.org/GCC_Cross-Compile ... bian_Linux

The page here gives you a source to add to sources.list, however the source is no longer valid. Does anyone know a working source?


Top
 Profile  
 
 Post subject: Re: Debian GCC Cross-Compiler source
PostPosted: Wed Jun 12, 2013 9:31 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Don't get hung up relying on package managers. Just follow the generic instructions here: http://wiki.osdev.org/GCC_Cross-Compiler


Top
 Profile  
 
 Post subject: Re: Debian GCC Cross-Compiler source
PostPosted: Wed Jun 12, 2013 12:52 pm 
Offline

Joined: Wed Jun 12, 2013 9:17 am
Posts: 3
I've attempted to install gcc, however I am now getting an error:

Code:
configure: error: C++ compiler missing or inoperational


Do I need a c++ compiler to build gcc? I'm trying to build v 4.8, what compiler should I use?


Top
 Profile  
 
 Post subject: Re: Debian GCC Cross-Compiler source
PostPosted: Wed Jun 12, 2013 1:04 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Just install the GCC C++ compiler. I'm surprised it's not already installed. (Note this is a native compiler for your Debian system, which should be easily obtained using the package manager, not the cross-compiler that you are trying to produce. I didn't know that you needed C++ to compile GCC but I guess every system that I use has both the C and C++ components of GCC installed.


Top
 Profile  
 
 Post subject: Re: Debian GCC Cross-Compiler source
PostPosted: Wed Jun 12, 2013 1:05 pm 
Offline

Joined: Wed Jun 12, 2013 9:17 am
Posts: 3
iansjack wrote:
Just install the GCC C++ compiler. I'm surprised it's not already installed. (Note this is a native compiler for your Debian system, which should be easily obtained using the package manager, not the cross-compiler that you are trying to produce. I didn't know that you needed C++ to compile GCC but I guess every system that I use has both the C and C++ components of GCC installed.


I think it's working now, apparently build-essentials wasn't installed, attempting build now...


Top
 Profile  
 
 Post subject: Re: Debian GCC Cross-Compiler source
PostPosted: Wed Jun 12, 2013 1:26 pm 
Offline
Member
Member
User avatar

Joined: Wed Mar 21, 2012 3:01 pm
Posts: 930
Distributions such as Debian only ship with GCC by default, as it is needed to build third party kernel modules when upgrading some packages. G++ isn't needed in that respect, so it's not uncommon to have a system without it. You need G++ in order to bootstrap GCC on these systems, as it is written in C++ these days.


Top
 Profile  
 
 Post subject: Re: Debian GCC Cross-Compiler source
PostPosted: Thu Jun 13, 2013 2:55 am 
Offline
Member
Member

Joined: Sun Jan 14, 2007 9:15 pm
Posts: 2566
Location: Sydney, Australia (I come from a land down under!)
Hilariously, that wiki page you're apparently "reading" says at the very beginning...
Quote:
For some reason the repositories are currently broken. I'm trying to figure out why. JackScott 05:42, 20 July 2010 (UTC)


The repo has been broken for quite some time.

_________________
Pedigree | GitHub | Twitter | LinkedIn


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 22 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