bugAVR C Runtime Library - Bugs: bug #44869, trunk doesn't work with gcc...


bug #44869: trunk doesn't work with gcc 5.1.0-RC-20150412

Submitted by:  None
Submitted on:  Fri 17 Apr 2015 10:35:28 PM UTC  
Category:  Library Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  None
Status:  Fixed Assigned to:  Pitchumani <pitchumani>
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  Unknown
Fixed Release:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Fri 22 May 2015 11:41:43 PM UTC, comment #9: 

Do you plan to make a new release compatible with gcc-5.1?

Thu 07 May 2015 06:53:05 AM UTC, comment #8: 

Patch modified to check GCC version "5.1.0" or greater.


Pitchumani <pitchumani>
Project MemberIn charge of this item.
Tue 28 Apr 2015 10:43:11 AM UTC, comment #7: 

Attached a patch to auto-detect compiler version and install crt and device lib in required directory.

discussion thread:

(file #33821)

Pitchumani <pitchumani>
Project MemberIn charge of this item.
Fri 24 Apr 2015 03:34:23 PM UTC, comment #6: 

Okay, I believe the official answer is that we all need to wait for gcc-5.2 that will work with avr-libc correctly.

Do you plan to make a new avr-libc release at the tme of gcc-5.2? Or it is expected that 1.8.1 is going to work with gcc-5.2 correctly?

Fri 24 Apr 2015 08:36:45 AM UTC, comment #5: 

The GCC 5 release notes say that when avr-gcc is used together with AVR-LibC, that requires at least avr-gcc 5.2:


Georg-Johann Lay <gjlayde>
Fri 24 Apr 2015 04:45:39 AM UTC, comment #4: 

For gcc-5.1, Please use avr-libc svn revision 2473 as mentioned by GJL in previous comment.

GCC 5.1 Successful build by Ralph Doncaster

AVR-LibC trunk (r2474 or newer) works with gcc-trunk. Work in progress to make AVR-LibC work with older and newer versions of gcc.

Pitchumani <pitchumani>
Project MemberIn charge of this item.
Fri 24 Apr 2015 04:15:37 AM UTC, comment #3: 

Having the same problem with gcc 5.1.0 sources as the previous poster. I tried the latest gcc-6 snapshot (under the assumption that this is what Georg-Johann means by "avr-gcc 5.2" as I can find no other mention of such a version number online), and couldn't get it to build (I get a segfault in gen-avr-mmcu-specs, but that's a bug report for them), so I cannot confirm that this problem is fixed in a newer version of gcc. System is OS X Yosemite 10.10.3, with most recent vendor toolchain (based on LLVM 3.6.0svn). Also tried building with freshly built gcc 5.1.0 as the host compiler instead of LLVM/clang, no difference.

I last successfully compiled avr-gcc and avr-libc on this machine a few months back with the gcc 4.9.2 sources using LLVM/clang 3.5.0 as the compiler. Sadly, after the update to LLVM/clang 3.6.0 and what I assume were associated changes to the system headers, it no longer seems possible to build gcc 4.9.2 either for the host target or for avr, so I can't roll back to the last good version.

Thu 23 Apr 2015 11:00:24 PM UTC, comment #2: 

I've got the same error when tried to build and use just released gcc-5.1. It seems gcc-5.1 contains some dependency to conventions from unreleased avr-libc.

Could you please provide exact instruction what version works best with gcc-5.1. Or even better if you make a new release that intended to work with 5.1.

Sat 18 Apr 2015 10:13:17 AM UTC, comment #1: 

If you want to use avr-gcc 5.0 or 5.1 with avr-libc, avr-libc must not be newer than svn r2473.

If you want to use svn r2474 or newer, you need avr-gcc 5.2 or up.

Georg-Johann Lay <gjlayde>
Fri 17 Apr 2015 10:35:28 PM UTC, original submission:  

I'm having the same problem as Georg-Johann:

avr-gcc -DF_CPU=8000000 -mmcu=attiny84 -Os btle.c -o btle
/usr/local/avr/lib/gcc/avr/5.0.1/../../../../avr/bin/ld: cannot find dev/attiny84/crt1.o: No such file or directory
/usr/local/avr/lib/gcc/avr/5.0.1/../../../../avr/bin/ld: cannot find dev/attiny84/libdev.a: No such file or directory

I'm using binutils 2.25 and avr-gcc built from the 20150412 snapshot:
avr-gcc (GCC) 5.0.1 20150412 (prerelease)

avr-libc is taken from svn trunk (Changelog shows latest commit 2015-04-15 by Pitchumani)

Here's the script I'm using to build the toolchain:

And here's the configure log output from building avr-libc trunk:



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #33821:  detect-gcc-version-and-build-device-lib.patch added by pitchumani (5KiB - application/octet-stream - patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pitchumani (Posted a comment)
  • -email is unavailable- added by gjlayde (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)



    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-07 pitchumani StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2015-04-28 pitchumani Attached File- => Added detect-gcc-version-and-build-device-lib.patch, #33821
        Priority5 - Normal => 9 - Immediate
        StatusNone => Ready For Test
        Assigned toNone => pitchumani

    Back to the top

    Powered by Savane 3.5