aspnetcore: Local build for v6.0.14 on Oracle Linux 9 is failing on Yarn
First of all, I need to compile my own linux runtimes because of my company policy on third party software and distribution. I already tested our project with the pre-compiled docker runtime and it works flawlessly, we just can’t use that for our production environment, hence my headache.
My build is failing while trying to build from source under linux (WSL Ubuntu 22) here’s the steps I took:
- all dependencies installed, as described here: https://github.com/dotnet/aspnetcore/blob/v6.0.14/docs/BuildFromSource.md#on-macoslinux
then
$ git clone --recursive https://github.com/dotnet/aspnetcore.git
$ git checkout v6.0.14
$ git clean -dfx
$ git submodule update --init --recursive -f
$ ./restore.sh
$ . ./activate.sh # I also tried without this step, same result
$ ./eng/build.sh -c release --arch x64 --os-name linux --build-managed --no-test
The output:
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.
[...]
Restore was successful
[...]
Build FAILED.
YARN : error : Cannot find module '/root/.nuget/packages/yarn.msbuild/1.22.10/dist/bin/yarn.js' [/home/lbottaro/git/dotnet.aspnetcore/src/JSInterop/Microsoft.JSInterop.JS/src/Microsoft.JSInterop.JS.npmproj]
/home/lbottaro/git/dotnet.aspnetcore/eng/targets/Npm.Common.targets(79,5): error : Command failed with exit code 1. [/home/lbottaro/git/dotnet.aspnetcore/src/JSInterop/Microsoft.JSInterop.JS/src/Microsoft.JSInterop.JS.npmproj]
/home/lbottaro/git/dotnet.aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj(68,5): error : in asset size limit: The following asset(s) exceed the recommended size limit (120 KiB).
/home/lbottaro/git/dotnet.aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj(68,5): error : in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
/home/lbottaro/git/dotnet.aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj(68,5): error : in webpack performance recommendations:
/home/lbottaro/git/dotnet.aspnetcore/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj(67,5): error : in asset size limit: The following asset(s) exceed the recommended size limit (120 KiB).
/home/lbottaro/git/dotnet.aspnetcore/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj(67,5): error : in webpack performance recommendations:
0 Warning(s)
7 Error(s)
Time Elapsed 00:20:29.18
Build failed with exit code 1. Check errors above.
Version info:
$ node --version
v12.22.9
$ java --version
openjdk 11.0.17 2022-10-18
OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu222.04, mixed mode, sharing)
$ yarn --version
1.22.19
I also tried manually running $ sudo yarn add global msbuild (and the npm variant), same result.
Any help or insights on what I might be missing? thanks!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (14 by maintainers)
https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported