-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Context
- I work at Oracle, due to some restrictions on the company's distribution an licensing policies, we can't use pre-built binaries and I have to compile the .NET runtime 6 by myself (with support for ASP.NET).
- Environment is Oracle Linux 9.1
- Pre-built binaries from https://download.visualstudio.microsoft.com/download/pr/877a2d48-74ed-484b-85a1-605078f5e718/752ce1e38b76ffb5ebfc2ee1772307bf/aspnetcore-runtime-6.0.16-linux-x64.tar.gz works fine in Oracle Linux 9.1 (used for testing)
The problem
Unrelated to this repo: I am able to compile the .NET runtime and ASP.NET repositories separately and gather the artifacts and deploy them, however when I try to execute the solution on a docker container I get an error with libc (see this issue: dotnet/runtime/issues/85330), If I use the official binaries, it works fine in the container, so my best guess is that I can't simply do that and have compile things properly.
The nice folks on that issue pointed me to this repo, which now I'm trying to build. But I still don't know if this is the correct repo since I actually only need the runtimes, not the whole SDK, but I digress.
I'm encountering problems with the build and don't know why (see below for logs). I'm currently trying to build with the commit/tag v6.0.408
note: As a sanity check I tried build this on Ubuntu 22 LTS and got the same errors. Am I missing something obvious here?
Please help me fix the errors I'm encountering during the build. This will quite possibly also mean that Oracle Linux gets an officially maintained version of .NET - since this will fall under the libraries we have to maintain up to date. - please note that I do NOT speak on behalf of the Oracle company and this is my sole opinion.
Build
Pre-requisites:
# Install the runtime dependencies
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y cmake llvm lld clang gcc gcc-c++ make python3 curl lldb openssl-devel libicu-devel openssl-devel lttng-ust numactl-devel krb5-server krb5-libs krb5-devel zlib-devel
sudo dnf --enablerepo=ol9_codeready_builder install lttng-ust-devel
# Install the aspnet dependencies
sudo dnf config-manager --set-enabled ol9_appstream -y
sudo dnf install nodejs -y
sudo yum install -y npm java-17-openjdk numactl
sudo npm install -g yarnThese are the step I follow to build:
# Enables SHA1 on the OpenSSL library, building without this flag fails
export OPENSSL_ENABLE_SHA1_SIGNATURES=1
git clone https://github.com/dotnet/installer.git
cd installer/
git checkout v6.0.408
./build.sh /p:ArcadeBuildTarball=true /p:TarballDir=/home/lbottaro/dotnetsourceI get some errors in the beginning of this script (see logs) on Oracle Linux, but the amount of items in the folders matches with Ubuntu, so I guess it's ok? unless the file is there but empty.
Left: Oracle Linux 9, Right: Ubuntu 22

Then:
cd /home/lbottaro/dotnetsource
./prep.sh
# wait for prep to finish ...
./build.sh
#fails