simen/grbl — Issue #43: Compiling Grbl
Author: TheExtraPiece
Created: 2011-12-04 02:01:07+00:00
State: open

I'm trying to compile grbl (using avr-gcc 4.5.3 and avr-libc 1.7.1) but when I try to make the files from the repositories, I always get this error. It happens on every version of grbl.

avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c motion_control.c -o motion_control.o
In file included from motion_control.c:26:0:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function ‘mc_dwell’:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:153:28: error: __builtin_avr_delay_cycles expects an integer constant.
make: *** [motion_control.o] Error 1

Any suggestions?