AVR-Libc and prefered gcc version

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was installing binutils, avr-libc and gcc core on a new linux and noticed that for the latest avr-libc, i.e. today, that is 1.6.8 , the README doc says that preferred gcc version is latest 3.4.x .

Today, latest gcc is 4.5.0, and winAVR uses 4.3.3 and binutils 2.19

Question is, for which higher gcc version should the avr-libc be safe to use with when avr-libc is promoting version 3.4.x. and winavr is already violating this with success. I guess I can alter the configure file to let it accept current installed version of gcc but I would like to know the possible consequences...


Case is, I did offcourse try to use it with latest gcc version 4.5.0, which installed fine (after installing missed libs) using --target=avr as an option.

But when installing avr-libc version 1.6.8 it complains about wrong gcc version.

Regards
Vidar (Z)

----------------------------------------------------------

"The fool wonders, the wise man asks"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't just cherry pick unmatched versions. Use something that works. That usually means the Bingo600 script at the top of this forum. If you are lucky enough to be running a Debian based distro (which includes *buntu's) then Bing600 already did the work for you and put a useable .deb on my website at:

www.wrightflyer.co.uk/avr-gcc/

The .deb there is in step with Eric's WinAVR and most importantly has ALL the patches you really need. Just pick the latest .deb and install with "dpkg -i file.deb"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

> But when installing avr-libc version 1.6.8 it complains about wrong gcc version.

Where does it complain?

Btw., you might want to discuss this on avr-libc-dev [at] nongnu.org.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi and sorry for my late responce..

First @Clawson: I did not just "cherry pick", I used my sense of curiosity! Thats the very same curiosity which keep humanity developing.. did at-least, before everybody was learned to follow the stream and stop thinking them self. I simply looked at it as a minor challenge, because I can... :)

Second @Jöreg:
I will follow your advice, but I will also update this thread atleast once for others to keep track, if any bothered to know what I am doing.

I added output from the configure script below. I used the following parameters:

sudo ./configure --build=`./config.guess` --host=avr --prefix=/usr/local/atmel

This gaved me the following error:

.
.
.
checking dependency style of gcc... gcc3
checking for avr-as... no
checking for as... as
checking dependency style of gcc... gcc3
checking for avr-ranlib... no
checking for ranlib... ranlib
checking for avr-ar... no
checking for ar... ar
configure: error: Wrong C compiler found; check the PATH!

The PATH contains both /usr/local/atmel and /usr/local/atmel/bin where i installed gcc 4.5.0, and when testing with an old build of mine the makefile finds avr-gcc but compiling will off-course fail since the avr-libc is not installed yet.

Also, since winavr already are using gcc 4.3.3 and still have old avr-libc 1.6.0 (which strangly enough was not listed in the download area of avr-libc pages), I started wonder which changes is required in the avr-libc config file to have it work with gcc 4.5.0.

I guess that someone must be using the avr-libc 1.6.8 version since it is there so I beleive that it would be very interesting for people to know how to tweak it to work with the gcc version installed. gcc afaik should be backward compatible,mostly, so ...

Thanks in advance if you are able to enlighten me

Regards
Vidar (Z)

----------------------------------------------------------

"The fool wonders, the wise man asks"