spinhawk icon indicating copy to clipboard operation
spinhawk copied to clipboard

Building a 32-bit Windows Version fails

Open g4ugm opened this issue 6 years ago • 3 comments

g4ugm avatar Feb 15 '19 20:02 g4ugm

When building on Windows with the Microsoft SDK V7 it attempts to include some interlocked functions that are not available on 32 bit windows.

g4ugm avatar Feb 15 '19 20:02 g4ugm

Dave, what functions does it use that are missing? Is this connected with commit 3885d1d4 "Backport of IAF2 atomics from hercules-390/hyperion"?

rbowler avatar Feb 16 '19 17:02 rbowler

Roger,

Yes! Its trying

I get errors:-

c:\hercdev\spinhawk-master-peters\spinhawk-master\esame.c(7071) : error C2220: warning treated as error - no 'object' file generated

c:\hercdev\spinhawk-master-peters\spinhawk-master\esame.c(7071) : warning C4013: 'InterlockedAnd64'undefined; assuming extern returning int

c:\hercdev\spinhawk-master-peters\spinhawk-master\esame.c(7451) : warning C4013: 'InterlockedXor64'undefined; assuming extern returning int

c:\hercdev\spinhawk-master-peters\spinhawk-master\esame.c(7819) : warning C4013: 'InterlockedOr64' undefined; assuming extern returning int

general3.c

general1.c(241) : error C2220: warning treated as error - no 'object' file generated

general1.c(241) : warning C4013: 'InterlockedAnd64' undefined; assuming extern returning int

general1.c(2975) : warning C4013: 'InterlockedXor64' undefined; assuming extern returning int

general2.c(99) : error C2220: warning treated as error - no 'object' file generated hconsole.c

general2.c(99) : warning C4013: 'InterlockedOr64' undefined; assuming extern returning int

checking the source the above locations are where the functions in “hatomic.h” are called.

Setting DISABLE_IAF2 at the start of “hatomic.h” generates a clean compile and build.

Dave

From: Roger Bowler [email protected] Sent: 16 February 2019 17:43 To: rbowler/spinhawk [email protected] Cc: Dave Wade [email protected]; Author [email protected] Subject: Re: [rbowler/spinhawk] Building a 32-bit Windows Version fails (#87)

Dave, what functions does it use that are missing? Is this connected with commit https://github.com/rbowler/spinhawk/commit/3885d1d43336ad6854dd90bf8ba5491cd704d8c2 3885d1d "Backport of IAF2 atomics from hercules-390/hyperion"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbowler/spinhawk/issues/87#issuecomment-464366317 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABXNJOARuqF3yYee2dspcK37cGc42Bu9ks5vOENAgaJpZM4a-aLY . https://github.com/notifications/beacon/ABXNJGzdzqnCvlcwEe1ukkVWGTU4mkg0ks5vOENAgaJpZM4a-aLY.gif

g4ugm avatar Feb 16 '19 18:02 g4ugm