-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Local build for v6.0.14 on Oracle Linux 9 is failing on Yarn #46821
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Thanks for contacting us. This is not something we've seen in the past, so most probably it's something specific to your environemnt.
|
Hi @leocb. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi, I tried with that argument, I get another error telling me I'm missing some dependencies and that it couldn't find a previous version of the files to use instead. Then the build fails anyways. |
I just need the "core" functionality, I'm not using Blazor or SignalR, which afaik are the ones that need java and yarn. If there's a way to build without them, please let me know |
What features do you need? In general, each feature area has a As for your new error, we'd need to see the actual error message to be able to help diagnose the issue. CC @captainsafia also in case you have any additional thoughts. |
Hi @leocb. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
Hi, sorry for the long delay, I got snagged on higher priority tasks. I was getting the error I'd like to add that I managed to build the full .net runtime on this environment without any issues. These are the commands I'm using and the error output: $ cd ~/git
$ git clone --recursive https://github.com/dotnet/aspnetcore.git
$ cd ~/aspnetcore
$ git checkout v6.0.14
$ git clean -xfd
$ git submodule update --init --recursive -f
$ export OPENSSL_ENABLE_SHA1_SIGNATURES=1 #without this command I get some OpenSSL errors regarding SHA1
$ ./eng/build.sh -c release --arch x64 --os-name linux --build-managed --restore --no-test
[...]
Build FAILED.
Error : error : 0308010C:digital envelope routines::unsupported [/home/lbottaro/git/aspnetcore/src/SignalR/clients/ts/signalr/signalr.npmproj]
/home/lbottaro/git/aspnetcore/eng/targets/Npm.Common.targets(79,5): error : Command failed with exit code 1. [/home/lbottaro/git/aspnetcore/src/SignalR/clients/ts/signalr/signalr.npmproj]
/home/lbottaro/git/aspnetcore/eng/targets/Npm.Common.targets(79,5): error : Command failed with exit code 1. [/home/lbottaro/git/aspnetcore/src/SignalR/clients/ts/signalr/signalr.npmproj]
Error : error : 0308010C:digital envelope routines::unsupported [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj]
/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj(68,5): error : Command failed with exit code 1.
0 Warning(s)
5 Error(s)
Build failed with exit code 1. Check errors above. these are the versions in my system $ java --version
openjdk 17.0.6 2023-01-17 LTS
OpenJDK Runtime Environment (Red_Hat-17.0.6.0.10-3.0.1.el9_1) (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.10-3.0.1.el9_1) (build 17.0.6+10-LTS, mixed mode, sharing)
$ node
v18.12.1
$ yarn -v
1.22.19 If I try to build with the flag warning: Some managed projects depend on NodeJS projects. Building NodeJS is disabled so the managed projects will fallback to using the output from previous builds. The output may not be correct or up to date.
[...]
Build FAILED.
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/benchmarkapps/Wasm.Performance/TestApp/Wasm.Performance.TestApp.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Wasm.Authentication.Client.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/testassets/HostedInAspNet.Client/HostedInAspNet.Client.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/testassets/CustomBasePathApp/CustomBasePathApp.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/testassets/Wasm.Prerendered.Client/Wasm.Prerendered.Client.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/HostedBlazorWebassemblyApp.Client.csproj]
/home/lbottaro/git/aspnetcore/src/Components/Directory.Build.targets(30,5): error : '/home/lbottaro/git/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webassembly.js' does not exist. Enable NodeJS to build this project. [/home/lbottaro/git/aspnetcore/src/Components/WebAssembly/testassets/WasmLinkerTest/WasmLinkerTest.csproj]
0 Warning(s)
8 Error(s) Thanks for your help in advance! |
Just downgrading to node 16 gives the exact same error. Using Build FAILED.
YARN : error : You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer [/home/lbottaro/git/aspnetcore/src/SignalR/clients/ts/signalr-protocol-msgpack/signalr-protocol-msgpack.npmproj]
/home/lbottaro/git/aspnetcore/eng/targets/Npm.Common.targets(79,5): error : Command failed with exit code 1. [/home/lbottaro/git/aspnetcore/src/SignalR/clients/ts/signalr-protocol-msgpack/signalr-protocol-msgpack.npmproj]
/home/lbottaro/git/aspnetcore/eng/targets/Npm.Common.targets(79,5): error : Command failed with exit code 1. [/home/lbottaro/git/aspnetcore/src/SignalR/clients/ts/signalr-protocol-msgpack/signalr-protocol-msgpack.npmproj]
/home/lbottaro/.nuget/packages/playwrightsharp/0.192.0/build/netstandard2.0/PlaywrightSharp.targets(18,5): error MSB3073: The command "./playwright.sh install" exited with code 9. [/home/lbottaro/git/aspnetcore/src/Shared/BrowserTesting/src/Microsoft.AspNetCore.BrowserTesting.csproj]
/home/lbottaro/git/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/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/aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj(68,5): error : in webpack performance recommendations:
/home/lbottaro/git/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/aspnetcore/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj(67,5): error : in webpack performance recommendations:
0 Warning(s)
9 Error(s) |
@wtgodbe sorry to ping you like this, but could this issue be re-opened please? |
@BrennanConroy is this a known thing that we have another issue open for somewhere? |
This is something Blazor checks, there is a similar issue at #47324 |
I've seen this asset size error/warning in the ubuntu test build, but it still completed the build successfully. In this case it's not completing, what I'm worried about are the errors in the first 3 lines |
This could speak to a change needed in SignalR, @BrennanConroy do you know? |
The internet claims node 18 broke source mapping nodejs/node#42638 |
I managed to build, but using a workaround, I'll test if everything is in working order in the following weeks. I basically built it in two steps: first with the "legacy flag" on node, this fails in the native code part, but it compiles the js files correctly, then I remove this flag and build again with the "--no-build-nodejs" flag. From my investigations, it really seems to be all linked to OpenSSL Oracle Linux 9 is using, maybe they compiled it with more strict safety policies. When I tried build my own OpenSSL and replaced it, I bricked the whole OS, so who knows what special sauce is there. Here's what I did in the end: Step 1: Build with these flags # Enables SHA1 on the OpenSSL library, building without this flag fails
export OPENSSL_ENABLE_SHA1_SIGNATURES=1
# same as above, but for MD4 hashes:
export NODE_OPTIONS=--openssl-legacy-provider
# multi-core building breaks on yarn, so use only single core:
numactl --physcpubind=+1 ./eng/build.sh -c release --arch x64 --os-name linux --build-managed --restore --no-test Step 2: Run the build again with these commands: # Remove node flags
export NODE_OPTIONS=
# Build without touching nodejs files
numactl --physcpubind=+1 ./eng/build.sh -c release --arch x64 --os-name linux --build-managed --restore --no-test --no-build-nodejs ✅The build should succeed. I tried this because I noticed this in the middle of the build log (which was not flagged with the other errors) when building with # This was NOT shown in the bottom in the errors list.
/home/lbottaro/git/aspnetcore/artifacts/bin/Microsoft.AspNetCore.BrowserTesting/release/net6.0/.playwright/unix/native/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
# Followed by this, which was shown at the bottom with other errors
/home/lbottaro/.nuget/packages/playwrightsharp/0.192.0/build/netstandard2.0/PlaywrightSharp.targets(18,5): error MSB3073: The command "./playwright.sh install" exited with code 9. |
Hi @leocb. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
@leocb It looks like you've been able to resolve this issue. I'm going to mark this as resolved for now with the hope that the information you provided here is helpful to folks building on the same target. At the moment, it looks like there isn't anything directly related to the ASP.NET Core build here... |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
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:
then
The output:
Version info:
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!
The text was updated successfully, but these errors were encountered: