Previous Thread
Next Thread
Print Thread
#111902 - 12/27/17 03:57 PM Clock Skew detected  
Joined: Feb 2014
Posts: 146
Golden Child Offline
Senior Member
Golden Child  Offline
Senior Member

Joined: Feb 2014
Posts: 146
So I grabbed the latest 193 source release hot off the presses at mamedev.org and set to compiling.

But the file times are set in the future, so the make goes off the rails.

What's really wacky is that it actually causes g++ to segfault on Ubuntu 17.10 with gcc 7.2.0.

After running

Code
find -type f -exec touch {} +


while in the mame directory which touches all the file times, everything goes smoothly. (from https://askubuntu.com/questions/580409/how-to-touch-files-recursively)

Hmmmm 54637s is about 15 hours, maybe because of Australia time and me being in the US?

I suppose I could just wait 15 hours also 8-)


Quote


~/Downloads/mame193_extract/mame$ time make -j5
GCC 7 detected
make: Warning: File 'regtests/regtests.mak' has modification time 54637 s in the future
make[1]: Warning: File 'genie.make' has modification time 54623 s in the future
Creating obj/Release
Converting translation language/Danish/strings.po...
Converting translation language/Serbian/strings.po...
Converting translation language/Finnish/strings.po...
...
Generating ../build/projects/sdl/mame/gmake-linux/mame.make...
Done. Generated 342/342 projects.
make[2]: Warning: File '../../../../../src/emu/emu.h' has modification time 54512 s in the future
Creating ../../../../linux_gcc/bin/x64/Release
Precompiling src/emu/emu.h...
Compiling src/emu/drivers/empty.cpp...
Archiving libprecompile.a...
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File '../../../../../3rdparty/lzma/C/7zAlloc.c' has modification time 54486 s in the future
Creating ../../../../linux_gcc/bin/x64/Release/mame_mame
Compiling 3rdparty/lzma/C/7zAlloc.c...
Creating ../../../../linux_gcc/bin/x64/Release/mame_mame
make[2]: Warning: File '../../../../../src/emu/emu.h' has modification time 54506 s in the future
Creating ../../../../linux_gcc/bin/x64/Release/mame_mame
Creating ../../../../linux_gcc/bin/x64/Release/mame_mame
make[2]: Warning: File '../../../../../src/emu/emu.h' has modification time 54506 s in the future
Precompiling src/emu/emu.h...
Precompiling src/emu/emu.h...
make[2]: Warning: File '../../../../../src/emu/emu.h' has modification time 54506 s in the future
make[2]: Warning: File '../../../../../src/emu/emu.h' has modification time 54506 s in the future
Precompiling src/emu/emu.h...
Precompiling src/emu/emu.h...
Compiling 3rdparty/lzma/C/7zArcIn.c...
Compiling 3rdparty/lzma/C/7zBuf.c...
Compiling 3rdparty/lzma/C/7zBuf2.c...
Compiling 3rdparty/lzma/C/7zCrc.c...
Compiling 3rdparty/lzma/C/7zCrcOpt.c...
Compiling 3rdparty/lzma/C/7zDec.c...
Compiling 3rdparty/lzma/C/7zFile.c...
Compiling 3rdparty/lzma/C/7zStream.c...
Compiling 3rdparty/lzma/C/Aes.c...
Compiling 3rdparty/lzma/C/AesOpt.c...
Compiling 3rdparty/lzma/C/Alloc.c...
Compiling 3rdparty/lzma/C/Bcj2.c...
Compiling 3rdparty/lzma/C/Bra.c...
Compiling 3rdparty/lzma/C/Bra86.c...
Compiling 3rdparty/lzma/C/BraIA64.c...
Compiling 3rdparty/lzma/C/CpuArch.c...
Compiling 3rdparty/lzma/C/Delta.c...
Compiling 3rdparty/lzma/C/LzFind.c...
Compiling 3rdparty/lzma/C/Lzma2Dec.c...
Compiling 3rdparty/lzma/C/Lzma2Enc.c...
Compiling 3rdparty/lzma/C/Lzma86Dec.c...
Compiling 3rdparty/lzma/C/Lzma86Enc.c...
Compiling 3rdparty/lzma/C/LzmaDec.c...
Compiling 3rdparty/lzma/C/LzmaEnc.c...
Compiling src/mame/drivers/a6809.cpp...
Compiling src/mame/drivers/acvirus.cpp...
Compiling src/mame/drivers/super6.cpp...
Compiling src/mame/drivers/apricot.cpp...
Compiling 3rdparty/lzma/C/Ppmd7.c...
Compiling 3rdparty/lzma/C/Ppmd7Dec.c...
Compiling 3rdparty/lzma/C/Ppmd7Enc.c...
Compiling 3rdparty/lzma/C/Sha256.c...
Compiling 3rdparty/lzma/C/Sort.c...
g++: internal compiler error: Segmentation fault (program cc1plus)
g++: internal compiler error: Segmentation fault (program cc1plus)
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
access.make:307: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/acvirus.o' failed
act.make:344: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/apricot.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/acvirus.o] Error 4
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/apricot.o] Error 4
adc.make:313: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/super6.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/super6.o] Error 4
Makefile:412: recipe for target 'act' failed
make[1]: *** [act] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:409: recipe for target 'access' failed
make[1]: *** [access] Error 2
Makefile:415: recipe for target 'adc' failed
make[1]: *** [adc] Error 2
Compiling src/mame/drivers/acrnsys1.cpp...
Compiling src/mame/drivers/accomm.cpp...
Compiling src/mame/drivers/aa310.cpp...
Archiving lib7z.a...
make[2]: warning: Clock skew detected. Your build may be incomplete.
Compiling src/mame/drivers/aristmk5.cpp...
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
acorn.make:435: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/acrnsys1.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/acrnsys1.o] Error 4
make[2]: *** Waiting for unfinished jobs....
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
acorn.make:431: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/accomm.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/accomm.o] Error 4
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
acorn.make:427: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/aa310.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/aa310.o] Error 4
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
acorn.make:439: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/aristmk5.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/aristmk5.o] Error 4
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
acorn.make:423: recipe for target '../../../../linux_gcc/obj/x64/Release/src/mame/drivers/a6809.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/mame/drivers/a6809.o] Error 4
Makefile:100: recipe for target 'acorn' failed
make[1]: *** [acorn] Error 2
makefile:1243: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2

