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

 
 

bug #34560: math.h error while compiling

Submitted by:  Carl John Nobile <cnobile>
Submitted on:  Sat 15 Oct 2011 11:32:19 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: InvalidPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: 1.7.1Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
Sun 16 Oct 2011 10:39:55 AM UTC, comment #3:

It's problem in Arduino header, see

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=870506#870506

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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by gjlayde (Posted a comment)
  • -unavailable- added by cnobile (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Oct 2011 01:19:40 PM UTCjoerg_wunschStatusNone=>Invalid
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1