Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling problem #24

Open
lemio opened this issue Dec 4, 2012 · 3 comments
Open

Compiling problem #24

lemio opened this issue Dec 4, 2012 · 3 comments

Comments

@lemio
Copy link

lemio commented Dec 4, 2012

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
Copy link
Owner

stefanix commented Dec 7, 2012

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
Copy link
Author

lemio commented Dec 7, 2012

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_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
Copy link
Owner

stefanix commented Dec 8, 2012

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants