On 08/01/2021 05:07 AM, Jeremie Courreges-Anglas wrote:
> Hi,
>
> stockfish used to fail in my current bulk, with horrible error
> messages.
>
> --8<--
> c++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra
> -Wshadow -m32 -DUSE_PTHREADS -DNDEBUG -O2 -pipe -DNO_PREFETCH -c
> -o benchmark.o benchmark.cpp
> In file included from benchmark.cpp:19:
> In file included from /usr/include/c++/v1/fstream:182:
> /usr/include/c++/v1/__config:1155:6: error: "No thread API"
> # error "No thread API"
> [loads of errors written in cuneiform]
> -->8--
>
> The problem is obvious if you don't try too hard to interpret the error
> message. I tracked it down to the use of -m32 in CFLAGS.
>
> Here's a fix that should also help for the next 64 bits architectures.
> With this stockfish builds properly on riscv64, I checked that it still
> does the right thing on sparc64.
>
> ok?
>
Yes, ok. Thanks.
~Brian
No comments:
Post a Comment