clock skew even on clean

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using the recently released (9/13) version of WINAVR. I am seeing clock skew error messages almost all the time, even when I do a clean. The make file I use is a very minor modification of the one given in the sample program (changed target and added a list of source files).
Here is an example during a "make clean":
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=mem_chk.lst -Ic:\Documents -Iand -ISettings\fullma00\desktop\tri_503 -std=gnu99 mem_chk.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > mem_chk.d; \
[ -s mem_chk.d ] || rm -f mem_chk.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=trident.lst -Ic:\Documents -Iand -ISettings\fullma00\desktop\tri_503 -std=gnu99 trident.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > trident.d; \
[ -s trident.d ] || rm -f trident.d
make: *** Warning: File `mem_chk.d' has modification time in the future (2003-09-22 15:10:52 > 2003-09-22 15:10:50)

-------- begin --------

Cleaning project:
rm -f trident.hex
rm -f trident.eep
rm -f trident.obj
rm -f trident.cof
rm -f trident.elf
rm -f trident.map
rm -f trident.obj
rm -f trident.a90
rm -f trident.sym
rm -f trident.lnk
rm -f trident.lss
rm -f trident.o mem_chk.o util.o uart.o sequence.o hw.o
rm -f trident.lst mem_chk.lst util.lst uart.lst sequence.lst hw.lst
rm -f trident.s mem_chk.s util.s uart.s sequence.s hw.s
rm -f trident.d mem_chk.d util.d uart.d sequence.d hw.d
Errors: none
-------- end --------

make: *** Warning: Clock skew detected. Your build may be incomplete.

> Process Exit Code: 0

I assume this has something to do with file times created in the future. Any hints on how to fix this problem?
Thanks,
Marc Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you search on "clock skew" in this forum?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,
I saw some discussion. I understand if files are pulled off a server this message may result from clock differences on different machines. This is not the case for my example. The folder is on my desktop. Did I miss something? I had not seen this happening in the past when I used the older gcc_cmp.bat files and older make files.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And are you using an older OS, perhaps Win 95 / 98?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am seeing this message quite often too, on both Win98 and Win2K machines. In addition to that, when the compiler is invoked from the AVRStudio 3.56, the system always reports 'errors detected during link stage', but everything seems to work despite both warnings.
I have made a clean install of the newest release of WINAVR.
Thanks,
Eugene

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using Windows 2000.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm sure I've seen that issue on Win98, though I don't remember having ever seen it on XP.

Beside getting to point of why it happens I could suggest a "sleep 1" before linking... ok, sounds a bit silly.

Since the matter is related to the filesystem type (not only the O.S. running), could be interesting verifying that one too -- a FAT16/FAT32 partition has its limits of 2 seconds in file time resolution: maybe the O.S. caching system can help (or not) overcoming this.

Throwing in a couple of links:
http://mail.gnu.org/archive/html...
http://msdn.microsoft.com/librar...

Lou

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Lou:
Thanks. I knew I'd seen this, but I was trying to remember what the cause was (the FAT file system and 2 second file time resolution).

Eugene:
Your 'errors detected during link stage' is specific to AVR Studio 3 only and has nothing to do with the GCC compiler. See the instructions in the WinAVR README about how to set up AVR Studio 3 to use AVR GCC. Better still, drop AVR Studio 3 altogether and use Programmers Notepad that is included. It's better than using AVR Studio 3.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My thanks also. I am pretty sure this makes sense. My computer at work has a FAT file system, while the one I use at home is NTFS. I only see the problem at work. So this is consistent with your explanation.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry if this seems ignorant but is there actually a cure for this ? I am using W2K FAT.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The problem stems from the FAT file system itself. The cure is to "upgrade" to NTFS. Sorry. :-(