bugAVR C Runtime Library - Bugs: bug #34560, math.h error while compiling

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34560: math.h error while compiling

Submitter:  Carl John Nobile <cnobile>
Submitted:  Sat 15 Oct 2011 11:32:19 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Invalid Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  1.7.1 Fixed Release:  None

Sun 16 Oct 2011 01:19:40 PM UTC, comment #4: 

Not only a `problem' but a bug, actually.  "round", being
part of the standard library, belongs to the implementation
namespace and thus must not be defined by an application.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 16 Oct 2011 10:39:55 AM UTC, comment #3: 
Georg-Johann Lay <gjlayde>
Sun 16 Oct 2011 05:00:50 AM UTC, comment #2: 

I know it is not my source since it works perfectly well with the older version of AVR and all of the Arduino examples I tried failed wite the exact same error.

Since I got this error with the Arduino IDE how would I generate a preprocessed output outside of the IDE?

Carl John Nobile <cnobile>
Sun 16 Oct 2011 12:47:42 AM UTC, comment #1: 

math.h's line #462 is the end of the file and empty.

Thus math.h:426:15 is no part of math.h and the error message might be misleading because of fuzzyness in compiler location tracking and just as well point to some other header or your source.

Generate a preprocessed output (.i/.ii generated with -save-temps) and attach it.

Georg-Johann Lay <gjlayde>
Sat 15 Oct 2011 11:32:19 PM UTC, original submission:  

The error below appeared after updating from Kubuntu 11.04 to 11.10. This went from AVR version 1.6.7 to 1.7.1. The error itself happened while compiling code in the Arduino 0022 IDE. It made no difference what code I compiled I get this error every time.

In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,
                 from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,
                 from /opt/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
                 from /opt/arduino-0022/hardware/arduino/cores/arduino/WInterrupts.c:34:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘>=’ token

Carl John Nobile <cnobile>

 

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

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 joerg_wunsch (Posted a comment)
  • -email is unavailable- added by gjlayde (Posted a comment)
  • -email is unavailable- added by cnobile (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-16 joerg_wunsch StatusNone Invalid
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code