real 2m55.372s
user 6m54.157s
sys 0m17.684s



After touching everything and compiling it seems to launch fine:

Code
34845 driver(s) found
Compiling generated/mame/mame/drivlist.cpp...
Linking mame64...

real	62m26.826s
user	227m2.907s
sys	10m57.431s
./mame64 -verbose
    _/      _/    _/_/    _/      _/  _/_/_/_/
   _/_/  _/_/  _/    _/  _/_/  _/_/  _/       
  _/  _/  _/  _/_/_/_/  _/  _/  _/  _/_/_/    
 _/      _/  _/    _/  _/      _/  _/         
_/      _/  _/    _/  _/      _/  _/_/_/_/    

mame 0.193	
Copyright (C) Nicola Salmoria and the MAME team

Lua 5.3	
Copyright (C) Lua.org, PUC-Rio

Available videodrivers: x11 mir wayland dummy 
Current Videodriver: x11
	Display #0
		Renderdrivers:
			    opengl (0x0)
			 opengles2 (0x0)
			  software (0x0)
	Display #1
		Renderdrivers:
			    opengl (0x0)
			 opengles2 (0x0)
			  software (0x0)
Available audio drivers: 
	pulseaudio          
	alsa                
	sndio               
	dsp                 
	disk                
	dummy               
Build version:      0.193 (unknown)
Build architecure:  
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 
Build defines 1:    LSB_FIRST=1 PTR64=1 
SDL/OpenGL defines: SDL_COMPILEDVERSION=2006 USE_OPENGL=1 
Compiler defines A: __GNUC__=7 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=0 __VERSION__="7.2.0" 
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1 
Compiler defines C: __USE_FORTIFY_LEVEL=0 

#111903 - 12/27/17 04:26 PM Re: Clock Skew detected [Re: Golden Child]  
Joined: Feb 2004
Posts: 1,961
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,961
Sydney, Australia
Timestamps in zip archives are kind of nasty. Every entry always has a DOS-style timestamp in local time on the system where the archive was created. Additionally, an entry can have a POSIX-style timestamp (seconds since 1970 UTC) and/or a NTFS-style timestamp (higher precision than the POSIX-style timestamp, and also UTC). I'm not sure which ones end up present in the source archive - it's whatever the 7za tool does by default. You're also limited by the timestamp formats the program you use to read/extract the archive supports (for example MAME supports the DOS-style and NTFS-style timestamps, but not POSIX-style timestamps, when reading zip archives).

Anyway, you don't really have to use the source zip archive. It's really designed as a lowest common denominator for people with no other options. You can decompress the self-extracting source archive with 7za on UNIX/Linux as well - this shouldn't give you timestamp issues, but the source will still have CRLF line endings as is the case with the zip archive.

But the source archives are really only intended for people who can't run git with a live network connection. You can do a 1-deep clone (i.e. not downloading the entire revision history) of any release quite easily:
Code
git clone --branch mame0193 --depth 1 https://github.com/mamedev/mame mame0193


Substitute the version you want. This should give you native line endings and no timestamp issues.

#111904 - 12/27/17 05:49 PM Re: Clock Skew detected [Re: Vas Crabb]  
Joined: Feb 2014
Posts: 146
Golden Child Offline
Senior Member
Golden Child  Offline
Senior Member

Joined: Feb 2014
Posts: 146
Hi Vas,

Thanks for your reply. I didn't realize there's so much subtlety in the cross-platform zip files timestamps. I better get (git) up to date with the git method.

Old habits die hard, I'm so used to downloading things by hand. 8-)


Moderated by  R. Belmont 

Who's Online Now
1 registered members (1 invisible), 12 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,544
Posts111,686
Members4,795
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.051s Queries: 14 (0.028s) Memory: 4.9475 MB (Peak: 5.1169 MB) Zlib enabled. Server Time: 2018-06-24 05:04:10 UTC