Timmoth / Sapling

A strong dotnet UCI Chess engine - My leaf nodes are growing
https://iblunder.com
Apache License 2.0
37 stars 1 forks source link

compiling v1.1.4 fails (Linux) #15

Open tissatussa opened 5 days ago

tissatussa commented 5 days ago

compiling v1.1.4 fails on my Linux :

$ make -j1
dotnet publish Sapling/Sapling.csproj -c Release --runtime linux-x64 --self-contained \
        -p:PublishSingleFile=true -p:DeterministicBuild=true -o ./
  Determining projects to restore...
  Restored /home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj (in 598 ms).
  Restored /home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj (in 598 ms).
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Tuning/SpsaOptions.cs(15,23): warning CS8618: Non-nullable field 'Name' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Tuning/SpsaOptions.cs(16,23): warning CS8618: Non-nullable field 'Type' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Tuning/SpsaOptions.cs(17,23): warning CS8618: Non-nullable field 'DefaultValue' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Tuning/SpsaOptions.cs(18,23): warning CS8618: Non-nullable field 'MinValue' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Tuning/SpsaOptions.cs(19,23): warning CS8618: Non-nullable field 'MaxValue' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Tuning/SpsaOptions.cs(20,26): warning CS8618: Non-nullable field 'FieldHandle' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Evaluation/NnueWeights.cs(45,20): warning CS8602: Dereference of a possibly null reference. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/RepetitionDetector.cs(92,26): warning CS8509: The switch expression does not handle all possible values of its input type (it is not exhaustive). For example, the pattern '0' is not covered. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/Sapling.Engine.csproj]
  Sapling.Engine -> /home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/bin/Release/net8.0/Sapling.Engine.dll
  Successfully created package '/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/bin/Release/SaplingEngine.1.1.0.nupkg'.
  Successfully created package '/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling.Engine/bin/Release/SaplingEngine.1.1.0.symbols.nupkg'.
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/UciEngine.cs(29,23): warning CS8602: Dereference of a possibly null reference. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Program.cs(20,34): warning CS8602: Dereference of a possibly null reference. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
  Sapling -> /home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/bin/Release/net8.0/linux-x64/Sapling.dll
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018: The "GenerateBundle" task failed unexpectedly. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018: System.UnauthorizedAccessException: Access to the path '/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling' is denied. [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:  ---> System.IO.IOException: Permission denied [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    --- End of inner exception stack trace --- [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError) [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException) [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Microsoft.NET.HostModel.Bundle.Bundler.GenerateBundle(IReadOnlyList`1 fileSpecs) [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Microsoft.NET.Build.Tasks.GenerateBundle.ExecuteCore() [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
/home/roelof/dotnet8/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(1038,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/home/roelof/Compiled/Sapling-main-v1.1.4/Sapling/Sapling.csproj]
make: *** [Makefile:42: publish] Error 1

i often have trouble compiling dotnet / C# programs .. previous v1.1.3 went well (except a few warnings) but now i can't solve it ..

Timmoth commented 2 days ago

Thanks for notifying me! I was working on the SPSA tuning and it required some changes to the make file, I've not tested them on linux yet so will try tomorrow and see if I can fix it.

For now the old make file should still work. https://github.com/Timmoth/Sapling/blob/e5d642ea59d65de565dd4823ed1e7ac13d721137/Makefile