[solved] Issue compiling for 4313 using latest tiny core

I am attempting to run this sketch

#include <Entropy.h>

void setup()
{
  Serial.begin(9600);
  Entropy.Initialize();
}

void loop()
{
  Serial.println(Entropy.random());
}

on an ATtiny4313 using the internal oscillator at 8Mhz (also at 1MHz) and get the following error when attempting to compile the sketch

avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny4313 -DF_CPU=8000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I/home/wandrson/sketchbook/hardware/tiny/cores/tiny -I/home/wandrson/sketchbook/libraries/Entropy /tmp/build6886738392706114315.tmp/test_entropy.cpp -o /tmp/build6886738392706114315.tmp/test_entropy.cpp.o 
avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny4313 -DF_CPU=8000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I/home/wandrson/sketchbook/hardware/tiny/cores/tiny -I/home/wandrson/sketchbook/libraries/Entropy -I/home/wandrson/sketchbook/libraries/Entropy/utility /home/wandrson/sketchbook/libraries/Entropy/Entropy.cpp -o /tmp/build6886738392706114315.tmp/Entropy/Entropy.cpp.o 
/home/wandrson/sketchbook/libraries/Entropy/Entropy.cpp: In member function ‘uint32_t EntropyClass::random(uint32_t, uint32_t)’:
/home/wandrson/sketchbook/libraries/Entropy/Entropy.cpp:153:12: warning: unused variable ‘slice’
  Using previously compiled: /tmp/build6886738392706114315.tmp/wiring.c.o
  Using previously compiled: /tmp/build6886738392706114315.tmp/wiring_pulse.c.o
  Using previously compiled: /tmp/build6886738392706114315.tmp/wiring_analog.c.o
  Using previously compiled: /tmp/build6886738392706114315.tmp/wiring_shift.c.o
  Using previously compiled: /tmp/build6886738392706114315.tmp/wiring_digital.c.o
avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny4313 -DF_CPU=8000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I/home/wandrson/sketchbook/hardware/tiny/cores/tiny /home/wandrson/sketchbook/hardware/tiny/cores/tiny/WInterrupts.c -o /tmp/build6886738392706114315.tmp/WInterrupts.c.o 
In file included from /home/wandrson/sketchbook/hardware/tiny/cores/tiny/wiring_private.h:32:0,
                 from /home/wandrson/sketchbook/hardware/tiny/cores/tiny/WInterrupts.c:37:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,
                 from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,
                 from /home/wandrson/sketchbook/hardware/tiny/cores/tiny/wiring_private.h:32,
                 from /home/wandrson/sketchbook/hardware/tiny/cores/tiny/WInterrupts.c:37:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘>=’ token

Looks like the only real error is the last 2 lines - and would suggest that either the math.h file is damaged or has been poorly edited.

Remove round from wiring.h...
http://code.google.com/p/arduino-tiny/issues/detail?id=29&q=round

Thanks, that did the trick!

You are welcome!