Bug 163562 - devel/avr-libc will not compile when using util/delay.h
Summary: devel/avr-libc will not compile when using util/delay.h
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Joerg Wunsch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 13:00 UTC by Bob Frazier
Modified: 2011-12-30 09:00 UTC (History)
0 users

See Also:


Attachments
file.diff (511 bytes, patch)
2011-12-23 13:00 UTC, Bob Frazier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Frazier 2011-12-23 13:00:24 UTC
attempting to build code for avr using avr-gcc and avr-libc (arduino build environment).  Code that makes use of 'delay' causes several compile errors, similar to the following:

/usr/local/lib/gcc/avr/4.3.4/../../../../avr/include/util/delay.h:149: error: 'fabs' was not declared in this scope 

the problem and a workable solution are both described here
http://code.google.com/p/arduino/issues/detail?id=604

the attached patch file resolves this issue.

Fix: see attached patch file, that adds #include <math.h> to /usr/local/avr/include/util/delay.h



Patch attached with submission follows:
How-To-Repeat: install latest avr-libc and arduino build environment and attempt to build the 'blink' sample.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-12-23 13:54:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->joerg

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-12-30 08:54:08 UTC
joerg       2011-12-30 08:53:57 UTC

  FreeBSD ports repository

  Modified files:
    devel/avr-libc       Makefile distinfo pkg-plist 
  Log:
  Upgrade to avr-libc 1.8.0
  
  PR:             ports/163562
  
  Revision  Changes    Path
  1.81      +3 -2      ports/devel/avr-libc/Makefile
  1.41      +2 -2      ports/devel/avr-libc/distinfo
  1.39      +25 -0     ports/devel/avr-libc/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Joerg Wunsch freebsd_committer freebsd_triage 2011-12-30 08:54:59 UTC
State Changed
From-To: open->closed

Resolved by upgrading to avr-libc 1.8.0.