Giter Club home page Giter Club logo

dotnet-core-freebsd-source-build's Introduction

Build .NET Core 8 under FreeBSD

New News (2024)

  • We how have community made port under FreeBSD ports for x64/amd64 and aarch64
  • /usr/ports/lang/dotnet/make install or pkg install will get you up and running
  • to speed up port build, use install_tools.sh first, unless you like everything from source

Old news (out-dated, but still some valid points)

  • Just a collection of script and patches put up into one place, to help getting automated builds.
  • For other versions, check proper tag with that name (mostly out-dated and not updated).
  • For my private nuget feed, check dotnet-freebsd-nuget-feed

Usage

  1. Run as root install_tools.sh - make sure to mount all needed things (add them to /etc/fstab, then mount -a)
  2. init.sh
  3. build_runtime.sh - add -v d inside if it will fail with SEHExceptions...
  4. build_aspnetcore.sh
  5. build_installer.sh - this one can fail with downloaing some things, copy URL and try to manualy fetch it into installer/artifacts/obj/redist/Release/downloads/
  6. Check installer/artifacts/packages/Release/Shipping/ or
  7. gather_output.sh will create one archive with everything you should need on target system
  8. clean.sh if you want to save disk space after use

Extra info

  • some steps can fail, some patches can fail to apply, mostly due to numbers, this needs to be handed by hand, as I don't update all the patches with every release
  • sometime some step can fail, due to zombie dotnet processes left, simple killall -9 dotnet will do the trick
  • when building under jail, mlock is required

Requirments

  1. Working SDK for FreeBSD
  2. Tested under FreeBSD 13 and 14
  3. 8GB+ of RAM recommended (with 4GB I saw some parts crashing)
  4. To run SDK and/or apps pkg install libunwind icu libinotify should be enough on another box, maybe openssl too
  5. Under 14 also pkg install misc/compat13x might be needed if using builds directly

Support

Ready builds, credits, etc

dotnet-core-freebsd-source-build's People

Contributors

sec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dotnet-core-freebsd-source-build's Issues

Cannot build asp.net

It gets to

Running yarn install on ~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/src/JSInterop/Microsoft.JSInterop.JS/src/Microsoft.JSInterop.JS.npmproj                                                                                                                                  
  yarn install v1.22.10                                                                                                                              
  [1/4] Resolving packages...                                                                                                                        
  [2/4] Fetching packages...                                                                                                                         
  [3/4] Linking dependencies...                                                                                                                      
  [4/4] Building fresh packages...                                                                                                                   
  Done in 1.04s.                                                                                                                                     
  yarn run v1.22.10                                                                                                                                  
  yarn run v1.22.10                                                                                                                                  
  $ yarn run clean && yarn install --mutex network                                                                                                   
  $ npm run clean && npm run build:esm                                                                                                               
  Deleting directory ~/.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5                                         
  $ cd ../common && yarn install --mutex network                                                                                                     
  [1/4] Resolving packages...                                                                                                                        
  npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1640357668275-0.621943556570699/node but npm is using /usr/local/bin/node itself.
 Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.                                         
                                                                                                                                                     
  > @microsoft/[email protected] preclean ~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/src/JSInterop/Microsoft.JSInterop.JS/src                                                                                                                                       
  > yarn install --mutex network                                                                                                                     
                                                                                                                                                     
MSBUILD : error MSB4166: Child node "3" exited prematurely. Shutting down. Diagnostic information may be found in files in "~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/artifacts/log/Release" and will be named MSBuild_*.failure.txt. This location can be changed by setting
 the MSBUILDDEBUGPATH environment variable to a different directory.   

but there is no log file. Second time I only get

warning: Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected on PATH.
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]~/work/bsd/dotnet-core-freebsd-source-build/aspnetcore/artifacts/tmp/Release
##vso[task.logissue type=error](NETCORE_ENGINEERING_TELEMETRY=InitializeToolset) Unable to find dotnet with SDK version '6.0.100-rtm.21477.15'

I've tried it now 3 times... :)

Libraries libdl & libidl not found (.so hell ?)

dotnet --list-sdks
7.0.202 [/usr/share/dotnet/sdk]

Running a dotnet F# gtk application (running fine on Gentoo-Linux & WSL-Windows ) returns,

dotnet run
Unhandled exception. System.TypeInitializationException: The type initializer for 'Gtk.Application' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'libdl.so.2' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Cannot open "/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/libdl.so.2.so"
Cannot open "/usr/home/x/Languages/fhashtut/02_gtk/bin/Debug/net7.0/libdl.so.2.so"
Shared object "libdl.so.2.so" not found, required by "fsharp_gtk"
Cannot open "/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/liblibdl.so.2.so"
Cannot open "/usr/home/x/Languages/fhashtut/02_gtk/bin/Debug/net7.0/liblibdl.so.2.so"
Shared object "liblibdl.so.2.so" not found, required by "fsharp_gtk"
Cannot open "/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/libdl.so.2"
Cannot open "/usr/home/x/Languages/fhashtut/02_gtk/bin/Debug/net7.0/libdl.so.2"
Shared object "libdl.so.2" not found, required by "fsharp_gtk"
Cannot open "/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/liblibdl.so.2"
Cannot open "/usr/home/x/Languages/fhashtut/02_gtk/bin/Debug/net7.0/liblibdl.so.2"
Shared object "liblibdl.so.2" not found, required by "fsharp_gtk"

at FuncLoader.Linux.dlopen(String path, Int32 flags)
at FuncLoader.LoadLibrary(String libname)
at GLibrary.TryGet(Library library, IntPtr& ret)
at GLibrary.Load(Library library)
at Gtk.Application..cctor()
--- End of inner exception stack trace ---
at Gtk.Application.Init()
at Program.main(String[] a) in /usr/home/x/Languages/fhashtut/02_gtk/Program.fs:line 31

