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

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
Zyyk
Posts: 1
Joined: Fri Mar 29, 2013 8:47 am

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

Post 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 :)
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

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

Post 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
Post Reply