FreeBSD Bugzilla – Bug 163562
devel/avr-libc will not compile when using util/delay.h
Last modified: 2011-12-30 09:00:28 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
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.
Fix synopsis and assign.
joerg 2011-12-30 08:53:57 UTC
FreeBSD ports repository
devel/avr-libc Makefile distinfo pkg-plist
Upgrade to avr-libc 1.8.0
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
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"
Resolved by upgrading to avr-libc 1.8.0.