Replies: 7 comments
-
Can someone please move this issue to the dotnet/source-build repo? |
Beta Was this translation helpful? Give feedback.
-
Hey @leocb ! Thanks for filing this issue.
A similar restriction affects many other users (including packagers packaging .NET for Linux distributions such as Fedora, RHEL and Ubuntu), so you should be in good company!
More details on this would be nice. I suppose you are building on Oracle Linux 9 and then trying to run on a different (older) distro such as Oracle Linux 7? That's expected to not work. When you build .NET in a Linux distro, the glibc version of that distro (say, version
There's no current way to just build the runtime completely from source, so it's easier to build the entire SDK and pull the runtime bits out of it.
This is the problem. If you are trying to build .NET 6, only the 6.0.100-series is supported. The latest version is https://github.com/dotnet/installer/releases/tag/v6.0.116, try that.
Isn't that already the case? AFAIK Oracle Linux rebuilds the sources of RHEL and RHEL already ships .NET (I am one of the maintainers for RHEL) . In fact, .NET 6 seems to be available for all of:
AFAIK, to install .NET 6 on Oracle 7, you need to run a command like cc @Mr-Tao who I thought was the .NET maintainer for Oracle Linux |
Beta Was this translation helpful? Give feedback.
-
Hi! Thanks for the all the great info! In the case of libc, you're most correct! I did in fact build the runtime on OL9 and tried to execute in a OL7 container by accident, I'll try that again while building under the correct OL version. I'll try building it from the v6.0.116 tag, maybe that's it! Just out of curiosity, what are the other tags for anyway if the 1xx are the only ones supported? We just recently found out about the official builds (after this issue was created) - There's little documentation as to where to find those versions - still, I need to build my own runtime for the particular project I'm working on. I'll try again tomorrow and get back to you, many thanks! 😊 |
Beta Was this translation helpful? Give feedback.
-
They are supported for end-users. You can use the 6.0.400-series SDKs to build and run your applications. Those tags/releases are just not supported for build-the-.NET-SDK-itself-from-source scenario. (It's a question of manpower: maintaining it is quite a bit of effort and there's not enough demand for it).
Should we augment https://learn.microsoft.com/en-us/dotnet/core/install/linux-rhel to include RHEL rebuilds? |
Beta Was this translation helpful? Give feedback.
-
A pull request dotnet/runtime#81115 for dotnet build support on Oracle Linux has been open for some time. Do you think that there’s anything I can do to make it merged? |
Beta Was this translation helpful? Give feedback.
-
@MichaelSimons I believe this should be moved to the source-build repo but I don't appear to have permissions. |
Beta Was this translation helpful? Give feedback.
-
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Beta Was this translation helpful? Give feedback.
-
Context
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:
These are the step I follow to build:
I 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:
build logs
installer.build.log
source.prep.log
source.build.log
Beta Was this translation helpful? Give feedback.
All reactions