osx - Error trying to exec cc1, gcc only wants to compile for avr? -


i've installed gcc on mac (snow leopard) can compile avr microcontrollers. however, seems preventing me compiling else. i'd build packages astrometry.net, , when run ./configure make following:

make -c ./qfits-an stage cflags=" -g -wall -ffinite-math-only -fno-signaling-nans  -march=native -o3 -fomit-frame-pointer -dndebug -fpic -winline -d_largefile_source -d_file_offset_bits=64 -d_gnu_source" ldflags=" -g -wall -ffinite-math-only -fno-signaling-nans  -march=native -o3 -fomit-frame-pointer -dndebug -fpic -winline" cc="gcc" make -c src stage gcc -g -wall -ffinite-math-only -fno-signaling-nans  -march=native -o3 -fomit-frame-pointer -dndebug -fpic -winline -d_largefile_source -d_file_offset_bits=64 -d_gnu_source   -c -o anqfits.o anqfits.c gcc: error trying exec 'cc1': execvp: no such file or directory     

gcc -v gives:

using built-in specs. target: avr configured with: ./configure --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --prefix=/usr/local/staging.avr-gcc thread model: single gcc version 4.1.1 

i'm not sure how proceed! seems set build avr platform, have xcode installed somewhere there more versions of gcc lurking. install via http://www.micahcarrick.com/installing-gnu-tools-avr-gcc.html if helps see how set (i had xcode installed prior this).

the solution, expect, simple. want avoid messing settings , not being able compile either platform.

many thanks!

you want remove non-cross-compiler named versions of avr tools have installed (i.e. gcc, ld, etc.), cross-compiler, , related tools, available using target-specific names.

to this, find directory installed (/usr/local/bin ?) , find tools installed @ same time. example, happens on linux machine (to give idea):

$ gcc /usr/bin/gcc $ cd /usr/bin $ ls -li *gcc* 189389 -rwxr-xr-x 2 root root 268088 dec  6  2011 gcc 195145 -rwxr-xr-x 1 root root   2018 aug 16  2010 gccmakedep 189389 -rwxr-xr-x 2 root root 268088 dec  6  2011 x86_64-redhat-linux-gcc 

i remove gcc, leaving x86_64-redhat-linux-gcc way of starting compiler (they hard linked share same inode). there other tools well, can identify date in same directory.

an alternative approach install cross-compiler directory isn't in $path.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -