[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] __builtin_avr_delay_cycles and avr-gcc 4.5.3 issue
From: |
foka |
Subject: |
[Simulavr-devel] __builtin_avr_delay_cycles and avr-gcc 4.5.3 issue |
Date: |
Sun, 18 Mar 2012 23:41:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
Hi,
I found a message regarding this issue:
In file included from StdDefs.c:8:0:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function
‘msleep’:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:153:43: error:
__builtin_avr_delay_cycles expects an integer constant.
make: *** [StdDefs.o] Error 1
but I did not found any solution.
So please have a look at the provided patch. Since I don't know much
about the internals of simulavr I'm not sure if this fix is correct. But
at least it's a compiling and working (IMHO) solution for possibly
broken avr-libc.
Best Regards,
- Foka
0001-Possible-compile-fix-for-avr-gcc-4.5.3.patch
Description: Text Data
- [Simulavr-devel] __builtin_avr_delay_cycles and avr-gcc 4.5.3 issue,
foka <=