HPCE / hpce-2017-cw6

2 stars 17 forks source link

fatal error: sys/times.h: No such file or directory #9

Closed aaronlws95 closed 6 years ago

aaronlws95 commented 6 years ago

I'm using the canned version of mingw provided on Windows 10. I can't seem to do make _bin/stressstd (also with search and certify) without getting this error. Any suggestions?

systimescompilationerror

m8pple commented 6 years ago

Ah - my bad. When I was trying to come up with a set of "standard" flags (as mentioned in #7 ), I think I did it first in mingw, then checked it on linux and must have flipped a flag there and not gone back to mingw.

As a short-term fix, try commenting out line 66 of testu01/include/gdef.h: https://github.com/HPCE/hpce-2017-cw6/blob/163fbc6b198cd9eddb7b58a782419f0c93d28c52/testu01/include/gdef.h#L66 and replace it with:

#define USE_ANSI_CLOCK

For mingw you want to activate the codepath here or the code-path here.

I'm currently looking at it, but need to make sure I don't break the linux build by fixing the mingw one.