Replies: 4 comments 16 replies
-
I don't expect this to work easily, for a few reasons.
I wish it was. It isn't :(
Have you considered using a container that carries the RHEL 8 userspace but can run on RHEL 7? |
Beta Was this translation helpful? Give feedback.
-
Just an update on this in case anyone else is trying this. I was able to create a rootfs for RHEL7 on WSL and build the .net 8 runtime successfully. Next step to build the sdk. The easiest way to build the rootfs I found, was to create a docker image with RHEL7 base install the necessary dependencies (build llvm from source https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-16.0.6.tar.gz), install an updated gcc via the yum package |
Beta Was this translation helpful? Give feedback.
-
Here are the scripts I used to build the sdk for rhel7: I switched these to centos, but i'm not sure this was the best idea. Packages available in rhel7/8 yum aren't available in centos, but the general idea is there. After running the I'm not sure on the next steps. Reading this: building-for-new-architecture-using-a-rid-unknown-to-net, I'm supposed to now follow: [Use the cross-compiled SDK and augmented previously-source-built-archive to build a stage 1 SDK. See the Stage 1 instructions in Building on a supported platform (Using RID known to .NET). Using the --with-sdk flag, but this doesn't work as i'm not sure what |
Beta Was this translation helpful? Give feedback.
-
I built the rc2 bootstrap version myself, but I might not have saved the symbols 😭 I just put I just tested a simple hello world on a rhel7 machine and it looks like that worked. Will do some more testing 🤞
Thanks for all the help! |
Beta Was this translation helpful? Give feedback.
-
Due to some legacy reasons my company is stuck on
RHEL 7
for a little while. We have previously been using the prebuilt binaries which were working fine. Going forward it looks like .NET 8 will be dropping RHEL 7 support so I was looking to build from source.I was hoping to get some guidance on how I would go about building .NET 8 using these instructions https://github.com/dotnet/dotnet#building
It looks to me like the prebuilt artifacts the build currently relies on also requires RHEL 8, and the build fails when I attempt to build on RHEL 7. If anyone has some pointers on how to build .NET 8 on RHEL 7, that would be very helpful. Is it possible to use .NET 7 or .NET 6 to build .NET 8 on RHEL 7?
Beta Was this translation helpful? Give feedback.
All reactions