BenötigeHelp needed to compile Stormphrax::Error messages

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

Moderator: Ras

chessica
Posts: 987
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

BenötigeHelp needed to compile Stormphrax::Error messages

Post by chessica »

How do I get rid of these error messages?

...

Code: Select all

In file included from ./src/position/position.cpp:19:
In file included from ./src/position\position.h:33:
./src/position\../eval/nnue.h:40:9: error: constraints not satisfied for class template
      'DensePerspectiveAffineLayer' [with Input = short, Param = short, Activation =
      stormphrax::eval::nnue::activation::SquaredClippedReLU<short, int, 255>, Inputs = 1536,
      Outputs = 1, OutputBucketing = stormphrax::eval::nnue::output::MaterialCount<8>]
   40 |                 nnue::DensePerspectiveAffineLayer<
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |                         i16, i16,
      |                         ~~~~~~~~~
   42 |                         L1Activation,
      |                         ~~~~~~~~~~~~~
   43 |                         L1Size, 1,
      |                         ~~~~~~~~~~
   44 |                         OutputBucketing
      |                         ~~~~~~~~~~~~~~~
   45 |                 >
      |                 ~
./src/position\../eval\nnue/layers.h:137:44: note: because
      'stormphrax::eval::nnue::activation::SquaredClippedReLU<short, int, 255>' does not satisfy
      'Activation'
  137 |         template <typename Input, typename Param, activation::Activation Activation,
      |                                                   ^
./src/position\../eval\nnue/activation.h:39:7: note: because type constraint
      'std::same_as<short, util::simd::Vector<typename SquaredClippedReLU<short, int,
      255>::OutputType> >' was not satisfied:
   39 |                         -> std::same_as<util::simd::Vector<typename T::OutputType>>;
      |                            ^
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\concepts:35:19: note:
      because '_Same_impl<short, int>' evaluated to false
   35 | concept same_as = _Same_impl<_Ty1, _Ty2> && _Same_impl<_Ty2, _Ty1>;
      |                   ^
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\concepts:29:5: note:
      because '__is_same(short, int)' evaluated to false
   29 |     __is_same(_Ty1, _Ty2);
      |     ^
In file included from ./src/position/position.cpp:19:
In file included from ./src/position\position.h:33:
./src/position\../eval/nnue.h:51:15: error: unknown type name 'Network'
   51 |         extern const Network &g_network;
      |                      ^
