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.
Responsible Changed From-To: freebsd-ports-bugs->joerg Fix synopsis and assign.
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"
State Changed From-To: open->closed Resolved by upgrading to avr-libc 1.8.0.