You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even after editing the Makefile as instructed to remove -mpopcnt the build chokes on any macOS computer currently sold by Apple.
./lock.h:57:8: error: invalid output constraint '=&q' in
asm
57 | :"=&q"(dummy)
| ^
./lock.h:69:8: error: invalid input constraint 'q' in asm
69 | :"q"(lock)
| ^
In file included from crafty.c:27:
./utility.c:2074:38: warning: 'sscanf' may overflow;
destination buffer in argument 3 has size 64, but the corresponding
specifier may require size 65 [-Wfortify-source]
2074 | sscanf(buffer, "%64s", analysis_move);
| ^
1 warning and 2 errors generated.
Environment
Computer: MacBook Pro 14-inch, 2021
Chip: Apple M1 Pro
Memory: 32 GB
macOS: Tahoe 26.6.2
clang: 21.0.0
Target: arm64-apple-darwin25.6.0
Thread model: posix
Solution
I've solved the problem for myself by creating my own branch. If I provide a pull request which modifies lock.h and Makefile so that Apple silicon builds are supported, would you be interested? Would you want that warning addressed as well, or would you prefer to deal with that problem separately?
On Fri, Aug 28, 2026, 10:36 AM Bob Kline ***@***.***> wrote:
*bkline* created an issue (MichaelB7/Crafty#14)
<#14>
Issue
Even after editing the Makefile as instructed to remove -mpopcnt the
build chokes on any macOS computer currently sold by Apple.
./lock.h:57:8: error: invalid output constraint '=&q' in
asm
57 | :"=&q"(dummy)
| ^
./lock.h:69:8: error: invalid input constraint 'q' in asm
69 | :"q"(lock)
| ^
In file included from crafty.c:27:
./utility.c:2074:38: warning: 'sscanf' may overflow;
destination buffer in argument 3 has size 64, but the corresponding
specifier may require size 65 [-Wfortify-source]
2074 | sscanf(buffer, "%64s", analysis_move);
| ^
1 warning and 2 errors generated.
Environment
- Computer: MacBook Pro 14-inch, 2021
- Chip: Apple M1 Pro
- Memory: 32 GB
- macOS: Tahoe 26.6.2
- clang: 21.0.0
- Target: arm64-apple-darwin25.6.0
- Thread model: posix
Solution
I've solved the problem for myself by creating my own branch. If I provide
a pull request which modifies lock.h and Makefile so that Apple silicon
builds are supported, would you be interested? Would you want that warning
addressed as well, or would you prefer to deal with that problem separately?
—
Reply to this email directly, view it on GitHub
<#14?email_source=notifications&email_token=ADINNUY3FP22ZF4YBFLLGAT5MGKFVA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJSG44TENZXGA3DFJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADINNU4KMY5SBVFDFNZDBCT5MGKFVAVCNFSNUABEKJSXA33TNF2G64TZHM3DSNZZGQZDMNB3JFZXG5LFHM2TENZZGI3TOMBWGKQXMAQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Enjoy your retirement, Michael. I just retired at 78 (though only reluctantly, when the current administration shut down the programs I was supporting at the National Cancer Institute). I'm mostly bicycling, reading with my wife, helping her with her master gardener activities, contributing to open source software projects, and playing chess with my son and my granddaughter.
Activity
MichaelB7 commentedon Aug 28, 2026
bkline commentedon Aug 28, 2026
Enjoy your retirement, Michael. I just retired at 78 (though only reluctantly, when the current administration shut down the programs I was supporting at the National Cancer Institute). I'm mostly bicycling, reading with my wife, helping her with her master gardener activities, contributing to open source software projects, and playing chess with my son and my granddaughter.
Cheers,
Bob