I built a cross compiler on Ubuntu 14.04 32 bit for MIPS platform before. but now I can't compile ordinary C programs with GCC. i removed and reinstalled everything but every time i get this error. as:

unrecognized option '--32' 

With gcc --version I get this:

 GNU assembler 2.13.2 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `mips-dec-ultrix42'. 

i dont know what to do!

  • What about gcc-4.8 --version and /usr/bin/gcc --version? – muru Oct 8 '14 at 16:29
  • That's odd. Did you somehow name the binary of the assembler gcc instead of as. – David Foerster Oct 8 '14 at 17:47

First find the compiler:

find ${PATH//:/} -name 'gcc*'

create a symlink:

cd /usr/bin/
ls -l | grep gcc
ln -sf gcc-4.xx gcc

Now check version again:

gcc --version

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.