Page 1 of 1
Debian GCC Cross-Compiler source
Posted: Wed Jun 12, 2013 9:20 am
by tyleros
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?
Re: Debian GCC Cross-Compiler source
Posted: Wed Jun 12, 2013 9:31 am
by iansjack
Don't get hung up relying on package managers. Just follow the generic instructions here:
http://wiki.osdev.org/GCC_Cross-Compiler
Re: Debian GCC Cross-Compiler source
Posted: Wed Jun 12, 2013 12:52 pm
by tyleros
I've attempted to install gcc, however I am now getting an error:
Code: Select all
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?
Re: Debian GCC Cross-Compiler source
Posted: Wed Jun 12, 2013 1:04 pm
by iansjack
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.
Re: Debian GCC Cross-Compiler source
Posted: Wed Jun 12, 2013 1:05 pm
by tyleros
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...
Re: Debian GCC Cross-Compiler source
Posted: Wed Jun 12, 2013 1:26 pm
by sortie
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.
Re: Debian GCC Cross-Compiler source
Posted: Thu Jun 13, 2013 2:55 am
by pcmattman
Hilariously, that wiki page you're apparently "reading" says at the very beginning...
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.