stefanix / LasaurGrbl

This is grbl for the Lasersaur. Grbl is a g-code-centric CNC controller and Lasersaur is an open source laser cutter.
http://lasersaur.com/
42 stars 14 forks source link

Compiling problem #24

Open lemio opened 11 years ago

lemio commented 11 years ago

When I try to compile this files using flash.py:

In file included from stepper.c:45:0: /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function ‘homing_cycle.clone.0’: /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:230:28: error: __builtin_avr_delay_cycles expects an integer constant.

avr-gcc: stepper.o: No such file or directory avr-objcopy: 'main.elf': No such file avr-size: '.hex': No such file avr-size: '.elf': No such file

stefanix commented 11 years ago

Looks like the avr-libc people have made some non-backward compatible changes. Fix is in latest commit. Let me know if it works for you.

lemio commented 11 years ago

Still the same issue: geert@geert-R509:~/Downloads/stefanix-LasaurGrbl-f4b2c1b (2)$ sudo python flash.py /dev/ttyACM0 Using serial device '/dev/ttyACM0' from command line. In file included from stepper.c:45:0: /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function ‘homing_cycle.clone.0’: /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:230:28: error: __builtin_avr_delaycycles expects an integer constant. avr-gcc: stepper.o: No such file or directory avr-objcopy: 'main.elf': No such file avr-size: '.hex': No such file avr-size: '_.elf': No such file

stefanix commented 11 years ago

I just double-checked and I cannot reproduce the compile error. I tested on Ubuntu64 12.04 and Windows 7 both with the Arduino 1.0 tool chain.

Can you give me more info to reproduce the error? What is your build environment?