sec / dotnet-core-freebsd-source-build

Collection of script to build .NET Core under FreeBSD OS (with binary releases)
MIT License
53 stars 4 forks source link

Cannot build asp.net #7

Closed Slesa closed 2 years ago

Slesa commented 2 years ago

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/dotnet-js-interop@5.0.0-dev 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... :)

sec commented 2 years ago

More details please? I tried to build 6.0.0 under 12.3 and 13 with success (not under jail). There was a missing wget install in pkg's, but it's not needed, as it's downloading one file before build (as it sometimes fail during build stage).

sec commented 2 years ago

Are you still having this issue?