Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 March 20, 2008 15:43:50

Neil D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Building latest gcc...


Hi List,I'm trying to build the latest gcc source. I use the following configureline:../gcc/configure --target=avr --enable-languages=cDuring the make process (fairly early on I'd say) it gives me thefollowing complaint:<snip>
checking for avr-strip... avr-strip
checking whether ln -s works... yeschecking for avr-gcc... /home/ndavey/gcc_avr/gcc_avr_build/./gcc/xgcc-B/home/ndavey/gcc_avr/gcc_avr_build/./gcc/ -B/usr/local/avr/bin/-B/usr/local/avr/lib/ -isystem /usr/local/avr/include -isystem/usr/local/avr/sys-includechecking for suffix of object files... configure: error: cannot computesuffix of object files: cannot compileSee `config.log' for more details.
make: *** Error 1
make: Leaving directory `/home/ndavey/gcc_avr/gcc_avr_build'
make: *** Error 2


Anyone got any suggestions? It's probably something simple.. :)

Regards
Neil Davey



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 March 20, 2008 15:57:23

Blake L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Building latest gcc...


On Thursday 20 March 2008, Neil Davey wrote:
> Hi List,
> I'm trying to build the latest gcc source. I use the following configure
> line:
>
> ../gcc/configure --target=avr --enable-languages=c
>
> During the make process (fairly early on I'd say) it gives me the
> following complaint:
>
> <snip>
> checking for avr-strip... avr-strip
> checking whether ln -s works... yes
> checking for avr-gcc... /home/ndavey/gcc_avr/gcc_avr_build/./gcc/xgcc
> -B/home/ndavey/gcc_avr/gcc_avr_build/./gcc/ -B/usr/local/avr/bin/
> -B/usr/local/avr/lib/ -isystem /usr/local/avr/include -isystem
> /usr/local/avr/sys-include
> checking for suffix of object files... configure: error: cannot compute
> suffix of object files: cannot compile
> See `config.log' for more details.
> make: *** Error 1
> make: Leaving directory `/home/ndavey/gcc_avr/gcc_avr_build'
> make: *** Error 2
>
>
> Anyone got any suggestions? It's probably something simple.. :)
>
> Regards
> Neil Davey

Just some general comments.

Did you compile/install binutils first?

My configure line for GCC is
../configure --prefix=$PREFIX --target=avr --enable-languages=c,c++ \
--disable-nls --disable-libssp --with-dwarf2

Be sure to follow the instructions on the avr-libc website:http://www.nongnu.org/avr-libc/user-manual/install_tools.htmlAnd good luck.

Blake


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support