Gull 3 (Linux port) released.

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

mvk
Posts: 589
Joined: Tue Jun 04, 2013 10:15 pm

Re: Gull 3 (Linux port) released.

Post by mvk »

syzygy wrote:At least mingw still gave a compiler error or warning a few years ago when crosscompiling for Windows.
It still gives that warning, but the library it links to accepts %lld. So I now have %lld in my code and this in my Makefile:

Code: Select all

win32_flags:=-Wno-format # Suppress warnings about "%lld"/"%I64d". Both work fine.
Maybe it breaks on older systems? I have no idea.
[Account deleted]
basil00
Posts: 55
Joined: Thu Oct 22, 2015 2:14 am

Re: Gull 3 (Mac port soon to be released)

Post by basil00 »

MikeB wrote:Just copy the same code to where the quit command ( about line 6792). SIGPIPE does about the same thing as SIGTERM without providing the TERMINATED 15 message . Should work for LINUX too
Yes that will work, provided Gull is terminated via the "quit" command. Otherwise if Gull is terminated by some other means, e.g. a signal, then the child processes will live on, which is not ideal. Not sure if there is a mac-specific solution like prctl for Linux.
syzygy
Posts: 5951
Joined: Tue Feb 28, 2012 11:56 pm

Re: Gull 3 (Linux port) released.

Post by syzygy »

mvk wrote:
syzygy wrote:At least mingw still gave a compiler error or warning a few years ago when crosscompiling for Windows.
It still gives that warning, but the library it links to accepts %lld. So I now have %lld in my code and this in my Makefile:

Code: Select all

win32_flags:=-Wno-format # Suppress warnings about "%lld"/"%I64d". Both work fine.
Maybe it breaks on older systems? I have no idea.
Most likely it will, if it runs at all on systems that old.
Dann Corbit
Posts: 12870
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Gull 3 (Mac port soon to be released)

Post by Dann Corbit »

basil00 wrote:
MikeB wrote:Just copy the same code to where the quit command ( about line 6792). SIGPIPE does about the same thing as SIGTERM without providing the TERMINATED 15 message . Should work for LINUX too
Yes that will work, provided Gull is terminated via the "quit" command. Otherwise if Gull is terminated by some other means, e.g. a signal, then the child processes will live on, which is not ideal. Not sure if there is a mac-specific solution like prctl for Linux.
The child processes could periodically check for their parent pid, and commit suicide if it goes away.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Gull 3 (Mac port soon to be released)

Post by MikeB »

basil00 wrote: Not sure if there is a mac-specific solution like prctl for Linux.
Nada -but Dan's suggestion will also work. Also the code I referenced in a previous post where SIGPIPE was already located - it is slightly difference and should as is. For quit , use "for i =0 ..." Where it said for "for i = 1 ..." Should stay as is (0 quits , 1 reduces thread to 1).