I tried to put a softlink " libidl.so.2 -> /usr/local/lib/libIDL-2.so.0.0.0" but that is not enough.

Note : /usr/lib contains libdl.so.1

what do I _do_ with the stuff in release?

Just a thought. Your Readme might want to mention what people should do with the various files.
Should they unzip to a specific standard location, what to do with the nuget packges, etc.

Stops at "make install", FreeBSD 13, no jail

Build fails at ./build_runtime.sh step. This is end of output where it seems to break.

  Invoking "/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/eng/native/gen-buildsys.sh" "/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr" "/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/artifacts/obj/coreclr/FreeBSD.x64.Release" x64 clang "" "" Release ""  -DCLR_CMAKE_PGO_INSTRUMENT=0 -DCLR_CMAKE_OPTDATA_PATH= -DCLR_CMAKE_PGO_OPTIMIZE=1 -DFEATURE_DISTRO_AGNOSTIC_SSL=1
  WARN: Specific version of clang not found, falling back to use the one in PATH.
  /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/artifacts/obj/coreclr/FreeBSD.x64.Release /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr
  Not searching for unused variables given on the command line.
  -- The C compiler identification is Clang 11.0.1
  -- The CXX compiler identification is Clang 11.0.1
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/clang - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/clang++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring incomplete, errors occurred!
  See also "/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/artifacts/obj/coreclr/FreeBSD.x64.Release/CMakeFiles/CMakeOutput.log".
  CMake Error at /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/eng/native/configuretools.cmake:37 (message):
    Unable to find toolchain executable.  Name: link, Prefix: llvm-.
  Call Stack (most recent call first):
    /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/eng/native/configuretools.cmake:47 (locate_toolchain_exec)
    /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/eng/native/configurecompiler.cmake:1 (include)
    CMakeLists.txt:19 (include)


  /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr
  /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/artifacts/obj/coreclr/FreeBSD.x64.Release /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr
  Executing make install -j 33
  make: make: don't know how to make install. Stop

  make: stopped in /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/artifacts/obj/coreclr/FreeBSD.x64.Release
  /var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr
  ##vso[task.logissue type=error]Failed to build "CoreCLR component".
/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr/runtime.proj(46,5): error MSB3073: The command ""/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr/build-runtime.sh" -x64 -release -ci -os FreeBSD /p:OfficialBuildId=20220601.99" exited with code 2.
##vso[task.logissue type=error;sourcepath=/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr/runtime.proj;linenumber=46;columnnumber=5;code=MSB3073;](NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr/build-runtime.sh" -x64 -release -ci -os FreeBSD /p:OfficialBuildId=20220601.99" exited with code 2.

Build FAILED.

/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr/runtime.proj(46,5): error MSB3073: The command ""/var/tmp/build/dotnet/dotnet-core-freebsd-source-build/runtime/src/coreclr/build-runtime.sh" -x64 -release -ci -os FreeBSD /p:OfficialBuildId=20220601.99" exited with code 2.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:39:42.64
Build failed with exit code 1. Check errors above.
##vso[task.complete result=Failed;]msbuild execution failed.

The mentioned log file CMakeOutput.log does not exist. The directory in question does not have a Makefile, so that is why make fails but I cannot figure out how it ends up in that situation.

# ls -l
total 56
-rw-------  1 root  wheel  14636 Jun  1 11:24 CMakeCache.txt
drwx------  4 root  wheel    512 Jun  1 11:24 CMakeFiles
-rw-------  1 root  wheel    137 Jun  1 11:24 cmake_cmd_line.txt
-rw-------  1 root  wheel      0 Jun  1 11:24 optdatapath.txt
-rw-------  1 root  wheel    124 Jun  1 11:24 version.c

Could it have something to do with the message about clang?

