I'm trying to compile the "ledsensor" example from the Galileo Labs page, but get the error:
make: warning: Clock skew detected. Your build may be incomplete.
The binary file is created, but when I run it it says:
root@clanton:~/labs/ledsensor/c/bin# ./ledsensor *** LED and sensor demo *** interrupt-error: Cannot set frequency 0 min 0 max 1000 Setting up...Done Looping... Value: 0
This is the full compilation output:
make: Warning: File `Makefile' has modification time 500229 s in the future make clean make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 500228 s in the future Cleaning the project.... rm -rf bin/* obj/* make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make sourcec make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 500228 s in the future cc -c src/mux.c src/trace.c src/wiring_digital.c src/ledsensor.c src/fast_gpio_s c.c src/interrupt.c src/wiring_analog.c src/sysfs.c src/i2c.c src/wiring_analog.c: In function 'pwmInit': src/wiring_analog.c:200:2: warning: 'return' with a value, in function returning void [enabled by default] rm ledsensor.o mv *.o obj make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make sourcecpp make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 500207 s in the future g++ -c src/IPAddress.cpp src/WString.cpp src/UtilTime.cpp src/TTYUART.cpp src/va riant.cpp src/Print.cpp src/Stream.cpp src/RingBuffer.cpp src/WMath.cpp src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'ch ar*' [-Wwrite-strings] mv *.o obj make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make ledsensor make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 500183 s in the future g++ src/ledsensor.c -o bin/ledsensor obj/wiring_digital.o obj/Stream.o obj/fast_ gpio_sc.o obj/interrupt.o obj/RingBuffer.o obj/Print.o obj/IPAddress.o obj/WStri ng.o obj/wiring_analog.o obj/sysfs.o obj/i2c.o obj/UtilTime.o obj/TTYUART.o obj/ WMath.o obj/variant.o obj/mux.o obj/trace.o -lpthread make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make: warning: Clock skew detected. Your build may be incomplete. root@clanton:~/labs/ledsensor/c# clear root@clanton:~/labs/ledsensor/c# make make: Warning: File `Makefile' has modification time 499895 s in the future make clean make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 499895 s in the future Cleaning the project.... rm -rf bin/* obj/* make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make sourcec make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 499895 s in the future cc -c src/mux.c src/trace.c src/wiring_digital.c src/ledsensor.c src/fast_gpio_sc.c src/interrupt.c src/wiring_analog.c src/sysfs.c src/i2c.c src/wiring_analog.c: In function 'pwmInit': src/wiring_analog.c:200:2: warning: 'return' with a value, in function returning void [enabled by default] rm ledsensor.o mv *.o obj make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make sourcecpp make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 499876 s in the future g++ -c src/IPAddress.cpp src/WString.cpp src/UtilTime.cpp src/TTYUART.cpp src/variant.cpp src/Print.cpp src/Stream.cpp src/RingBuffer.cpp src/WMath.cpp src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:70:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] src/WString.cpp:78:2: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] mv *.o obj make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make ledsensor make[1]: Entering directory `/home/root/labs/ledsensor/c' make[1]: Warning: File `Makefile' has modification time 499853 s in the future g++ src/ledsensor.c -o bin/ledsensor obj/wiring_digital.o obj/Stream.o obj/fast_gpio_sc.o obj/interrupt.o obj/RingBuffer.o obj/Print.o obj/IPAddress.o obj/WString.o obj/wiring_analog.o obj/sysfs.o obj/i2c.o obj/UtilTime.o obj/TTYUART.o obj/WMath.o obj/variant.o obj/mux.o obj/trace.o -lpthread make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/root/labs/ledsensor/c' make: warning: Clock skew detected. Your build may be incomplete.
What am I doing wrong?
Thanks.