bugAVR C Runtime Library - Bugs: bug #32988, Internal compiler error:...


bug #32988: Internal compiler error: build_unary_op

Submitted by:  Cesco <ipersite>
Submitted on:  Sun 03 Apr 2011 06:24:27 PM UTC  
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  libc code
Status:  Fixed Assigned to:  Eric Weddington <arcanum>
Percent Complete:  100% Open/Closed:  Closed
Release:  1.7.* Fixed Release:  1.7.2

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 09 May 2011 05:20:12 PM UTC, comment #2: 

Added 'const' keyword to PSTR definition per Johann's recommendation in comment #1.

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.
Wed 06 Apr 2011 08:10:12 PM UTC, comment #1: 

This is addressed in


Besides changes in avr-gcc, definition of include/avr/pgmspace.h:PSTR has to be changed from

# define PSTR(s) (_extension_({static char __c[] PROGMEM = (s); &__c[0];}))


# define PSTR(s) (_extension_({static const char __c[] PROGMEM = (s); &__c[0];}))

with this change avr-libc should build (didn't try it, but there no reason for avr-gcc ICEing any more).

The changes in avr-gcc will lead to a more comprehensible error massage instead of a fatal abort. However, fixing PSTR will still be needed.

Georg-Johann Lay <gjlayde>
Sun 03 Apr 2011 06:24:27 PM UTC, original submission:  

Example of the error:

avr-gcc -DHAVE_CONFIG_H -I. -I../../../../avr/lib/avr2 -I../../..  -I../../../../common -I../../../../include -I../../../include  -g -Wall -W -Wstrict-prototypes -mmcu=avr2 -D__COMPILING_AVR_LIBC__ -mcall-prologues -Os  -MT dtostre.o -MD -MP -MF .deps/dtostre.Tpo -c -o dtostre.o ../../../../libc/stdlib/dtostre.c
../../../../libc/stdlib/dtostre.c: In function ‘dtostre’:
../../../../libc/stdlib/dtostre.c:63:2: internal compiler error: in build_unary_op, at c-typeck.c:3786

So the build can't go on. As I seen, there's also on line 68 and inside other files like vfscanf etc.

Version of GCC: avr-gcc (GCC) 4.6.0.

Cesco <ipersite>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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



    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-09 arcanum StatusNone => Fixed
        Percent Complete0% => 100%
        Assigned toNone => arcanum
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 1.7.2

    Back to the top

    Powered by Savane 3.5