C
C#2mo ago
SoftStone

✅Build NET9 from source

How to fix this, does anyone know? I try build dotnet/dotnet repo following instructions in: https://github.com/dotnet/dotnet/blob/main/README.md#dev-instructions What i do: 1. Clone repo https://github.com/dotnet/dotnet/ and switch to release/9.0.1xx branch 2. Execute
./prep-source-build.sh
./prep-source-build.sh
3. On machine i install dependencies
apt install -y cmake llvm lld clang build-essential \
python-is-python3 curl git lldb libicu-dev liblttng-ust-dev \
libssl-dev libkrb5-dev ninja-build pigz cpio

apt install -y build-essential gettext locales cmake llvm clang lld lldb liblldb-dev libunwind8-dev libicu-dev liblttng-ust-dev \
libssl-dev libkrb5-dev zlib1g-dev pigz cpio

sudo apt install build-essential checkinstall zlib1g-dev libssl-dev -y
apt install -y cmake llvm lld clang build-essential \
python-is-python3 curl git lldb libicu-dev liblttng-ust-dev \
libssl-dev libkrb5-dev ninja-build pigz cpio

apt install -y build-essential gettext locales cmake llvm clang lld lldb liblldb-dev libunwind8-dev libicu-dev liblttng-ust-dev \
libssl-dev libkrb5-dev zlib1g-dev pigz cpio

sudo apt install build-essential checkinstall zlib1g-dev libssl-dev -y
4. Try to build
./build.sh -sb --clean-while-building
./build.sh -sb --clean-while-building
and.. i get error
GitHub
GitHub - dotnet/dotnet: Home of .NET's Virtual Monolithic Repositor...
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK from source - dotnet/dotnet
GitHub
dotnet/README.md at main · dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK from source - dotnet/dotnet
No description
5 Replies
SoftStone
SoftStoneOP2mo ago
I found https://github.com/dotnet/runtime/issues/110751 this, look as the same(diff - this issue on Fedora) problem. I'm not sure if this is a bug in the repository or if I'm compiling it incorrectly, so I decided to ask here instead of create issue in the repo "runtime".
Sehra
Sehra2mo ago
that fix is not on the release/9.0 branch you can try with git cherry-pick b382a451a967eb16968b65238547e6ee795d9d91
Aaron
Aaron2mo ago
are you trying to build the entire stack, including things like the SDK, or just the runtime because if you just need the runtime, it would be easier to build dotnet/runtime on its own than to build the entire VMR (which is kinda hard to build) you could also just use one of the alpha .net 10 sdks, if you just need that fix https://github.com/dotnet/sdk/blob/main/documentation/package-table.md
SoftStone
SoftStoneOP2mo ago
Yes, I need to build both SDK and runtime.
SoftStone
SoftStoneOP2mo ago
GitHub
Build error "Not find BROTLIDEC" · Issue #111995 · dotnet/runtime
Description I try build dotnet/dotnet repo following instructions in: https://github.com/dotnet/dotnet/blob/main/README.md#dev-instructions but i get error. Reproduction Steps Clone repo https://gi...

Did you find this page helpful?