Page 1 of 1

Configuring GCC in Ubuntu 14.01

Posted: Mon Jul 06, 2015 8:16 am
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! :?:

Re: Configuring GCC in Ubuntu 14.01

Posted: Mon Jul 06, 2015 8:20 am
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.

Re: Configuring GCC in Ubuntu 14.01

Posted: Mon Jul 06, 2015 1:55 pm
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