Page 1 of 1

GCC Cross Crompiler: --enable-languages invalid variable nam

Posted: Fri Mar 29, 2013 9:01 am
by Zyyk
Hi, Im new to the forum, and not even sure if this topic is where it should be.

Im currently just getting started on building a GCC Cross Compiler on Xubuntu, and I seem to be getting an usual error. (unusual since I couldn't find anyone else online who had this error).
Im using binutils 2.23.1 and gcc 4.7.2, which according to this : http://wiki.osdev.org/Cross-Compiler_Successful_Builds, should be compatible.

Following this guide on OSDev Wiki: http://wiki.osdev.org/GCC_Cross-Compiler, when i get to building gcc at step 2 :

Code: Select all

export PATH=$PATH:$PREFIX/bin
../gcc-x.x.x/configure --target=$TARGET --prefix=$PREFIX --disable-nls \
    --enable-languages=c,c++ --without-headers
I get the error:

Code: Select all

configure: invalid variable --enable-languages
(or something similar, not posting from my home computer)

Any ideas ?
Thanks in advance :)

Re: GCC Cross Crompiler: --enable-languages invalid variable

Posted: Fri Mar 29, 2013 1:26 pm
by AJ
Hi,

If you are getting this error and others have managed to successfully build this version, then when you are at your home computer you need to post again, including details of the host, the exact command line you use and the exact error message.

Cheers,
Adam