# clang++ --version
FreeBSD clang version 11.0.1 ([email protected]:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

OS version etc:

# uname -a
FreeBSD vpcfbsd10.olofdom.se 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 #0: Tue Apr  5 18:54:35 UTC 2022     [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

build_installer_without_aspnet.sh error - DownloadFile error

OS: FreeBSD 13.1-RELEASE
Command: as per below

aj@dotnet:~/dotnet-core-freebsd-source-build % sudo ./build_installer_without_aspnet.sh
Password:
cp: sdk/artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip: No such file or directory
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/tmp/Release
Attempting to install dotnet from public_location.
##vso[task.prependpath]/usr/home/aj/dotnet-core-freebsd-source-build/installer//.dotnet
##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP;isSecret=false;isOutput=true]0
##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE;isSecret=false;isOutput=true]1
##vso[task.setvariable variable=NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY;isSecret=false;isOutput=true]true
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT;isSecret=false;isOutput=true]6
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS;isSecret=false;isOutput=true]1000
/usr/home/aj/dotnet-core-freebsd-source-build/installer/.dotnet/sdk/6.0.201/MSBuild.dll /nologo -logger:/usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/netcoreapp3.1/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /bl:/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/log/Release/Build.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/usr/home/aj/dotnet-core-freebsd-source-build/installer/ /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=false /p:Rid=freebsd-x64 /p:OSName=freebsd /p:OfficialBuildId=20211229.99 /p:IncludeAspNetCoreRuntime=false /warnaserror /usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/Build.proj
  Determining projects to restore...
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/Tools.proj (in 158 ms).
Attempting to install dotnet from public_location.
  Determining projects to restore...
  All projects are up-to-date for restore.
  Microsoft.DotNet.Tools.Tests.Utilities -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/Microsoft.DotNet.Tools.Tests.Utilities/Release/net6.0/Microsoft.DotNet.Tools.Tests.Utilities.dll
  Determining projects to restore...
  EndToEnd.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/EndToEnd.Tests/Release/net6.0/EndToEnd.Tests.dll
  core-sdk-tasks -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
  Microsoft.Dotnet.Sdk.Internal -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/Microsoft.Dotnet.Sdk.Internal/Release/netstandard2.0/Microsoft.Dotnet.Sdk.Internal.dll
  core-sdk-tasks.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/core-sdk-tasks.Tests/Release/net6.0/core-sdk-tasks.Tests.dll
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/installer/src/core-sdk-tasks/core-sdk-tasks.csproj (in 322 ms).
  core-sdk-tasks -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/tasks/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
  redist -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/redist/Release/net6.0/redist.dll
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: The "DownloadFile" task failed unexpectedly. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: System.AggregateException: One or more errors occurred. (A task was canceled.) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.RequestBuilder.DedicatedThreadsTaskScheduler.<InjectThread>b__6_0() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartHelper.Callback(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartCallback() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: --- End of stack trace from previous location --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    --- End of inner exception stack trace --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets;linenumber=389;columnnumber=5;code=MSB4018;](NETCORE_ENGINEERING_TELEMETRY=Build) The "DownloadFile" task failed unexpectedly.%0ASystem.AggregateException: One or more errors occurred. (A task was canceled.)%0A ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.%0A   at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)%0A   at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49%0A   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)%0A   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)%0A   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)%0A   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)%0A   at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder)%0A   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)%0A   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)%0A   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)%0A   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()%0A   at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state)%0A   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)%0A   at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)%0A   at Microsoft.Build.BackEnd.RequestBuilder.DedicatedThreadsTaskScheduler.<InjectThread>b__6_0()%0A   at System.Threading.Thread.StartHelper.Callback(Object state)%0A   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)%0A   at System.Threading.Thread.StartCallback()%0A--- End of stack trace from previous location ---%0A%0A   --- End of inner exception stack trace ---%0A   at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49%0A   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build FAILED.

