Configuring GCC in Ubuntu 14.01

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
addemup
Posts: 1
Joined: Mon Jul 06, 2015 7:51 am

Configuring GCC in Ubuntu 14.01

Post by addemup »

Well, I'm working on an OS (Oviously - why would I be posting here?), and I am running into trouble working on creating my cross-compiler.

As you may notice in the title, I am using Ubuntu 14.01, and I have to update my gcc compiler.

But, when I type this in the command prompt:

Code: Select all

../gcc-4.9.1/configure --prefix="$PREFIX" --disable-nls --enable-languages=c,c++
it completely IGNORES the options and just checks the directory!

I have the cc envirment variable set to /usr/bin/gcc (which DOES exist).

Please help! :?:
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: Configuring GCC in Ubuntu 14.01

Post by Roman »

Welcome to the forum.

Are you building a cross-compiler? If not, why not just use APT?

EDIT: Oh, you're building a cross-compiler. For the first, you didn't specify the target.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
FallenAvatar
Member
Member
Posts: 283
Joined: Mon Jan 03, 2011 6:58 pm

Re: Configuring GCC in Ubuntu 14.01

Post by FallenAvatar »

You should follow http://wiki.osdev.org/GCC_Cross-Compiler to build your cross-compiler. I can say for sure the guide is correct and working on ubuntu 14.04.

- Monk
Post Reply