2 errors generated.
In file included from ./src/3rdparty/fathom/tbprobe.cpp:50:
In file included from ./src/3rdparty/fathom\../../simde.h:41:
./src/3rdparty/fathom\../..\./simde/sse4.1.h:7922:8: error: no member named 'isnan' in namespace
      'std'; did you mean simply 'isnan'?
 7922 |   if (!simde_math_isnanf(x)) {
      |        ^~~~~~~~~~~~~~~~~~~~
./src/3rdparty/fathom\../..\./simde/sse4.1.h:4585:34: note: expanded from macro
      'simde_math_isnanf'
 4585 |     #define simde_math_isnanf(v) std::isnan(v)
      |                                  ^~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_math.h:417:32: note:
      'isnan' declared here
  417 |     _Check_return_ inline bool isnan(_In_ _Ty _X) throw()
      |                                ^
1 error generated.
make: *** [Makefile:2: all] Error 1
~/Desktop/Stormphrax-5.03 $
User avatar
Ras
Posts: 2719
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: BenötigeHelp needed to compile Stormphrax::Error messages

Post by Ras »

First step would be to look up any specific build instructions.

Under https://github.com/Ciekce/Stormphrax, you'll find:
"Requires Make and a competent C++20 compiler that supports LTO. GCC is not currently supported, so the usual compiler is Clang. MSVC explicitly does not work."

Going by your path names, you're trying to use MSVC.
Rasmus Althoff
https://www.ct800.net
chessica
Posts: 987
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: BenötigeHelp needed to compile Stormphrax::Error messages

Post by chessica »

I used this version:

~ $ clang --version
clang version 18.1.0rc
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\clang+llvm-18.1.0-x86_64-pc-windows-msvc\bin
~ $
User avatar
Ras
Posts: 2719
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: BenötigeHelp needed to compile Stormphrax::Error messages

Post by Ras »

chessica wrote: Sat Jul 06, 2024 11:01 pmI used this version:
~ $ clang --version
From the error messages:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\concepts
That looks like MSVC, and Clang probably shouldn't try to fetch files from there. Maybe an issue with the PATH variable so that the wrong directories are searched. I'd expect files to be fetched from the Clang path:
C:\Program Files\clang+llvm-18.1.0-x86_64-pc-windows-msvc
Rasmus Althoff
https://www.ct800.net
Ciekce
Posts: 197
Joined: Sun Oct 30, 2022 5:26 pm
Full name: Conor Anstey

Re: BenötigeHelp needed to compile Stormphrax::Error messages

Post by Ciekce »

The first two errors are due to the autovectorisation fallback being broken - I've pushed a fix for both that error and a bug that caused it to produce incorrect results. I was under the impression that your CPU supported SSE 4.1?

The isnan stuff is not on my end - stdlib issue? I use the clang with the MSVC STL as my usual toolchain, so that particular combo is known to work. Line numbers and paths in your error message do not match up with what is in the repo.
chessica
Posts: 987
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: BenötigeHelp needed to compile Stormphrax::Error messages

Post by chessica »

Ciekce wrote: Sun Jul 07, 2024 8:56 am The first two errors are due to the autovectorisation fallback being broken - I've pushed a fix for both that error and a bug that caused it to produce incorrect results. I was under the impression that your CPU supported SSE 4.1?

The isnan stuff is not on my end - stdlib issue? I use the clang with the MSVC STL as my usual toolchain, so that particular combo is known to work. Line numbers and paths in your error message do not match up with what is in the repo.
Hi, good mornig. Only one error, but the compilation was successfull. I found this file: "sp_profile.exe" and this works.

./sp_profile.exe bench
info string 20.7355 seconds
735450 nodes 35468 nps
del sp_profile.exe
process_begin: CreateProcess(NULL, del sp_profile.exe, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make: *** [Makefile:126: stormphrax-5.0.4] Error 2
~/Desktop/Stormphrax-main/Stormphrax-main $

[d]5k2/pp3N2/5K2/5B2/8/8/8/8 w - -
#9

Sp_profile:
8/10 00:00,050 2k 44k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Lf3-d5 Kc8-b8 Kf7-e6 Kb8-c8
30/82+ 01:47,991 22.175k 205k +3,74 Sf7-d6
30/82 01:49,422 22.327k 204k +3,76 Sf7-d6 a7-a5 Lf5-e6 a5-a4 Le6-f7 a4-a3 Sd6-b5 a3-a2 Lf7xa2 Kf8-e8 La2-e6 Ke8-d8 Kf6-f7 b7-b6 Le6-d5 Kd8-d7 Ld5-f3 Kd7-d8 Kf7-f6 Kd8-d7 Lf3-b7 Kd7-e8 Lb7-d5 Ke8-d7 Kf6-f7 Kd7-d8 Kf7-e6 Kd8-e8 Ke6-f6 Ke8-d7 Kf6-f7 Kd7-c8 Ld5-c6 Kc8-d8 Kf7-e6 Kd8-c8 Sb5-d6+ Kc8-c7 Lc6-b5
chessica
Posts: 987
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Help needed to compile Stormphrax::Error messages

Post by chessica »

But the Stormphrax engine is not created yet, or am I wrong? Is only the profile engine created?

Code: Select all

1 warning generated.
Reaping winning child 0000025e873ec040 PID 2605019346240
./sp_profile.exe bench
CreateProcess(C:\Users\Privat\Desktop\Stormphrax-main\Stormphrax-main\sp_profile.exe,./sp_profile.exe bench,...)
Live child 0000025e873ec040 (stormphrax-5.0.4) PID 2605019347136
info string 22.1856 seconds
735450 nodes 33149 nps
Reaping winning child 0000025e873ec040 PID 2605019347136
del sp_profile.exe
CreateProcess(NULL,del sp_profile.exe,...)
process_begin: CreateProcess(NULL, del sp_profile.exe, ...) failed.
Live child 0000025e873ec040 (stormphrax-5.0.4) PID 2605019347120
make (e=2): Das System kann die angegebene Datei nicht finden.
Reaping losing child 0000025e873ec040 PID 2605019347120
make: *** [Makefile:126: stormphrax-5.0.4] Error 2
Removing child 0000025e873ec040 PID 2605019347120 from chain.
~/Desktop/Stormphrax-main/Stormphrax-main $
Ciekce
Posts: 197
Joined: Sun Oct 30, 2022 5:26 pm
Full name: Conor Anstey

Re: Help needed to compile Stormphrax::Error messages

Post by Ciekce »

chessica wrote: Sun Jul 07, 2024 6:34 pm But the Stormphrax engine is not created yet, or am I wrong? Is only the profile engine created?
Correct. You can build a non-PGO build (which will not run into this issue) by passing PGO=off to the makefile (make PGO=off), or alternatively just delete this line https://github.com/Ciekce/Stormphrax/bl ... efile#L110
chessica
Posts: 987
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: Help needed to compile Stormphrax::Error messages

Post by chessica »

Ciekce wrote: Mon Jul 08, 2024 12:52 am
chessica wrote: Sun Jul 07, 2024 6:34 pm But the Stormphrax engine is not created yet, or am I wrong? Is only the profile engine created?
Correct. You can build a non-PGO build (which will not run into this issue) by passing PGO=off to the makefile (make PGO=off), or alternatively just delete this line https://github.com/Ciekce/Stormphrax/bl ... efile#L110

Many thanx

:D :D :D Now it works. :D :D :D

following bench values:
#####################
profile engine
bench
info string set tt size to 16 MB
info string 20.858 seconds
735450 nodes 35259 nps


Stormphrax 5.0.4
bench
info string set tt size to 16 MB
info string 52.8637 seconds
5512154 nodes 104271 nps