/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: The "DownloadFile" task failed unexpectedly. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: System.AggregateException: One or more errors occurred. (A task was canceled.) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.RequestBuilder.DedicatedThreadsTaskScheduler.<InjectThread>b__6_0() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartHelper.Callback(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartCallback() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: --- End of stack trace from previous location --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    --- End of inner exception stack trace --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:01:48.66
Build failed with exit code 1. Check errors above.
##vso[task.complete result=Failed;]msbuild execution failed.

Output from dmesg:

aj@dotnet:~/dotnet-core-freebsd-source-build % dmesg
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64
FreeBSD clang version 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
VT(vga): text 80x25
CPU: AMD Ryzen 5 5600G with Radeon Graphics          (3865.09-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0xa50f00  Family=0x19  Model=0x50  Stepping=0
  Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x182201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2>
  AMD Features=0x2a100800<SYSCALL,NX,FFXSR,RDTSCP,LM>
  AMD Features2=0x13<LAHF,CMP,CR8>
  Structured Extended Features=0x401<FSGSBASE,INVPCID>
  AMD Extended Feature Extensions ID EBX=0x4000000<SSB_NO>
  TSC: P-state invariant
real memory  = 9126805504 (8704 MB)
avail memory = 8291586048 (7907 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <VBOX   VBOXAPIC>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: unblocking device.
ioapic0: MADT APIC ID 2 != hw id 0
ioapic0 <Version 2.0> irqs 0-23
Launching APs: 1
random: entropy device external interface
kbd1 at kbdmux0
vtvga0: <VT VGA driver>
smbios0: <System Management BIOS> at iomem 0xfff60-0xfff7e
smbios0: Version: 2.5, BCD Revision: 2.5
aesni0: No AES or SHA support.
acpi0: <VBOX VBOXXSDT>
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
vgapci0: <VGA-compatible display> port 0xd010-0xd01f mem 0xe0000000-0xe7ffffff,0xf0000000-0xf01fffff irq 18 at device 2.0 on pci0
vgapci0: Boot video device
em0: <Intel(R) Legacy PRO/1000 MT 82540EM> port 0xd020-0xd027 mem 0xf0200000-0xf021ffff irq 19 at device 3.0 on pci0
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Ethernet address: 08:00:27:ac:db:c4
em0: netmap queues/slots: TX 1/1024, RX 1/1024
pcm0: <Intel ICH (82801AA)> port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at device 5.0 on pci0
pcm0: <SigmaTel STAC9700/83/84 AC97 Codec>
ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
pci0: <bridge> at device 7.0 (no driver attached)
acpi_acad0: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 14.0.
psm0: model IntelliMouse Explorer, device ID 4
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff pnpid ORM0000 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff pnpid PNP0900 on isa0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
atrtc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 14.
Timecounter "TSC-low" frequency 1946604541 Hz quality 0
Statistical lapic calibration failed!  Clocks might be ticking at variable rates.
Falling back to slow lapic calibration.
Timecounters tick every 10.000 msec
pcm0: measured ac97 link rate at 46779 Hz
ugen0.1: <Apple OHCI root HUB> at usbus0
uhub0 on usbus0
uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Trying to mount root from ufs:/dev/ada0s1a [rw]...
uhub0: 12 ports with 12 removable, self powered
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <VBOX HARDDISK 1.0> ATA-6 device
ada0: Serial Number VBecd08b65-0d02e6df
ada0: 33.300MB/s transfers (UDMA2, PIO 65536bytes)
ada0: 40960MB (83886080 512 byte sectors)
WARNING: / was not properly dismounted
intsmb0: <Intel PIIX4 SMBUS Interface> irq 23 at device 7.0 on pci0
intsmb0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
lo0: link state changed to UP
em0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)

Failed to create CoreCLR, HRESULT: 0x8007FF02

Cmd that produced error

build_runtime.sh

Error messages

root@dotnet:~/dotnet-core-freebsd-source-build # ./build_runtime.sh
__DistroRid: freebsd-x64
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/root/dotnet-core-freebsd-source-build/runtime/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/root/dotnet-core-freebsd-source-build/runtime/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/root/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/root/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/root/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
Attempting to log this clients IP for Azure Package feed telemetry purposes
##vso[task.prependpath]/root/dotnet-core-freebsd-source-build/runtime//.dotnet
##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP;isSecret=false;isOutput=true]0
##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE;isSecret=false;isOutput=true]1
Failed to create CoreCLR, HRESULT: 0x8007FF02
Build failed with exit code 137. Check errors above.
##vso[task.complete result=Failed;]msbuild execution failed.

OS and configuration

  • FreeBSD 13.0-RELEASE-p4
  • Running in fresh DHCP jail

nuget list update?

Question: should your nuget_list.txt refer to the rtm pkgs?
Or is that only for RC builds?
Or does it need just rc1?
Wondering how it works.

GhostBSD (FreeBSD): OpenSSL problem w/ net8.0 on v13.2 and net6.0 & net8.0 on v14.0

Overview

I have NOT re-tested it with this this week's release yet: dotnet-sdk-8.0.105-freebsd-x64.tar.gz
I'm trying to sort out my results (below), but it appears that for the freebsd dotnet ports (net6.0 and net8.0 tested here)...

-GhostBSD 2024.01.1 (FreeBSD 14.0-STABLE) or later, neither .net6.0 or net8.0 work due to a SSL library, and
-on GhostBSD 2023.10.1 (FreeBSD 13.2-STABLE) net6.0* works but net 8.0 does not due to SSL librrary issue,
(* -- only when net6.0 is present but net8.0 is not; after net8.0 is added, cannot build net6.0)

I discovered it on a Dell Optiplex 7020, but did all subsequent tests in VirtualBox.

I don't have actual FreeBSD to test; I tried once in VirtualBox but apparently don't know how to do it right, because the installation wouldn't come up.

Versions

issue is present for both net6.0 and net8.0 on...

ghostbsd-version:
24.04.1
freebsd-version:
14.0-STABLE

... and also on ...

ghostbsd-version:
24.01.1
freebsd-version:
14.0-STABLE

...but only for net8.0* on...

ghostbsd-version:
23.10.1
freebsd-version:
13.2-STABLE

GhostBSD 2024.04.1 or 2024.01.1

dotnet --info (GhostBSD 2024.04.1 or 2024.01.1, net6.0 only):

.NET SDK (reflecting any global.json):
 Version:   6.0.403
 Commit:    2bc18bf292

Runtime Environment:
 OS Name:     FreeBSD
 OS Version:  14
 OS Platform: FreeBSD
 RID:         freebsd-x64
 Base Path:   /home/sjsepan/.dotnet/sdk/6.0.403/

global.json file:
  Not found

Host:
  Version:      6.0.11
  Architecture: x64
  Commit:       943474ca16

.NET SDKs installed:
  6.0.403 [/home/sjsepan/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/home/sjsepan/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

dotnet build (on a simple console app)(GhostBSD 2024.04.1 or 2024.01.1, only .net6.0):

No usable version of libssl was found
Abort trap (core dumped)

dotnet --info (GhostBSD 2024.04.1 or 2024.01.1, net6.0 and net 8.0):

.NET SDK:
 Version:           8.0.104
 Commit:            034f91fcc0
System.TypeInitializationException: The type initializer for 'Crypto' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libSystem.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
Shared object "libcrypto.so.12" not found, required by "libSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/libSystem.Security.Cryptography.Native.OpenSsl"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"

   at Interop.Crypto..cctor()
   --- End of inner exception stack trace ---
   at Interop.Crypto.HashAlgorithmToEvp(String hashAlgorithmId)
   at System.Security.Cryptography.SHA256.Implementation..ctor()
   at System.Security.Cryptography.SHA256.Create()
   at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.GetWorkloadVersion()
   at Microsoft.DotNet.Cli.WorkloadCommandParser.GetWorkloadsVersion(WorkloadInfoHelper workloadInfoHelper)
   at Microsoft.DotNet.Cli.CommandLineInfo.PrintInfo()
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529
  RID:          freebsd-x64

.NET SDKs installed:
  6.0.403 [/usr/home/sjsepan/.dotnet/sdk]
  8.0.104 [/usr/home/sjsepan/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/usr/home/sjsepan/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.4 [/usr/home/sjsepan/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.4 [/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

dotnet build (on a simple console app)(GhostBSD 2024.04.1 or 2024.01.1, .net8.0 also installed):

System.TypeInitializationException: The type initializer for 'Crypto' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libSystem.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
Shared object "libcrypto.so.12" not found, required by "libSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/libSystem.Security.Cryptography.Native.OpenSsl"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"

   at Interop.Crypto..cctor()
   --- End of inner exception stack trace ---
   at Interop.Crypto.HashAlgorithmToEvp(String hashAlgorithmId)
   at System.Security.Cryptography.HashProviderDispenser.OneShotHashProvider.HashData(String hashAlgorithmId, ReadOnlySpan`1 source, Span`1 destination)
   at System.Security.Cryptography.SHA256.TryHashData(ReadOnlySpan`1 source, Span`1 destination, Int32& bytesWritten)
   at System.Security.Cryptography.SHA256.HashData(ReadOnlySpan`1 source, Span`1 destination)
   at System.Security.Cryptography.SHA256.HashData(ReadOnlySpan`1 source)
   at System.Security.Cryptography.SHA256.HashData(Byte[] source)
   at Microsoft.DotNet.Cli.Utils.Sha256Hasher.Hash(String text)
   at Microsoft.DotNet.Cli.Utils.ApplicationInsightsEntryFormat.<>c__DisplayClass10_0.<WithAppliedToPropertiesValue>b__1(KeyValuePair`2 p)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Microsoft.DotNet.Cli.Utils.ApplicationInsightsEntryFormat.WithAppliedToPropertiesValue(Func`2 func)
   at System.Linq.Enumerable.SelectListIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
   at System.Linq.Enumerable.SelectListIterator`2.ToList()
   at Microsoft.DotNet.Cli.Telemetry.TelemetryFilter.Filter(Object objectToFilter)
   at Microsoft.DotNet.Cli.Utils.TelemetryEventEntry.SendFiltered(Object o)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

GhostBSD 2023.10.

dotnet --info (GhostBSD 2023.10.1, net6.0 only):

.NET SDK (reflecting any global.json):
 Version:   6.0.403
 Commit:    2bc18bf292

Runtime Environment:
 OS Name:     FreeBSD
 OS Version:  13
 OS Platform: FreeBSD
 RID:         freebsd.13-x64
 Base Path:   /usr/home/sjsepan/.dotnet/sdk/6.0.403/

global.json file:
  Not found

Host:
  Version:      6.0.11
  Architecture: x64
  Commit:       943474ca16

.NET SDKs installed:
  6.0.403 [/usr/home/sjsepan/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/usr/home/sjsepan/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

dotnet build (GhostBSD 2023.10.1, net6.0 only):

MSBuild version 17.3.2+561848881 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  ConsoleApp1 -> /usr/home/sjsepan/Documents/Projects/DotNetCore/ConsoleApp1/bin/Debug/net6.0/ConsoleApp1.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.94

dotnet run (GhostBSD 2023.10.1, net6.0 only):

Hello World!

dotnet --info(GhostBSD 2023.10.1, net6.0 and net8.0):

.NET SDK:
 Version:           8.0.104
 Commit:            034f91fcc0
System.TypeInitializationException: The type initializer for 'Crypto' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libSystem.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
Shared object "libcrypto.so.12" not found, required by "libSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/libSystem.Security.Cryptography.Native.OpenSsl"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"

   at Interop.Crypto..cctor()
   --- End of inner exception stack trace ---
   at Interop.Crypto.HashAlgorithmToEvp(String hashAlgorithmId)
   at System.Security.Cryptography.SHA256.Implementation..ctor()
   at System.Security.Cryptography.SHA256.Create()
   at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.GetWorkloadVersion()
   at Microsoft.DotNet.Cli.WorkloadCommandParser.GetWorkloadsVersion(WorkloadInfoHelper workloadInfoHelper)
   at Microsoft.DotNet.Cli.CommandLineInfo.PrintInfo()
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529
  RID:          freebsd-x64

.NET SDKs installed:
  6.0.403 [/usr/home/sjsepan/.dotnet/sdk]
  8.0.104 [/usr/home/sjsepan/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/usr/home/sjsepan/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.4 [/usr/home/sjsepan/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.4 [/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

dotnet build(GhostBSD 2023.10.1, net6.0 and net8.0):

System.TypeInitializationException: The type initializer for 'Crypto' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libSystem.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
Shared object "libcrypto.so.12" not found, required by "libSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl.so"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl.so" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/libSystem.Security.Cryptography.Native.OpenSsl"
Shared object "libSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"
Cannot open "/usr/home/sjsepan/.dotnet/shared/Microsoft.NETCore.App/8.0.4/liblibSystem.Security.Cryptography.Native.OpenSsl"
Shared object "liblibSystem.Security.Cryptography.Native.OpenSsl" not found, required by "dotnet"

   at Interop.Crypto..cctor()
   --- End of inner exception stack trace ---
   at Interop.Crypto.HashAlgorithmToEvp(String hashAlgorithmId)
   at System.Security.Cryptography.HashProviderDispenser.OneShotHashProvider.HashData(String hashAlgorithmId, ReadOnlySpan`1 source, Span`1 destination)
   at System.Security.Cryptography.SHA256.TryHashData(ReadOnlySpan`1 source, Span`1 destination, Int32& bytesWritten)
   at System.Security.Cryptography.SHA256.HashData(ReadOnlySpan`1 source, Span`1 destination)
   at System.Security.Cryptography.SHA256.HashData(ReadOnlySpan`1 source)
   at System.Security.Cryptography.SHA256.HashData(Byte[] source)
   at Microsoft.DotNet.Cli.Utils.Sha256Hasher.Hash(String text)
   at Microsoft.DotNet.Cli.Utils.ApplicationInsightsEntryFormat.<>c__DisplayClass10_0.<WithAppliedToPropertiesValue>b__1(KeyValuePair`2 p)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Microsoft.DotNet.Cli.Utils.ApplicationInsightsEntryFormat.WithAppliedToPropertiesValue(Func`2 func)
   at System.Linq.Enumerable.SelectListIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
   at System.Linq.Enumerable.SelectListIterator`2.ToList()
   at Microsoft.DotNet.Cli.Telemetry.TelemetryFilter.Filter(Object objectToFilter)
   at Microsoft.DotNet.Cli.Utils.TelemetryEventEntry.SendFiltered(Object o)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

NOTES

https://forums.freebsd.org/threads/ld-elf-and-libssl-install-bricked-after-upgrade-from-13-1-to-14-0-release.93384/#post-654375
"14.0 has a newer OpenSSL"

FreeBSD 12 binary for .NET 7

Hello,

Thanks a lot for this work!! I have just seen that you have been able to publish dotnet7 binaries for FreeBSD 13, would you be able to do the same for FreeBSD 12 since it is supported through 2024

Best

missing sudo / sdk not supporting 7 ?

clean 13 ISO. login as root
1 Run as root install_tools.sh
2 init.sh
3 build_runtime.sh
4 build_installer_without_aspnet.sh

build_installer_without_aspnet.sh fails because installer expects sudo to be installed.
install sudo and try again.. FAILs.

/root/dotnet-core-freebsd-source-build/installer/.dotnet/sdk/6.0.100-rc.2.21505.57/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(144,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 7.0. Either target .NET 6.0 or lower, or use a version of the .NET SDK that supports .NET 7.0. [/root/dotnet-core-freebsd-source-build/installer/src/SdkResolver/SdkResolver.csproj]

[runtime/mono]Possible incorrect PKG_CONFIG_PATH when crossbuilding dotNET for ARM64

TL;DR: Title + file in question: https://github.com/dotnet/runtime/blob/fe95ddbe92a298eab2e56ed10e7d6e92c9bb5f0a/src/mono/mono.proj

While building the net8p2 SDK under Linux x86_64 for FreeBSD ARM64 I noticed runtime's build scripts passed two sets of vars to cmake during the mono leg:

TARGET_BUILD_ARCH=arm64 PKG_CONFIG_PATH=/crossrootfs/arm64/usr/lib/aarch64-linux-gnu/pkgconfig 
TARGET_BUILD_ARCH=arm64 PKG_CONFIG_PATH=/crossrootfs/arm64usr/local/libdata/pkgconfig

Both appear incorrect. The first would be fine going Linux x86_64 -> Linux ARM64 using either GCC or Clang. The second would always be incorrect as it appears to be missing a /. Oddly enough this does not cause build failures [possible CMake cache (mis)use? paths hardcoded elsewhere?]. Stranger still, FreeBSD x86_64 is the only one to not use an additional PKG_CONFIG_PATH for this leg.

coreclr is not impacted as it uses a "ROOTFS_DIR" that is passed as a part of the initial build.


now that runtime has a much better system setup for crossbuilding on to different platforms it might be worth taking a look to see if any FreeBSD hardcoded cases can be abstracted. I should have time to grep around and make any changes soonish

Service index errors on ./build_runtime.sh

FreeBSD 13.0 host.
FreeBSD 13.0-release jail (using BastilleBSD from pkg).

Jail config:

dn {
  devfs_ruleset = 4;
  enforce_statfs = 2;
  exec.clean;
  exec.consolelog = /var/log/bastille/dn_console.log;
  exec.start = '/bin/sh /etc/rc';
  exec.stop = '/bin/sh /etc/rc.shutdown';
  host.hostname = dn;
  mount.devfs;
  mount.fstab = /usr/local/bastille/jails/dn/fstab;
  path = /usr/local/bastille/jails/dn/root;
  securelevel = 2;

  interface = bastille0;
  ip4.addr = 10.0.0.13;
  ip6 = disable;
  allow.mount=1;
  allow.mlock=1;
}
  1. ./install_tools.sh (problem with lttng-ust -- does not exist except as linux compat package 'linux-c7-lttng-ust', updated the script to reference this)
  2. ./init.sh
  3. ./build_runtime.sh: errors
root@dn:~/git/dotnet-core-freebsd-source-build # ./build_runtime.sh                                                                           
__DistroRid: freebsd-x64
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/root/git/dotnet-core-freebsd-source-build/runtime/artifacts           
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release     
Attempting to log this clients IP for Azure Package feed telemetry purposes  
##vso[task.prependpath]/root/git/dotnet-core-freebsd-source-build/runtime//.dotnet                                                            
##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP;isSecret=false;isOutput=true]0
##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE;isSecret=false;isOutput=true]1                                              
/root/git/dotnet-core-freebsd-source-build/runtime/.dotnet/sdk/6.0.100/MSBuild.dll /nologo -maxcpucount /m -verbosity:m /v:minimal /bl:/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release
/ToolsetRestore.binlog /clp:Summary /clp:ErrorsOnly;NoSummary /nr:false /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /p:__ToolsetLocationOutputFile=/root/git/dotnet-core-freebsd-source-bu
ild/runtime/artifacts/toolset/6.0.0-beta.21560.2.txt /t:__WriteToolsetLocation /warnaserror /root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget
/v3/index.json.                                    
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/
v3/index.json.                                     
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3
/index.json.                                       
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/in
dex.json.                                          
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/n
uget/v3/index.json.                                
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservic
es/nuget/v3/index.json.                            
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error : Unable to find package Microsoft.DotNet.Arcade.Sdk. No packages exist with this id in source(s): dotnet-eng, dotnet
-public, dotnet-tools, dotnet6, dotnet6-transport, richnav                                             
/root/git/dotnet-core-freebsd-source-build/runtime/artifacts/toolset/restore.proj : error MSB4236: The SDK 'Microsoft.DotNet.Arcade.Sdk' specified could not be found.
Build failed with exit code 1. Check errors above.                                                     
##vso[task.complete result=Failed;]msbuild execution failed.

Missing wget

wget is required by init.sh
wget is not installed into FreeBSD 12.2 jails and is missing from install_tools.sh ;)

edit fetch will work instead of using wget if you don't want to add another thing to install_tools.sh

Unclear from documentation whether init.sh and other scripts should be run as root

Hello. Thanks for making this important patch set. It's unclear from the documentation whether init.sh, build_runtime.sh etc should be run as root or not. It clearly states in README.md that install_tools.sh should be run as root. If I proceed to run init.sh as a normal user, I get the following error from kldload, which requires root privileges to run:

aj@dotnet:~/dotnet-core-freebsd-source-build % sudo ./install_tools.sh
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
aj@dotnet:~/dotnet-core-freebsd-source-build % ./init.sh
kldload: can't load linux: Operation not permitted
/etc/rc.d/linux: WARNING: Unable to load kernel module linux
kldload: can't load linux64: Operation not permitted
/etc/rc.d/linux: WARNING: Unable to load kernel module linux64
sysctl: unknown oid 'compat.linux.emul_path'
kldload: can't load pty: Operation not permitted
/etc/rc.d/linux: WARNING: Unable to load kernel module pty
kldload: can't load fdescfs: Operation not permitted
/etc/rc.d/linux: WARNING: Unable to load kernel module fdescfs
kldload: can't load linprocfs: Operation not permitted
/etc/rc.d/linux: WARNING: Unable to load kernel module linprocfs
kldload: can't load linsysfs: Operation not permitted
/etc/rc.d/linux: WARNING: Unable to load kernel module linsysfs
sysctl: kern.elf64.fallback_brand=3: Operation not permitted
sysctl: kern.elf32.fallback_brand=3: Operation not permitted
mount: linprocfs: Operation not permitted
mount: linsysfs: Operation not permitted
mount: fdescfs: Operation not permitted
mkdir: /dev/shm: Operation not supported
mount: /dev/shm: No such file or directory
Downloading SDK for FreeBSD

Running init.sh as root unsurprisingly solves the problem, but it means code is checked out as root, which is suboptimal for compiling the code itself (root shouldn't be required for this step). See below:

aj@dotnet:~/dotnet-core-freebsd-source-build % ./build_runtime.sh
__DistroRid: freebsd-x64
mkdir: /usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts: Permission denied
aj@dotnet:~/dotnet-core-freebsd-source-build % ./build_installer.sh
mkdir: installer/artifacts: Permission denied
cp: directory installer/artifacts/obj/redist/Release/downloads does not exist
cp: directory installer/artifacts/obj/redist/Release/downloads does not exist
cp: directory installer/artifacts/obj/redist/Release/downloads does not exist
mkdir: /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts: Permission denied

dotnet binaries sometimes crash with ASLR enabled on 13.2-RELEASE amd64

I recently updated my amd64 machine to 13.2-RELEASE, which enables ASLR by default for 64-bit binaries.

With ASLR enabled, running the binaries produced by dotnet occasionally (maybe 50%) of the time result in a SIGSEGV in the CLR.

I have not troubleshooted in depth, but as a workaround, it appears that disabling ASLR for the binary fixes the problem:

$ elfctl -e +noaslr binary 

This must be done for all binaries produced by dotnet.

build_runtime.sh fails on FreeBSD 13.1-RELEASE

There seems to be some issues with validity period of some packages, which means that the script will not build .NET runtime on FreeBSD 13.1-RELEASE
uname:

aj@dotnet:~/dotnet-core-freebsd-source-build % uname -a
FreeBSD dotnet 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

Output:

aj@dotnet:~/dotnet-core-freebsd-source-build % sudo ./build_runtime.sh
__DistroRid: freebsd-x64
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
Attempting to install dotnet from public_location.
##vso[task.prependpath]/usr/home/aj/dotnet-core-freebsd-source-build/runtime//.dotnet
##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP;isSecret=false;isOutput=true]0
##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE;isSecret=false;isOutput=true]1
##vso[task.setvariable variable=NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY;isSecret=false;isOutput=true]true
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT;isSecret=false;isOutput=true]6
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS;isSecret=false;isOutput=true]1000
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/.dotnet/sdk/6.0.201/MSBuild.dll /nologo -logger:/usr/home/aj/dotnet-core-freebsd-source-build/runtime/.packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22161.1/tools/netcoreapp3.1/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /bl:/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release/Build.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=false /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/ /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=false /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=false /p:TargetArchitecture=x64 /p:BuildArchitecture=x64 /p:CMakeArgs= /p:OfficialBuildId=20220812.99 /usr/home/aj/dotnet-core-freebsd-source-build/runtime/.packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22161.1/tools/Build.proj
  Determining projects to restore...
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/.packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22161.1/tools/Tools.proj (in 196 ms).
  Determining projects to restore...

 Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.native.System.IO.Ports.proj (in 13.69 sec).                                                             Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.linux-arm64.runtime.native.System.IO.Ports.proj (in 2 ms).
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.linux-arm.runtime.native.System.IO.Ports.proj (in 2 ms).
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.linux-x64.runtime.native.System.IO.Ports.proj (in 13.69 sec).
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                  ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                    ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                 ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired.                                                                                                                                             /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                 ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired.                                                                                                                                                                                          /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity
period has expired.
Build FAILED.
                                                                                                                                                                                                                 /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]              /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                  /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                    /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                 /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                     /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
    0 Warning(s)                                                                                                                                                                                                     6 Error(s)                                                                                                                                                                                                                                                                                                                                                                                                                    Time Elapsed 00:01:04.27                                                                                                                                                                                         Build failed with exit code 1. Check errors above.                                                                                                                                                               ##vso[task.complete result=Failed;]msbuild execution failed.                                                                          

build_runtime.sh fails on main branch: The repository countersignature validity period has expired

I have checked out the main branch and try to compile the solution on FreeBSD 13.1-RELEASE.

[snip]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/coreclr-packages.proj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/coreclr-packages.proj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.proj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.proj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.proj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.proj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.proj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/coreclr/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.proj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired.
    2 Warning(s)
    5423 Error(s)

Time Elapsed 00:04:23.40
Build failed with exit code 1. Check errors above.
##vso[task.complete result=Failed;]msbuild execution failed.

Do the package references need to be updated? It seems the current main branch points to an old beta version of .NET 6.0.

Missing SSL library?

After calling install_tools.sh and init.sh, I get the error msg
No usable version of libssl was found
for each build_*.sh script. I am running FreeBSD 14.

There is a /usr/lib/libssl.so as well as an /usr/bin/openssl. Is there a symlink missing in /usr/local/lib? But there even exists a /usr/local/lib/libssl3.so?

Sluggish performance using native binaries (net7RC1)

I would like to blame iXSystems but posting here anyways:

[root@azurecli ~]# freebsd-version;uname -a
13.1-RELEASE-p2
FreeBSD azurecli 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2 n245412-484f039b1d0 TRUENAS amd64

I do nightly build+tests of dotnet/runtime and since RC1 have noticed very slow performance on FreeBSD 13.1.
The native binaries you provide are usually slightly faster than the crossbuilt ones so I have been using them but that no longer seems to be the case. An example when trying to build from dotnet/runtime@911cc41

Crossbuild: 51m 3s

  • Build: 32m 19s
  • Test: 15m 3s

Native: Killed by timeout at 240m 6s

  • Build: 2hr 25m 24s
  • Test: 1hr 33m 30s (timed out)

binlog files are too large to upload on their own and github won't allow that extension anyways:
https://we.tl/t-MOtTNqhIwO

nothing comes across as more "expensive" in terms of cpu usage between the two but a quick look at $task csc $time ($task $time will take a long time to parse) shows that some are taking several minutes to nearly an hour

Failed to build 7.0.403

Just tried to build 7.0.403 but I get stuck at build_installer.sh and not sure why or what to do about it. (Building 7.0.402 went fine though.)

/builds/dotnet7-sdk/installer/src/redist/targets/GenerateLayout.targets(392,5): error : Download from all targets failed. List of attempted targets: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.403-servicing.23520.31/dotnet-toolset-internal-7.0.403-servicing.23520.31.zip, https://dotnetbuilds.blob.core.windows.net/public/Sdk/7.0.403-servicing.23520.31/dotnet-toolset-internal-7.0.403-servicing.23520.31.zip [/builds/dotnet7-sdk/installer/src/redist/redist.csproj]
##vso[task.logissue type=error;sourcepath=/builds/dotnet7-sdk/installer/src/redist/targets/GenerateLayout.targets;linenumber=392;columnnumber=5;code=;](NETCORE_ENGINEERING_TELEMETRY=Build) Download from all targets failed. List of attempted targets: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.403-servicing.23520.31/dotnet-toolset-internal-7.0.403-servicing.23520.31.zip, https://dotnetbuilds.blob.core.windows.net/public/Sdk/7.0.403-servicing.23520.31/dotnet-toolset-internal-7.0.403-servicing.23520.31.zip
/builds/dotnet7-sdk/installer/src/redist/targets/GenerateLayout.targets(392,5): error : Failed to download file using addresses in Uri and/or Uris. [/builds/dotnet7-sdk/installer/src/redist/redist.csproj]
##vso[task.logissue type=error;sourcepath=/builds/dotnet7-sdk/installer/src/redist/targets/GenerateLayout.targets;linenumber=392;columnnumber=5;code=;](NETCORE_ENGINEERING_TELEMETRY=Build) Failed to download file using addresses in Uri and/or Uris.

Build FAILED.

So, apparently it tries to download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.403-servicing.23520.31/dotnet-toolset-internal-7.0.403-servicing.23520.31.zip which does not exist. I do not know if it might exist under a slightly different name that can be adjusted here to make it find it or if something is broken online.

14.0 Current: author's primary signature expired

When calling build_runtime.sh, I get the nuget error

error NU3037: Package 'Microsoft.SourceLink.Common from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json': The author primary signature validity period has expired.

for different packages.

Failed to create CoreCLR, HRESULT: 0x8007FF02

The first roadblock I hit when trying to port this:

/wrkdirs/usr/ports/lang/dotnet/work/dotnet nuget add source 'https://fbsdnugetfeed.mooo.com/v3/index.json' --name ghsec --configfile runtime/NuGet.config
Failed to create CoreCLR, HRESULT: 0x8007FF02

This is a jail context so it might have something to do with that. Any ideas @sec @Thefrank ?

Help regarding using Release output from GITHUB

Hi,

First of all thank you very much for developing this.
As i see your build in Releases of GITHUB. If i want to use those how should i?
Should i just extract dotnet-sdk*-freebsd-x64.tar.gz and then call dotnet from there?
Or what about the runtime.
Is there any documentation that we can use to run dotnet on freebsd without building our own?
I am new too this, any help will be really appreciated ?

Thanks

Powershell build ?

hi,
I have a question about the PowerShell build from you. Are you going to build?

Where do I find libgssapi_krb5.so.2.2 for arm64 and x86 on 13.3-RELEASE

Hi, many thanks for the build.

packs/Microsoft.NETCore.App.Host.freebsd-arm64/8.0.8/runtimes/freebsd-arm64/native/singlefilehost - required shared library libgssapi_krb5.so.2.2 not found

I am missing a shared library, libgssapi_krb5.so.2.2.

Where can I find it? ( ideally from an existing freebsd binary package )

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.